HowTo: ROS Workspaces¶
The currently used Isaac Sim version (5.1.X) uses Python 3.11, while the ROS Jazzy installation uses the default Python version of Ubuntu 24.04, which is Python 3.12.
To ensure that custom ROS packages can also be used within Isaac Sim, proceed as follows:
-
Include any custom package you want to use inside Isaac Sim in your
srcfolder in the Isaac Sim ROS workspace 1 (->/workspace/IsaacSim-ros_workspaces/jazzy_ws). -
Build the workspace using the provided Dockerfile:
/workspace/IsaacSim-ros_workspaces/build_ros.sh -d jazzy -v 24.04 -
Source the ROS2 Python 3.11 workspace:
source /workspace/IsaacSim-ros_workspaces/jazzy_ws/install/local_setup.bash -
Run Isaac Sim from the same terminal:
/isaac_sim/isaac_sim.sh $STREAMING_ARGS -
Include your custom package(s) in a different ROS2 workspace (e.g. clone them there again), build it with the default ROS2 Jazzy installation (e.g. use
colconas usual), source it, and you should then be ready to use your custom package(s) outside of Isaac Sim.
See also the offical Documentation 23 for more information.
IMPORTANT: Never source the default ROS2 installation (-> source /opt/ros/jazzy/setup.bash) before starting Isaac Sim. Since the Python versions are not compatible, things will not work as intended.