RoboticsBeatGuides
Illustration of a single robotic arm with an open gripper, surrounded by blue and orange waves of dots on a light background.
AI-generated conceptual illustration.

AI & Components

How UR’s ROS 2 controllers turn MoveIt plans into motion

Controller choice determines where planned waypoints become motion commands. The controller documentation describes the timing implications, while a separate development example explains the effect of speed scaling.

RoboticsBeat · Published

MoveIt generates a sequence of waypoints for a trajectory controller to execute. Universal Robots’ hardware-interface documentation separates motion control from communication: the hardware interface sends commands to the robot controller and receives status updates through the ros2_control framework. A controller is still required to define how ROS controls the motion.

The joint_trajectory_controller interpolates MoveIt waypoints on the ROS control PC, while passthrough_trajectory_controller forwards the complete trajectory for interpolation and execution by the robot controller; the documentation lists speed-scaling support for both. Interpolation supplies the motion between the planned waypoints. Both controllers accept trajectories through the same FollowJointTrajectory action interface, the ROS interface through which a planner submits a trajectory for execution.

The documentation identifies joint_trajectory_controller, of type joint_trajectory_controller/JointTrajectoryController, as the driver’s default motion controller. It says execution respects the teach pendant’s speed slider, emergency stops, safeguard stops and program pauses, scaling trajectory execution to maintain path accuracy when speed changes. It also documents combinations with force_mode_controller for motion under force constraints and tool_contact_controller to stop motion on tool contact.

For passthrough_trajectory_controller, of type ur_controllers/PassthroughTrajectoryController, moving interpolation to the robot controller changes the timing demands on the ROS PC. The documentation says this significantly reduces real-time requirements and permits a stable driver connection without a real-time patched kernel. The documentation also states that MoveIt trajectories are followed exactly, and lists support for speed scaling, emergency stops, safeguard stops, program pauses and combination with force_mode_controller.

A separate development-version excerpt explains how speed scaling affects trajectory time. For a scaling factor f below 1, the joint_trajectory_controller advances through the trajectory by f × Δt per control step, where Δt is the controller’s cycle time. For scaling applied by the robot, the hardware interface must report the scaling value through a state interface so the controller can read it. An optional command interface can also allow ROS to set the hardware’s scaling value.

That excerpt illustrates the mismatch when hardware slows motion but the controller does not account for it. With a hardware scaling factor of 0.5, the robot moves only halfway toward the commanded target configuration during the interval, neglecting acceleration and deceleration effects. Its one-joint plot depicts motion toward a target and back to the starting point with a very low teach-pendant speed setting. With the controller unaware of scaling, the executed trajectory differs from the target trajectory. This documentation example explains why the controller needs information about hardware scaling.

This comparison covers the supplied controller and hardware-interface documentation and the separate development-version excerpt. They do not establish a jointly tested released driver/controller pairing, an installation procedure or a physical safety guarantee. For controller selection, the supported distinction is where interpolation runs and the associated ROS PC timing requirements; both controller descriptions include speed-scaling support and combination with force mode.

Sources and references