Skip to content

Conversation

@jhanca-robotecai
Copy link
Contributor

@jhanca-robotecai jhanca-robotecai commented Oct 23, 2025

Based on the previous works I refactored the python script to follow the structure of the agreed scenario with three segments recorded in different simulators.

Section 1 (O3DE) : 90 sec
- Segment 1.1: Open rclpy script code that starts with code, load our shared world (conditionally).
- Segment 1.2: Spawning an object and despawning after a delay.
- Segment 1.4: Update code to spawn robots (Dingo and UR10e) and some static obstacles. Run script and visualize in a simulator.
Section 2 (Gazebo) 90 sec
- Segment 2.1: Add code for Play / Pause.
- Segment 2.3: Add code for setting state of objects (box)  and showcase.
- Segment 2.2: Add code for stepping simulator for some frames. Show the simulator running for a number of frames.
Section 3: (Isaac Sim) 90 sec
- Segment 3.1: Add simple loop code that sends target goals and queries entity states.
- Segment 3.2: Next show code that “randomizes” the scene with boxes or something once robot had reached a certain pose.
- Segment 3.3: Next run full scenario.

I tried to keep it as similar as possible to the previous implementation (in #2), but some differences can be noticed.

The script was primarily refactored to:

  1. Split the part that is different for every simulator
  2. Make simple tutorial-like helper methods to call certain simulation interfaces
  3. Move the extras (such as moving UR) to a separate file to keep the content as simple as possible

I also included some small changes in the README file, that should be completely refactored in a separate PR.

This script was tested in O3DE only.

@ayushgnv @iche033 @adamdbrw
Please feel free to comment on any parts that still need some work.

Co-authored-by: Ayush Ghosh <149644562+ayushgnv@users.noreply.github.com>
Co-authored-by: Ian Chen <ichen@openrobotics.org>
Co-authored-by: Adam Dąbrowski <adam.dabrowski@robotec.ai>
Signed-off-by: Jan Hanca <jan.hanca@robotec.ai>
Signed-off-by: Jan Hanca <jan.hanca@robotec.ai>
Signed-off-by: Jan Hanca <jan.hanca@robotec.ai>
adamdbrw and others added 2 commits October 24, 2025 13:53
* modified script to adhere to videos

Signed-off-by: Adam Dąbrowski <adam.dabrowski@robotec.ai>

* Update warehouse_simulation_script.py

* Update warehouse_simulation_script.py

---------

Signed-off-by: Adam Dąbrowski <adam.dabrowski@robotec.ai>
Co-authored-by: Jan Hanca <jan.hanca@robotec.ai>
Signed-off-by: Jan Hanca <jan.hanca@robotec.ai>
@jhanca-robotecai
Copy link
Contributor Author

Thank you for your review.
Together with @adamdbrw we applied and tested the changes in O3DE (using ROS 2 Humble and ROS 2 Jazzy). Feel free to reopen any of the conversations if you find some missing changes.

@adamdbrw
Copy link
Contributor

@ayushgnv
@iche033
To be merged on your approval

jhanca-robotecai and others added 2 commits October 27, 2025 11:45
Signed-off-by: Jan Hanca <jan.hanca@robotec.ai>
@adamdbrw adamdbrw merged commit 19a62cc into ros-simulation:main Oct 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants