When running the turtlebot3_manipulation
package in ROS2, an error may arise indicating that a joint is not found:
1 |
[moveit_robot_model.robot_model]: Joint 'gripper_right_joint_mimic' not found in model 'turtlebot3_manipulation' |
Specifically, the error message can prevent the proper operation of the TurtleBot3 manipulator. This issue can be resolved by editing the URDF file associated with the TurtleBot3 manipulation description.
The Problem
The error message highlights that the joint gripper_right_joint_mimic
is absent in the robot model. This joint is essential for the manipulator’s functionality as it defines the relationship between different parts of the robot, especially concerning the gripper mechanism.
The Solution
To resolve this issue, you need to modify the URDF file located at turtlebot3_manipulation/turtlebot3_manipulation_description/urdf/open_manipulator_x.urdf.xacro
. By adding the necessary joint definitions to this file, you ensure that the gripper_right_joint_mimic
joint is recognized in the robot model. Here are the lines of XML that should be added to the URDF file:
1 2 3 4 5 6 7 8 |
<joint name="${prefix}gripper_right_joint" type="prismatic"> ... </joint> <joint name="${prefix}gripper_right_joint_mimic" type="fixed"> <parent link="${prefix}link5" /> <child link="dummy_mimic_fix" /> </joint> <link name="dummy_mimic_fix"/> |