Skip to Content
Controlling the armPlanned moves

Guide: the planned-move actions

Three actions move the arm to a goal you describe, planning the collision-free path for you rather than expecting one:

actiongoalplans via
go_to_ee_posetool pose in arm_mountcuRobo plan_to_pose
go_to_joint_configexplicit 7 joint angles (rad)cuRobo plan_to_joints
go_to_preseta name for a joint configurationcuRobo plan_to_joints

They contrast with execute_joint_trajectory, which takes an already-planned trajectory. All three share one lifecycle — PlannedMoveServer<ActionT> — so their Result and Feedback fields are identical and they behave the same on cancel, rejection and failure. Only the goal differs.

go_to_preset is go_to_joint_config with a lookup in front: the name is resolved to 7 joint angles and planned exactly the same way. None of these is a planner bypass — nothing drives the arm straight at a target.

Several targets in one motion

go_to_ee_poses and go_to_joint_configs are go_to_ee_pose and go_to_joint_config through a list of targets. Each leg is planned as the single-target action plans it, from where the leg before it ends, and the legs are blended into one trajectory by cuRobo’s /rammp_curobo/blend, so the arm passes the targets between still moving instead of stopping at each.

Each target carries its own leg’s fields (rammp_arm_interfaces/msg/EEPoseTarget, JointConfigTarget), so a target with only its pose or joints set is a full-speed, unheld leg that stops on it:

  • speed_scale (default 1.0): as on the single-target action, for the move to this target only. The blended trajectory carries every leg’s speed, so a slow leg blends into a fast one, and the driver executes it at speed scale 1.
  • orientation_hold (poses only, default HOLD_NONE): as on go_to_ee_pose, for this leg, kept through its overlaps with its neighbours. A hold is checked against where the arm is when the leg starts, which for every leg but the first is the previous target: a held leg’s pose must agree with the previous target’s on the held components, or the leg fails to plan.
  • blend_radius (m, default 0): how close the tool must pass this target, and how far it may leave the planned path, to cut the corner into the next leg. 0 stops on it. Not used on the last target, which always stops, but still refused there if it is not finite and >= 0.
  • One for the whole motion: control_mode and gains.

The planner cuts each corner only as far as the joint limits, collision, the held legs’ holds and the radius all allow, and stops on the target where nothing can be cut.

How a failure arrives. A malformed goal is rejected at submission, as for every GoTo action: no targets, a pose frame other than arm_mount, a pose that is not finite or whose orientation is not a unit quaternion (within 1e-3), a non-finite joint, a speed_scale out of range, an unknown orientation_hold, a blend_radius (on any target, the last included) that is negative or not finite, and otherwise as the single-target action (an unknown control_mode, gains other than the default on a POSITION goal). A token that does not hold control is refused as for the single-target actions: after planning, when the trajectory reaches the arbiter. Today every GoTo action reports that as -1 INVALID_GOAL (“supervisor rejected planned trajectory”), not the contract’s -8 NOT_AUTHORIZED. Otherwise a failure while planning ends the goal -7 PLANNING_FAILED before anything moves, with error_string:

  • leg k/N: <reason> when the plan of leg k fails. k counts from 1, so leg 1/3 is the move to targets[0]. Nothing after it is planned.
  • blend: <reason> when every leg plans but they cannot be joined.

Result and feedback are the single-target actions’, except that while planning planner_state carries the same prefix: leg 2/3: <cuRobo state> or blend: <state>. A cancel during planning stops the chain before the next leg or the blend and settles -6, as for the single-target actions.

One plan at a time. The planner takes one goal at a time, and the driver’s planner client keeps one cancel slot for the goal it sent last. A chain sends several goals in turn, so another GoTo goal arriving mid-chain shares the planner with it: whichever reaches it second fails with cuRobo’s planner busy (for the chain, as leg k/N: planner busy ...), and a cancel of one may reach the other’s plan. This predates these actions — two single-target goals collide the same way — but a chain is in the planner for longer. Send one GoTo goal at a time.

For the design rationale see superpowers/specs/2026-08-14-goto-jointconfig-preset-design.md and the GoToEEPose guide’s design spec .

Bring-up

Two nodes: the external planner and this repo’s arm node.

ros2 launch rammp_curobo_ros planner.launch.py config:=gen3_real.yaml

Then start kinova_gen3_node (sim or real — see the top-level README.md). No extra flags: it is already a client of both cuRobo planning actions.

!!! warning “Both nodes must use the same RMW” The planner container runs with RMW_IMPLEMENTATION=rmw_cyclonedds_cpp (see ROS_FLAGS in the Makefile). If kinova_gen3_node or your client runs under the default FastRTPS, discovery partly succeeds — ros2 action list shows the planner’s actions — but goals are never answered, and the action hangs in phase=planning forever rather than failing. A RTPS_READER_HISTORY ... payload size error in the log is the tell. Export RMW_IMPLEMENTATION=rmw_cyclonedds_cpp in every shell involved; make sim / make real already do.

Sending a goal

test/send_goto_joints.py is a small client for the two joint-space actions. It is dry-run by default; pass --go to actually execute.

