Software
mujoco_ros2_control
By ros-controls, from github.com/ros-controls/mujoco_ros2_control (opens in a new tab)
- Simulators
- Library
- Apache-2.0
A ros2_control system interface that runs ROS 2 controllers against the MuJoCo physics simulator, using MJCF or URDF-generated robot models.
Facts
- GitHub stars
- 282read on 28 Nov 2026
- Last update
- 24 Nov 2026Newest commit on main
- Maintenance
- Activea commit in the last 90 days
- Difficulty
- Intermediate
Checked on GitHub on 28 Nov 2026.
Licenses
- Code
- Apache-2.0 (opens in a new tab)
Read by Robotheca from LICENSE (opens in a new tab) (Apache-2.0) at commit 71a0f81 (opens in a new tab), on 28 Nov 2026.
- Commercial use
- Yes
At a glance
- What it is
- Provides a full ros2_control SystemInterface plugin wrapping MuJoCo as a hardware interface.
- Includes MJCF and URDF conversion utilities to generate MuJoCo models automatically.
- Offers an optional plugin system for custom simulation publishers and services.
- Ships demo launch files, configs and example robots showing basic control, PID and transmissions.
- Includes integration and launch tests along with Docker files for CI and containers.
- Supports the ROS 2 Humble, Jazzy, Kilted, Lyrical and Rolling distributions.
Robotheca's summary of the project's documents, not the creator's words.
- Robots on Robotheca
- No robot on Robotheca uses it yet.
- Licence
- Apache-2.0. Commercial use: Yes. Where it was read
- Install
- In the creator's words: The project's website (opens in a new tab)
- Maintenance
- Active, last commit on 24 Nov 2026.
Use it
How to install it, in the creator's words: The project's website (opens in a new tab)
Robotheca doesn't review code. Read it before running it.
Files and versions
- Repository on GitHubgithub.com/ros-controls/mujoco_ros2_control (opens in a new tab)
- The version Robotheca read71a0f81 (opens in a new tab)
- Latest releaseNone published on GitHub
Robotheca read the repository at two versions: the summary at 8a083ff and the facts and the README at 71a0f81 (read on 28 Nov 2026).
Robotheca never hosts the code: each link goes to the creator's own page.
The README
The creator's own README, copied as written: README.md by ros-controls, at commit 71a0f81, under Apache-2.0 (opens in a new tab). The original on GitHub (opens in a new tab).
Read the README here
MuJoCo ros2_control
Image: Rdev (opens in a new tab) (opens in a new tab) Image: Ldev (opens in a new tab) (opens in a new tab) Image: Kdev (opens in a new tab) (opens in a new tab) Image: Jdev (opens in a new tab) (opens in a new tab) Image: Hdev (opens in a new tab) (opens in a new tab) (opens in a new tab) (opens in a new tab)
This repository provides a ros2_control system interface and supporting packages to run ROS 2 controllers against the MuJoCo physics simulator.
This project wraps MuJoCo as a hardware/system interface so you can use the ros2_control stack (controller manager, controllers, controller interfaces) against simulated robots based on MJCF or generated from URDF.
Contents
mujoco_ros2_control- core system interface plugin and resourcesmujoco_ros2_control_msgs- message/service definitions used by the pluginmujoco_ros2_control_plugins- optional plugins that extend simulation capabilitiesmujoco_ros2_control_demos- demo launch files, configs and example robotsmujoco_ros2_control_tests- integration / launch tests and simple examplesdocker/- Dockerfiles and scripts to run CI/containers
Key features
- Full ros2_control SystemInterface plugin for MuJoCo
- MJCF/URDF conversion utilities to auto-generate MuJoCo models
- Optional plugin system for extending simulation with custom publishers and services
- Example demos showing basic control, PID and transmission setups
Quick start
There are two common ways to get running: build from source (recommended) or install prebuilt binaries (if available for your distribution).
-
Build from source (recommended)
-
Install required dependencies manually or from rosdep, including the
mujoco_vendorpackage which provides the base MuJoCo install. -
Build the workspace (example with a sourced ROS 2 installation):
# from workspace root (this repository is typically inside a ROS 2 workspace) colcon build --symlink-install --packages-select mujoco_ros2_control* \ --cmake-args -DCMAKE_BUILD_TYPE=Release- Source the workspace and run a demo:
source install/setup.bash ros2 launch mujoco_ros2_control_demos demo.launch.py -
-
Install prebuilt binaries (if available)
If your ROS 2 distribution or your OS package index provides prebuilt packages for
mujoco_ros2_control, you can install those instead of compiling from source. Check your distribution's package repositories or the project's GitHub releases for available binary artifacts.Example (Debian/Ubuntu with ROS packages — replace
<distro>):sudo apt update sudo apt install ros-<distro>-mujoco-ros2-controlAfter installing binaries, source your ROS install and run a demo:
source /opt/ros/<distro>/setup.bash ros2 launch mujoco_ros2_control_demos demo.launch.py
See mujoco_ros2_control/README.md (opens in a new tab) for detailed usage, configuration examples and mappings between MJCF actuators/sensors and ros2_control interfaces.
Supported ROS 2 distributions
- The project is developed and tested against multiple ROS 2 distributions.
This README includes basic notes for:
Humble,Jazzy,Kilted,Lyrical, andRolling.
Support matrix
| Distribution | Status |
|---|---|
| Humble | Supported |
| Jazzy | Supported |
| Kilted | Supported |
| Lyrical | Supported |
| Rolling | Supported (development) |
Contributing
- Contributions, bug reports and feature requests are welcome. Please follow standard ROS Controls project workflows: open issues, send PRs against the
mainbranch and respect the repository code style usingpre-commit.
License & maintainers
- This repository is distributed under the terms of the LICENSE file (
LICENSE). Maintainers and authors are listed in the Git history and package manifests (package.xml) inside each package.
Robotheca lists software as a reference: nothing is hosted or run here, and every fact links to where it was read.