Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Moveit2 Knowledge Patch?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/nevaberry-moveit2-knowledge-patch)
---
name: moveit2-knowledge-patch
description: MoveIt 2
version: "2.14.3"
license: MIT
metadata:
author: Nevaberry
---
# MoveIt 2 Compatibility Guidance
Load this skill for MoveIt build changes, planning pipelines, Python planning,
planner configuration, Servo commands, or Task Constructor tasks.
The references contain configuration details and examples, including explicitly
scoped MoveIt 1 planner and adapter guidance.
## Reference index
| Reference | Topics |
| --- | --- |
| [Core planning and pipelines](references/core-planning.md) | Build targets and dependencies, distribution support, request adapters, Python planning and scenes, multi-DOF trajectories, loop timing |
| [Planner plugins and adapters](references/planner-plugins.md) | CHOMP tuning and recovery, MoveIt 1 adapters, OMPL objectives and roadmaps, Pilz limits and sequences |
| [MoveIt Servo](references/servo.md) | IK parameters, realtime priority, C++ and ROS commands, frames, status, smoothing, demos |
| [MoveIt Task Constructor](references/task-constructor.md) | Branches, node parameters, task assembly, property inheritance, grasp and placement IK, collisions, execution, diagnostics |
## Build and dependency changes
MoveIt packages switched from `ament_target_dependencies` to exported CMake
targets. Downstream packages should link the namespaced target:
```cmake
find_package(moveit_ros_planning REQUIRED)
target_link_libraries(my_target PRIVATE moveit_ros_planning::moveit_ros_planning)
```
For `AccelerationLimitedPlugin`, `moveit_core` uses OSQP 1.0 from the MoveIt
`osqp_vendor` fork on Lyrical and Rolling, and apt-packaged OSQP 0.6.x on Humble,
Jazzy, and Kilted. `MOVEIT_OSQP_V1` selects the revised 1.0 C API.
Rolling package-share lookups in `moveit_core` and `moveit_ros_planning` migrated
to the `std::filesystem::path` form of `ament_index_cpp::get_package_share`.
The Resolute build update removes `moveit_core`'s explicit OctoMap version range.
The CMake configurations for `moveit_core`, `moveit_ros_move_group`,
`moveit_ros_planning`, and `moveit_ros_planning_interface` drop Boost.System.
`moveit_core` 2.15.3 drops its unused Boost.Filesystem build dependency.
## Pipeline adapters and trajectory data
Jazzy supports parallel planning pipelines producing candidate plans for the
same problem. Its pipeline API separates request adapters that preprocess
inputs from response adapters that postprocess results.
`ValidateWorkspaceBounds` fills in a 10 m cube when workspace bounds are omitted.
With `ResolveConstraintFrames` in the request adapter chain, goal constraints
can use object subframes such as `cup/handle`; the adapter resolves the
constraint into the corresponding object or robot frame.
MoveIt 2.10 on Jazzy supports executing multi-DOF joint trajectories.
Since 2.15.0, `moveit_core` also populates `velocities` and `accelerations`
alongside the transforms in `multi_dof_joint_trajectory.points`.
Loops that switched to `rclcpp::WallRate` in `moveit_core`,
`moveit_ros_move_group`, and `moveit_ros_planning` use a steady clock.
## Python planning requests and scenes
`planning_pipelines.pipeline_names` lists the pipeline instances to load.
Top-level `plan_request_params` supplies defaults for `plan()`; each named
profile's `<profile>.plan_request_params` selects its pipeline and request
settings independently of the profile name.
With a configured `MoveItPy` instance and a planning component that has a start
state and goal, pass profile names to `MultiPipelinePlanRequestParameters`:
```python
params = MultiPipelinePlanRequestParameters(robot, ["ompl_rrtc", "chomp"])
result = arm.plan(multi_plan_parameters=params)
```
For an explicit single request, use `single_plan_parameters`.
For a joint goal, construct constraints from the target `RobotState` and matching
joint model group, then pass them in the `motion_plan_constraints` list.
Configure monitor topics and the initial-state wait in
`planning_scene_monitor_options`. Use the monitor's `read_write()` context to
apply a populated `CollisionObject` and update the scene's current state.
Remove an object with its ID and `CollisionObject.REMOVE`, or clear all objects
with `scene.remove_all_collision_objects()`.
After changing a candidate state's joints or solving IK, update its transforms
before acquiring a `read_only()` context for `scene.is_state_colliding()`.
## CHOMP optimization and legacy adapters
In `config/chomp_planning.yaml`, `trajectory_initialization_method` accepts
`quintic-spline`, `linear`, or `cubic` for start-to-goal interpolation.
Use `fillTrajectory` to seed CHOMP with another planner's path, such as OMPL's.
`planning_time_limit` and `max_iterations` cap overall optimization.
`max_iterations_after_collision_free` caps iterations after finding a
collision-free path. `obstacle_cost_weight: 0.0` removes the obstacle term.
Enable recovery to retry with varied optimizer parameters after initial failure;
`max_recovery_attempts` caps retries after that initial attempt:
```yaml
enable_failure_recovery: true
max_recovery_attempts: 2
```
The MoveIt 1 Melodic tutorial puts `chomp/OptimizerAdapter` in the base planner's
ordered `planning_adapters` launch argument and uses `fillTrajectory`.
Its `stomp_moveit/StompSmoothingAdapter` is work in progress; it smooths an OMPL
or CHOMP path using `initialization_method: 4` in `stomp_planning.yaml`.
Both adapter setups load the base and optimizer planners' YAML files.
## OMPL configuration and roadmap reuse
The MoveIt 1 OMPL guide sets `optimization_objective` in a planner configuration
in `ompl_planning.yaml`; `PathLengthOptimizationObjective` is the default.
Termination choices are `Iteration[num]` with a positive integer,
`ExactSolution`, and `CostConvergence[solutionsWindow,epsilon]`.
Convergence requires OMPL 1.5.0 or newer; `MotionPlanRequest.allowed_planning_time`
caps all three modes.
For orientation path constraints, default sampling uses Cartesian poses and IK.
The planning group's `enforce_joint_model_state_space: true` switches to
joint-space rejection sampling. Geometric smoothing uses the planning time
left over, and more `num_planning_attempts` gives path hybridization more paths.
`multi_query_planning_enabled` keeps roadmaps between requests for PRM, PRM*,
LazyPRM, and LazyPRM*. Lazy variants revalidate nodes and edges as needed for
small scene changes; non-lazy variants assume a static scene. Large scene
changes call for a fresh roadmap. Disk I/O requires OMPL 1.5.0 or newer;
roadmap writing occurs when the planner instance is destroyed.
## Pilz limits, requests, and sequences
Before starting `move_group`, set the pipeline's `planning_plugins` list and
load `pilz_cartesian_limits.yaml` under
`<robot_description_parameter>_planning.cartesian_limits`.
Pilz uses the strictest combination of joint limits as common limits for all
joints; node parameters must be at least as strict as the URDF.
Select `PTP`, `LIN`, or `CIRC` with `MotionPlanRequest.planner_id`.
Velocity and acceleration scaling apply to joint limits for `PTP` and Cartesian
limits for `LIN` and `CIRC`. The latter two require zero start velocity and may
need lower scaling factors when the resulting trajectory exceeds joint limits.
For `CIRC`, `center` selects the shorter arc, which must be less than a
half-circle; `interim` requires passing through a supplied point on an arc
shorter than a full circle.
In a `MotionSequenceRequest`, adjacent `blend_radius` values must sum to less
than the distance between their goals. Reserve an explicit start state for the
first goal; later segments chain from preceding goals. Execution starts only
after all items plan successfully.
Load sequence capabilities through `move_group`'s space-separated `capabilities`.
`/plan_sequence_path` provides plan-only service use. The `/sequence_move_group`
action executes by default, even if the robot already satisfies the goal;
set `planning_options.plan_only = true` to return a plan without execution.
## Servo command handling and smoothing
Servo can use inverse-Jacobian calculations or the group's IK plugin from
`kinematics.yaml`. Pass `moveit_config.robot_description_kinematics` in the Servo
node's launch parameters. The plugin must declare custom solver parameters on
the Servo node before using them.
With a realtime kernel, the main `ServoNode` thread automatically attempts
`SCHED_FIFO` at priority 40.
For C++, select `CommandType::JOINT_JOG`, `TWIST`, or `POSE` to match the command
passed to `getNextJointState()`. The returned `KinematicState` has names,
positions, velocities, and accelerations. Read the latest status with `getStatus()`.
For ROS inputs, use `control_msgs/msg/JointJog`, `geometry_msgs/msg/TwistStamped`,
or `geometry_msgs/msg/PoseStamped` on their configured command topics.
Both Cartesian message types need `header.frame_id`; twist commands use the
robot's planning frame. This service call selects twist input (`TWIST`):
```sh
ros2 service call /servo_node/switch_command_type moveit_msgs/srv/ServoCommandType '{command_type: 1}'
```
Use `/<node_name>/pause_servo` to pause servoing; status is published as
`moveit_msgs/msg/ServoStatus` on `/<node_name>/status`.
Set `use_smoothing` and `smoothing_filter_plugin_name` to control smoothing:
- `online_signal_smoothing::ButterworthFilterPlugin` avoids joint-space overshoot, can deviate from straight Cartesian motion, and leaves jerk and acceleration unconstrained by the filter.
- `online_signal_smoothing::AccelerationLimitedPlugin` respects acceleration limits when feasible and preserves direction when kinematics permit; it can overshoot and leaves jerk unconstrained by the filter.
- `online_signal_smoothing::RuckigFilterPlugin` obeys joint and acceleration limits, but can overshoot or swirl at sharp corners. Preventing swirl requires shaping incoming commands outside Servo.
## Task Constructor assembly and execution
Use `moveit_task_constructor`'s `humble` branch with ROS 2 Humble, or `ros2` when
building against MoveIt 2 `main`. Pass the robot description, SRDF, and planning
pipeline configuration to the task node itself. The tutorial keeps its executor
spinning on a separate thread during planning and execution.
`task.init()` can throw `mtc::InitStageException`. `task.plan(5)` caps successful
solutions at five. Publish a selected solution through `task.introspection()`
and check the MoveIt error code returned by `execute()`.
Place `Connect` between chains that generate independent states; one connector
can select a solver for each planning group. Expose task properties on serial
containers, configure inheritance from the parent, and select child inheritance.
Save a pointer to `CurrentState` before moving it into the task so `GenerateGraspPose` can
monitor its scene snapshot. `ComputeIK` takes `target_pose` from the generated
interface state and `eef` and `group` from the parent.
For placement, save a pointer to the attachment stage for `GeneratePlacePose`
and set the wrapper's IK frame to the object ID.
In `MoveRelative`, the IK frame selects the moving link; the stamped direction's
frame selects the axes. Bound travel with `setMinMaxDistance()`.
In the forward pick sequence, permit hand contact before closing the gripper,
then attach the object in a later stage before lifting. At placement, open the
gripper, restore collision checking, then detach in a later stage.
`ModifyPlanningScene` reverses collision changes during backward propagation;
`allowCollisions(..., false)` permits the specified contact in that direction.
RViz's **Motion Planning Tasks** display shows successful and failed stage
solutions and costs. Propagation arrows and solution counts help locate a stage
to investigate; named stages expose `introspectionId()`.