RoboticsBeatGuides
Illustration of a blue and orange robotic arm with an open gripper beside a blue cube and an orange sphere, with an orange curve in the background.
AI-generated conceptual illustration.

AI & Components

How MoveIt’s move_group turns motion goals into trajectories

Robot descriptions, state updates, planner selection and constraints each play a distinct role in MoveIt’s documented planning pipeline.

RoboticsBeat · Published

MoveIt’s move_group connects robot descriptions and configuration with joint-state and transform updates, then processes motion requests through a planning pipeline to generate a trajectory that respects specified joint velocity and acceleration limits. The supplied MoveIt documentation describes this ROS node as an integrator, bringing components together behind actions and services.

The architecture excerpt describes three configuration inputs obtained through the ROS parameter server. The robot_description parameter supplies the robot’s URDF description, while robot_description_semantic supplies its SRDF semantic description. Additional MoveIt configuration covers joint limits, kinematics, motion planning, perception and other settings. The MoveIt Setup Assistant typically creates the SRDF and automatically generates component configuration files in the config directory of the robot’s MoveIt configuration package.

Current joint positions arrive separately through /joint_states. Multiple publishers can contribute partial state information, such as separate publishers for an arm and a mobile base. The documentation explicitly says that move_group does not create its own joint-state publisher: each robot must provide that functionality. Transform information monitored through the ROS TF library supplies additional information, including the robot’s global pose.

The planning-scene tutorial distinguishes a RobotState, which contains a robot model and joint values, from a PlanningScene, which also contains collision objects. It recommends PlanningSceneMonitor for keeping that scene up to date through ROS interfaces. Its components track robot-state updates, planning-scene changes and occupancy-map updates. The scene can then be used for collision checking and information about the environment.

Users access the actions and services through the documented C++ move_group_interface package or the Motion Planning plugin for Rviz, the ROS visualizer. A motion request specifies the desired movement. The documentation’s example is moving an arm to a different location in joint space, expressed through its joints, or moving its end effector to a new pose.

MoveIt accesses motion planners through a plugin interface, allowing planners from different libraries to participate. The motion-planning excerpt says the Setup Assistant configures the default planners using OMPL and MoveIt’s OMPL interface; it also lists the Pilz industrial motion planner and CHOMP as available by default. A request can select a planning pipeline and planner using planning_pipeline and planner_id.

Collision checking is enabled by default, including checks involving self-collisions and attached objects. The request can also specify constraints that restrict the permitted motion:

  • Position constraints keep a link’s position within a region of space.
  • Orientation constraints keep a link’s orientation within specified roll, pitch or yaw limits.
  • Visibility constraints keep a point on a link within a particular sensor’s visibility cone.
  • Joint constraints keep a joint between two values.
  • User-specified constraints provide custom checks through a user-defined callback.

The complete planning pipeline also includes planning request adapters. These components allow motion requests to be preprocessed and motion responses to be postprocessed, extending the pipeline beyond the planner itself.

For the arm or end-effector example, the documented output is a desired trajectory taking the arm, or another group of joints, to the requested location. The documentation distinguishes a trajectory from a path by explaining that move_group uses desired maximum velocities and accelerations, when specified, to generate motion that obeys those constraints at the joint level.

The architecture also describes communication with robot controllers through ROS topics and actions. However, the excerpts explain trajectory generation rather than report a physical execution test. The resulting trajectory specifies the desired motion; it does not by itself demonstrate that a robot executed that motion.

Sources and references