![]() |
ros2_control - humble
|
Tutorial 1: Basic Robot Demo
This tutorial demonstrates the simplest setup for using MuJoCo with ros2_control.
It launches a two-link arm robot with position controllers using a pre-defined MJCF model.
Key concepts:
- Loading a pre-defined MJCF model from demo_resources/scenes/scene.xml
- Basic ros2_control integration with MuJoCo
- Position control of joints via position_controller
Usage:
ros2 launch mujoco_ros2_control_demos 01_basic_robot.launch.py
ros2 launch mujoco_ros2_control_demos 01_basic_robot.launch.py headless:=true
Control the robot:
ros2 topic pub /position_controller/commands std_msgs/msg/Float64MultiArray "data: [0.5, -0.5]"