mujoco
Modeling
The MuJoCo simulation environments and robot models are provided in:
Unlike Gazebo, MuJoCo can't dynamically insert robot at runtime (using create Node). This means the robot model needs to be included into the selected world at simulation launch time.
Note
The path to the robot model must be defined based on the file structure in the 'install' directory after the colcon build. See an example in empty.xml
ROS 2 Integration
To connect MuJoCo and ROS 2, the TWR project relies on the mujoco_ros2_control package. This package simultaneously launches MuJoCo and integrates the ros2_control framework into it, thereby providing access to ROS 2.
Warning
Package mujoco_ros2_control must be built from source, as prebuilt binaries of version 0.0.3 are outdated and incompatible with current versions. (Last updated: Sept 2026)