This is the ROS2 version of OceanSim which requires user to set up their ROS2 workspace with Isaac Sim following their official tutorial.
Note --PR14:
Before OceanSim extension being activated, the extension isaacsim.ros2.bridge should be activated, otherwise rclpy will fail to be loaded.
We suggest that make sure the extension isaacsim.ros2.bridge is being setup to "AUTOLOADED" in Window->Extension.
We provided an exmaple util located at isaacsim/oceansim/utils/ros2_control.py for user to consult and develop on.
This util extends the control mode to ros control in the sensor_example extension.
We add ros2 publish uw image function in the UW_Camera class, located at isaacsim/oceansim/sensors/UW_Camera.py.
For testing, we provide a ros2 subscriber example located at isaacsim/oceansim/utils/ros2_image_subscriber.py.
Test steps:
- check the Underwater Camera checkbox in the sensor_example extension.
- run the simulation.
- open a terminal and run the ros2_image_subscriber.py.
cd /path/to/oceansim/utils
python3 ros2_image_subscriber.py
OceanSim now supports GPU-first publication for the processed underwater camera image and imaging sonar fan image. The publishing path uses the ROS2 bridge ROS2PublishImage node with dataPtr + cudaDeviceIndex, so no per-frame CPU copies are required.
What changed:
- UW_Camera: processed image can be published from a preallocated GPU buffer (
dataPtr) with a consistentbufferSize,width,height, andencoding. - ImagingSonarSensor: the fan image is produced on GPU and published from a preallocated GPU RGBA buffer.
- Helper:
isaacsim/oceansim/pipeline/ros2_graphs.pyprovides a small builder to create the ROS2 image graph and set the correct inputs for GPU publishing.
These paths are designed to avoid per-frame annotator.get_data() polling and reduce Python/Numpy churn in the main loop.
[2025/9]OceanSim is now compatible with Isaac Sim 5.0 GA.[2025/4]OceanSim is featured by NVIDIA Robotics![2025/4]🔥 Beta version of OceanSim is released![2025/3]🎉 OceanSim will be presented at AQ²UASIM and the late-breaking poster session at ICRA 2025![2025/3]OceanSim paper is available on arXiv. Check it out here.
- Documentation for OceanSim provided example
- Built your own digital twin documentation
- Code release
- ROS2 Example release, contributed from Tang-JingWei
Great appreciation to Tang-JingWei for contributng the ros bridge example for OceanSim.