Isaac_ros_cumotion with Franka example fails due to panda_finger_joint2 mimic joint and INVALID_INITIAL_CSPACE_POSITION

Hi,

I’m trying to run the Franka example by following the official documentation:

Commands

First, I launch the Franka example:

ros2 launch isaac_ros_cumotion_examples franka.launch.py

Then I launch the cuMotion planner:

ros2 launch isaac_ros_cumotion isaac_ros_cumotion.launch.py \
  cumotion_action_server.xrdf_file_path:=$(ros2 pkg prefix --share isaac_ros_cumotion_robot_description)/xrdf/franka.xrdf \
  cumotion_action_server.urdf_file_path:=$(ros2 pkg prefix --share moveit_resources_panda_description)/urdf/panda.urdf \
  cumotion_action_server.tool_frame:=panda_hand \
  cumotion_action_server.read_esdf_world:=false

Issue

The planner starts successfully, but during initialization I get the following error:

Attempted to set position for joint named 'panda_finger_joint2' during URDF import, but 'panda_finger_joint2' does not correspond to an auxiliary c-space coordinate.

cuMotion fatal error occurred. Attempted to set default position for joint 'panda_finger_joint2', but joint is a mimic joint controlled by an auxiliary c-space coordinate.

Later, when I send a planning request from MoveIt, planning always fails with:

Trajectory optimization to joint config failed (trajopt: INVALID_INITIAL_CSPACE_POSITION)

Invalid c-space position:
Number of c-space coordinates in 'cspace_position' [9] must equal the number of c-space coordinates of the robot [7].

initial_cspace_position:
[0 -0.785 0 -2.356 0 1.571 0.785 0 0]

It seems that MoveIt is providing a 9-DOF joint state (including the finger joints), while cuMotion expects only the 7 arm joints because panda_finger_joint2 is a mimic joint.

Question

Has anyone encountered this issue before?

  • Is there a version mismatch between isaac_ros_cumotion, moveit_resources_panda_description, and the Franka example?

  • Is the current franka.xrdf compatible with the latest moveit_resources_panda_description?

  • Do I need to modify the URDF/XRDF or MoveIt configuration so that only the 7 arm joints are passed to cuMotion?

  • Is this a known issue with ROS 2 Jazzy?

Any suggestions would be greatly appreciated.

Thank you!

Hello @ray.zheng,

Thanks for posting in the Isaac ROS forum!

Are you using Isaac ROS 4.5 package with Jetson Thor machine?
The error message you shared looks like an XRDF/URDF mismatch in the Franka cuMotion example. The provided franka.xrdf defines cuMotion c-space as only the 7 Panda arm joints, but its default_joint_positions also includes panda_finger_joint2. In the Panda URDF from moveit_resources_panda_description, panda_finger_joint2 is a mimic joint of panda_finger_joint1, so cuMotion should not receive a default position for it.

You could try the workaround of removing only panda_finger_joint2 from a copied XRDF, this allows cuMotion to initialize successfully.

mkdir -p ${ISAAC_ROS_WS}/isaac_ros_assets/xrdf

cp $(ros2 pkg prefix --share isaac_ros_cumotion_robot_description)/xrdf/franka.xrdf ${ISAAC_ROS_WS}/isaac_ros_assets/xrdf/franka_no_mimic_default.xrdf

sed -i '/^[[:space:]]*panda_finger_joint2:/d' \
    ${ISAAC_ROS_WS}/isaac_ros_assets/xrdf/franka_no_mimic_default.xrdf

grep -n "panda_finger_joint" \
    ${ISAAC_ROS_WS}/isaac_ros_assets/xrdf/franka_no_mimic_default.xrdf

Expected grep output should show only: panda_finger_joint1: 0.04
Then launch cuMotion with the patched XRDF:

ros2 launch isaac_ros_cumotion isaac_ros_cumotion.launch.py \
cumotion_action_server.xrdf_file_path:=${ISAAC_ROS_WS}/isaac_ros_assets/xrdf/franka_no_mimic_default.xrdf \
cumotion_action_server.urdf_file_path:=$(ros2 pkg prefix --share moveit_resources_panda_description)/urdf/panda.urdf \
cumotion_action_server.tool_frame:=panda_hand \
cumotion_action_server.read_esdf_world:=false

With this change, you should be able to initialize the cuMotion action server and plan & execute on rviz with planning group as panda_arm again.

Let me know if the problem still proceeds.

I tried your suggestion and removed panda_finger_joint2 from the configuration, but I’m still seeing the same planning failure.

I’m running the example on Isaac ROS 4.5 (ROS 2 Jazzy) with the Thor release.

The planner initializes successfully, but when sending a MoveGroup request it fails with:

Trajectory optimization to joint config failed
(trajopt: INVALID_INITIAL_CSPACE_POSITION)

Invalid c-space position:
Number of c-space coordinates in 'cspace_position' [9]
must equal the number of c-space coordinates of the robot [7].

initial_cspace_position:
[0 -0.785 0 -2.356 0 1.571 0.785 0 0]

Thanks for following up.
Could you confirm which MoveIt planning group is selected in RViz, or which planning group is used in the MoveGroup request? With the current Franka XRDF, please use panda_arm only, not hand or panda_arm_hand.

