Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
ros2_control in Simulation: Hardware, Controllers, Tests
New
1 students

ros2_control in Simulation: Hardware, Controllers, Tests

Write ros2_control hardware interfaces and controllers on ROS 2 Jazzy, and measure what they really do.
Last updated 10/2026
English
English

What you'll learn

  • Bring up ros2_control: the URDF tag, controller_manager, spawners, and a teardown that leaves nothing running.
  • Write a C++ hardware interface with the Jazzy handle API: lifecycle, read() and write(), errors, pluginlib export.
  • Use joint_trajectory_controller honestly: tracking error, path and goal tolerances, goal_time, joint limits, preemption.
  • Run diff_drive_controller in a headless Gazebo and check its odometry, limits and timeout against ground truth.
  • Write your own controller: interfaces it claims, conflicts, a real-time safe update(), validated parameters.
  • Switch and chain controllers, and measure what each switch mode really does.

Course content

8 sections • 35 lectures • 2h 18m total length
  • 1.1 How to follow this course4:04
  • 1.2 setup.sh and verify.sh: a check that runs the real thing4:02
  • 1.3 The first bring-up: three commands, in order3:44
  • 1.4 Ghost nodes: stopping what ros2 run started3:38
  • 1.5 update_rate: set it, then measure it3:42

Requirements

  • C++ and Python reading skills, and basic ROS 2: nodes, topics, services, actions, colcon.
  • Ubuntu 24.04 with ROS 2 Jazzy. The setup script installs ros2_control, the controllers and gz_ros2_control.
  • A laptop is enough: no GPU, 83 MB of memory per running stack (measured in lecture 1.1), about 2 GB of free disk.

Description

This course contains the use of artificial intelligence. The narration is a synthetic voice; every number on screen comes from a lab you can run.

35 lectures, about 2.3 hours, all on ROS 2 Jazzy with ros2_control 4.4x, on a laptop CPU. Each lecture has a folder with the working version, a broken copy with one real mistake, and a check script that passes only when the fix works and the mistake is caught. Mock hardware, your own C++ plugins, and a headless Gazebo robot under gz_ros2_control.

Some of what the labs measured:

- A hardware plugin that integrates with an assumed period instead of the real one: measured time constant 0.400 s against the configured 0.2 s. Lecture 3.2.
- joint_trajectory_controller with no tolerances reported SUCCESS on a joint 0.28 rad off its path; with a 0.1 rad path tolerance the same run aborts as PATH_TOLERANCE_VIOLATED. Lecture 4.2.
- A wheel separation 10 percent short: odometry ends 0.54 m and 43.6 degrees from Gazebo's ground truth after a 1 m square (0.044 m and 5.4 degrees with the right value). Lecture 5.3.
- No velocity limit in the controller: a client asking for 3 m/s got 3.00 m/s; with the limit, 1.00 m/s. Lecture 5.4.

Where the documentation and the installed version disagree, the labs teach what this Jazzy install really does, and say so: for example a missing update_rate silently means 100 Hz, and URDF joint limits are only enforced when you ask for it.

What this course does not cover: real motors and motor drivers, CAN or EtherCAT buses, real-time kernel tuning, MoveIt, Nav2. No GPU is needed.

Who this course is for:

  • Robotics software engineers who write or configure ros2_control and want to know it works, not hope.
  • ROS 2 developers moving from Humble tutorials to Jazzy, where several names and defaults changed.
  • Not for complete ROS 2 beginners, and not a course about wiring real motors.