MoveIt

On this page 7

MoveIt is the most widely used open-source motion planning framework for robot arms built on the Robot Operating System (ROS). In manipulation and robotics more broadly, it combines inverse kinematics, motion planning, collision checking and trajectory processing into one software stack, so that a developer can ask an arm to reach a pose and receive a smooth, collision-free joint trajectory.

The current generation, MoveIt 2, runs on ROS 2 and is used on research platforms, collaborative robots and industrial arms alike. It is not a controller itself: it plans and supervises motion, while hardware drivers and controllers execute the resulting trajectories.

How MoveIt turns a goal into an arm trajectory

MoveIt converts a high-level goal into executable motion through a pipeline of plugins orchestrated by a central node called move_group. The goal can be a target pose for the end effector, a set of joint values or a named configuration such as a stored home position.

  1. The planning scene collects the robot state, attached objects and obstacles from sensors or manual definitions.
  2. A kinematics solver converts Cartesian goals into joint-space goals when needed.
  3. A motion planner searches for a collision-free path in joint space.
  4. Planning request adapters fix start-state issues and add timing to the geometric path.
  5. The trajectory is sent to ros2_control controllers, which drive the actual joints.

The robot model comes from a URDF file describing links and joints and an SRDF file defining planning groups, end effectors and pairs of links that never collide. A setup assistant generates these configuration files, which greatly shortens integration of a new arm.

The table below lists the main components and what each contributes.

ComponentFunctionTypical default
move_groupCentral node exposing planning services and actionsOne per robot
Planning scene monitorMaintains world and robot stateOctomap from depth sensors
Kinematics pluginSolves forward and inverse kinematicsKDL, with TRAC-IK or IKFast options
Planner pluginFinds collision-free pathsOMPL sampling-based planners
Collision checkerTests states for contactFCL library
Time parameterizationAdds velocities and accelerationsTime-optimal or iterative spline methods
Main components of the MoveIt architecture

Motion planners available in MoveIt

MoveIt supports several planner families, and choosing among them is one of the most important configuration decisions. Each family trades speed, path quality and determinism differently.

Sampling-based planners from the Open Motion Planning Library, such as RRTConnect, find feasible paths quickly in cluttered spaces but produce jerky, nondeterministic results that need smoothing. Optimization-based planners refine a trajectory against cost terms. The Pilz industrial motion planner generates deterministic point-to-point, linear and circular motions familiar from industrial robot programming.

Planner familyStrengthWeaknessTypical use
OMPL (RRTConnect, PRM)Fast in cluttered scenesRandom, uneven pathsGeneral collision avoidance
CHOMPSmooth trajectoriesCan stall in local minimaRefining existing paths
STOMPNo gradient neededSlower convergencePaths with custom costs
Pilz industrial plannerDeterministic, predictableNo obstacle searchLinear and circular moves
Cartesian path planningStraight end-effector linesFails near singularitiesApproach and retreat motions
Planner families and their typical use

Planners can also be chained, for example running OMPL first and then refining the result with an optimizer, which combines fast feasibility with smoother final motion.

MoveIt is a framework that implements several manipulation concepts rather than a concept in its own right. Understanding how it maps onto those concepts clarifies what it does and what it leaves to other software.

ConceptRole in MoveItCoverage
Inverse kinematicsKinematics plugins per planning groupBuilt in
Motion planningPlanner plugins in the pipelineBuilt in
Collision checkingPlanning scene and FCL queriesBuilt in
Trajectory planningTime parameterization adaptersBuilt in
Grasp planningGrasp poses supplied by external toolsPartial, via task constructor
Pick and placeStaged tasks with approach and liftThrough MoveIt Task Constructor
How MoveIt covers neighboring manipulation concepts

The MoveIt Task Constructor extends the basic pipeline by describing a manipulation job as connected stages, such as approach, grasp, lift and place. It plans the stages jointly, which avoids the common failure where each motion is feasible on its own but the sequence cannot be completed.

Real-time servoing and hybrid planning

Beyond offline planning, MoveIt offers MoveIt Servo, a module for real-time Cartesian or joint jogging driven by joysticks, teleoperation devices or visual servoing. Servo updates commands at hundreds of hertz, checks for collisions and singularities on the fly, and slows the arm before it reaches a dangerous configuration.

Hybrid planning combines a global planner that computes a full path with a local planner that reacts to changes during execution. This structure suits dynamic environments, for example when a person enters the workspace of a collaborative arm and the trajectory must be adjusted without restarting the whole plan.

Limitations and common integration mistakes

MoveIt is powerful but not a turnkey solution. Its sampling-based defaults produce paths that differ from run to run, which can be unacceptable in production cells with cycle time requirements. It also assumes accurate models; a mismatch between the URDF and the real robot causes collisions or unreachable goals.

The table below lists frequent problems that integrators encounter, with their usual causes and fixes.

SymptomLikely causeFix
Planning fails immediatelyStart state in collisionCorrect collision matrix or padding
IK finds no solutionGoal outside workspace or bad seedCheck reachability, try another solver
Erratic, looping pathsRaw sampling-based outputEnable smoothing or use an optimizer
Controller rejects trajectoryVelocity or acceleration limits exceededAlign joint limits with hardware
Slow planning in clutterDense octomap or tight timeoutsReduce resolution, raise planning time
Frequent MoveIt problems and their fixes
  • MoveIt does not perform force control; contact-rich tasks need separate controllers.
  • It is not a safety system; certified safety functions must run in the robot controller.
  • Dynamic constraints such as payload torque limits are only approximated by joint velocity and acceleration limits.

Understanding it simply

A robot arm knows how to turn its motors, but it does not know how to get from one place to another without hitting things. MoveIt is the route planner for robot arms. It looks at where the arm is, where it should go and what obstacles are around, then works out a safe path.

Think of a navigation app that plans a route around closed roads. MoveIt does the same for an arm: it plans the movement and hands it to the motors, which then follow the plan step by step.

Applied in practice

A small electronics workshop installs a six-axis collaborative arm to move circuit boards from a conveyor into a testing fixture. The integrator generates the configuration with the setup assistant, adds the fixture and conveyor as collision objects and uses a depth camera to update the planning scene when parts or people appear.

Transfer motions between conveyor and fixture use OMPL with smoothing, while the final approach into the fixture uses a linear Cartesian move for precise insertion. A Task Constructor pipeline links pick, transfer and place into one plan. After tuning velocity scaling to 50 percent for safety, the cell achieves a consistent cycle of about 12 seconds per board without collisions during a month of operation.