If you are already using panda_arm and the request still sends a 9-value start state, please share the MoveGroup request or the relevant /joint_states output so we can check whether the finger joints are being included in the request unexpectedly.

Hi, vchuang,

I am using panda_arm as the planning group, here is the raw topic output from ros2 topic echo /joint_states --once

header:
  stamp:
    sec: 1785218374
    nanosec: 960896147
  frame_id: base_link
name:
- panda_finger_joint1
- panda_finger_joint2
- panda_joint1
- panda_joint2
- panda_joint3
- panda_joint4
- panda_joint5
- panda_joint6
- panda_joint7
position:
- 0.0
- 0.0
- 0.0
- -0.785
- 0.0
- -2.356
- 0.0
- 1.571
- 0.785
velocity:
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
effort:
- .nan
- .nan
- .nan
- .nan
- .nan
- .nan
- .nan
- .nan
- .nan

With the above XRDF WA fix, MoveIt/RViz workflow should be able to plan with the ‘panda_arm’ group.
Are you sending the /cumotion/move_group request manually with ros2 action send_goal or from your own client? If so, please make sure request.start_state.joint_state only contains the 7 Franka arm joints: panda_joint1-7

Please do not include:
panda_finger_joint1
panda_finger_joint2

The current Franka XRDF used by cuMotion defines only a 7-DOF arm c-space, so a start state containing the two finger joints will be interpreted as a 9-value c-space and can trigger INVALID_INITIAL_CSPACE_POSITION.
If the issue still persists, please share the exact command or client code you use, so we can check it further.

Thanks for the reply!

I can confirm that I am running the exact official example without making any code modifications. I have also already modified panda_finger_joint2 in $(ros2 pkg prefix --share isaac_ros_cumotion_robot_description)/xrdf/franka.xrdf as suggested in your previous response, but I am still hitting the same error.

Here are the exact commands I ran:

sudo apt-get install -y ros-jazzy-isaac-ros-cumotion-examples 

ros2 launch isaac_ros_cumotion_examples franka.launch.py 

ros2 launch isaac_ros_cumotion isaac_ros_cumotion.launch.py \ 
  cumotion_action_server.xrdf_file_path:=$(ros2 pkg prefix --share isaac_ros_cumotion_robot_description)/xrdf/franka.xrdf \ 
  cumotion_action_server.urdf_file_path:=$(ros2 pkg prefix --share moveit_resources_panda_description)/urdf/panda.urdf \ 
  cumotion_action_server.tool_frame:=panda_hand \ 
  cumotion_action_server.read_esdf_world:=false

Could you confirm how you applied the XRDF workaround?
Did you directly modify the installed file under /opt/ros/jazzy/.../franka.xrdf, or did you create a patched copy using the earlier command?

From the command you shared, xrdf_file_path still points to the package-installed file:
$(ros2 pkg prefix --share isaac_ros_cumotion_robot_description)/xrdf/franka.xrdf

If you followed the patched-copy workaround, the launch command should point to the patched file instead, for example:
${ISAAC_ROS_WS}/isaac_ros_assets/xrdf/franka_no_mimic_default.xrdf

Please first verify that the file passed to cumotion_action_server.xrdf_file_path does not contain: panda_finger_joint2: 0.04

You can check the file with:
grep -n "panda_finger_joint2: 0.04" <XRDF_FILE_PATH>

If the line is still present, cuMotion is still loading the unpatched XRDF.

yes, I directly modify $(ros2 pkg prefix --share isaac_ros_cumotion_robot_description)/xrdf/franka.xrdf

and following issue have been resolved after modifying franka.xrdf

Attempted to set position for joint named 'panda_finger_joint2' during URDF import, but 'panda_finger_joint2' does not correspond to an auxiliary c-space coordinate.

cuMotion fatal error occurred. Attempted to set default position for joint 'panda_finger_joint2', but joint is a mimic joint controlled by an auxiliary c-space coordinate.

So I still don’t understand why it’s outputting 9-value state

Thanks for confirming.

The franka.xrdf change resolves the first issue, where cuMotion fails during robot import because panda_finger_joint2 is a mimic joint.

For the remaining INVALID_INITIAL_CSPACE_POSITION error, I could not reproduce the exact same RViz GUI path on my system after modifying franka.xrdf. However, I was able to reproduce the same failure when manually sending request to the MoveGroup that contains the full Panda state, including the two finger joints. In that case, cuMotion receives 9 joint positions while the Franka XRDF c-space only has 7 arm joints.

A possible workaround is to make CumotionPlanner::GetStartCSpacePosition() filter and reorder the named MoveIt start state using the cuMotion/XRDF c-space joint names before passing it to cuMotion. This avoids treating extra non-cspace joints, such as panda_finger_joint1 and panda_finger_joint2, as part of the cuMotion c-space.

You can try to apply the attached patch in: isaac_ros_cumotion/src/cumotion_planner.cpp

cumotion_planner_tmp_fix.txt (2.9 KB)

Please treat this as a workaround to unblock testing, not the official solution. It has only been validated for this Franka start-state case, not across all robot configurations. For the final fix, please follow a future Isaac ROS update/release.