# named configuration python3 kinova_gen3_ros2/test/send_goto_joints.py --preset home --go # explicit joints (rad) python3 kinova_gen3_ros2/test/send_goto_joints.py \ --joints 0 0.262 3.142 -2.269 0 0.96 1.571 --go # relative to where the arm is now python3 kinova_gen3_ros2/test/send_goto_joints.py --delta 0.15 --joint 6 --go

test/send_goto_pose_sequence.py does the same for go_to_ee_pose.

Presets

Code against the preset names, never their joint angles. Every node has these two:

namemeaning
homethe working pose skills start from and return to
restthe arm parked out of the way when no task is running

The angles behind each name belong to the installation: they depend on the mount and on what surrounds the arm, so they live in the deployment’s config and change without a release. There is deliberately no zero preset: the all-zeros configuration is not a safe place to send a mounted arm.

The registry comes from two ROS parameters: preset_names lists the presets and presets.<name> holds each one’s 7 joint angles in radians. home and rest are always registered, even when preset_names leaves them out. Until an installation overrides them, they use these defaults:

namedefault (rad)Kinova pose
home[0.0, 0.262, 3.142, -2.269, 0.0, 0.96, 1.571]Home
rest[0.0, -0.349, 3.142, -2.356, 0.0, -0.873, 1.571]Retract*

* Joint 4 at -2.356 rad (-135 deg), not Retract’s -2.548 (-146 deg). Factory Retract self-collides in cuRobo and never plans.

Those defaults assume a level mount and an empty workspace, so the node logs a warning at startup for each one still at its default, then a single presets: line listing every registered name. A deployment overrides the angles and may add presets beyond these two:

ros2 run kinova_gen3_ros2 kinova_gen3_node --sim \ --ros-args -p preset_names:="['home','rest','pour']" \ -p presets.rest:="[0.0, -0.3, 3.142, -2.5, 0.0, -0.9, 1.571]" \ -p presets.pour:="[0.0, 0.5, 3.0, -2.0, 0.0, 1.0, 1.5]"

An entry that is not exactly 7 values is dropped with a warning rather than padded, and go_to_preset then rejects that name. An unknown name is rejected outright — a preset never falls back to a default, because silently moving the arm somewhere the caller did not ask for is worse than refusing.

Results and feedback

Feedback arrives in two phases: planning (with cuRobo’s planner_state relayed in planner_state) then executing (with fraction_complete and the live measured actual).

error_codemeaning
0 SUCCESSFULplanned and executed to the end of the trajectory
-1 INVALID_GOALthe supervisor refused the planned trajectory
-4 PATH_TOLERANCE_VIOLATEDthe arm diverged from the planned path mid-execution
-6 PREEMPTEDcanceled, during planning or execution
-7 PLANNING_FAILEDcuRobo found no plan, or returned an empty/malformed one

A goal is rejected outright (never accepted, so no result code) when the node has no command sink, the pose frame is not arm_mount, target_joints contains a non-finite value, or a preset name is unknown.

Cancel works in both phases: during planning it cancels the in-flight cuRobo goal; during execution it goes through the supervisor. Either way the goal settles exactly once, as -6.

Expect -4 for large moves in sim

Under --sim the arm does not actually follow commands — measured q stays put — so the divergence guard (0.35 rad for these actions) fires on any move larger than that. A small --delta returns SUCCESSFUL; --preset home from the sim’s zero configuration swings joint 3 through ~3.14 rad and correctly returns -4. That is the guard working, not a failure. Use a real arm (or a small delta) to exercise the success path.

Speed and constraints per action

actionspeed_scaleorientation_hold
go_to_ee_poseyesyes
go_to_joint_configyesno
go_to_presetyesno
go_to_ee_posesper targetper target
go_to_joint_configsper targetno
execute_joint_trajectoryyesno

speed_scale (default 1.0, range: the driver’s minimum up to 1.0) runs the trajectory slower, by dilating the driver’s executor clock. Out of range is refused, not clamped.

Joint-space goals carry speed only. GoToJointConfig and GoToPreset plan in joint space, where holding a tool orientation has no meaning, so they have no orientation_hold. The absence is deliberate.

For go_to_ee_pose, both fields default to off. Three rules a caller will otherwise meet as a confusing failure (full detail in the GoToEEPose guide):

  • HOLD_LEVEL preserves tilt, it does not create level: a 45-degree tool stays at 45 the whole way.
  • A goal orientation disagreeing with the current one is refused, not re-aimed — a hold keeps the orientation at the goal’s value, so that asks for two orientations at once.
  • A spoon needs HOLD_FIXED: HOLD_LEVEL leaves the spin about vertical free, which is fine for a cup and tips a spoon out.

A refused goal tells the client nothing today. Rejections are bare ROS action rejections with no payload; the reason is logged server-side only (tracked as kinova-gen3-ros2#39). This includes an out-of-range speed_scale.

Safety

Unless speed_scale is set, the planned trajectory runs at full planner speed, and cuRobo plans to the arm’s real velocity limits. Set speed_scale below 1 for a first real-arm run, or lower the node-wide global_speed_scale parameter; the trajectory runs at the slower of the two (see interface.md). Read on-robot-runbook.md and keep the e-stop in hand before the first real-arm run of any of these actions. Real-arm runs must pin the RT loop to the host’s isolated core (--cpu <n>); make sim / make real do this via RT_CORE (default 11).

Edit this page on GitHub