Ask Your Question

URDF Joint Mimic Tag Not Functioning

asked 2013-04-16 15:57:05 -0600

Dave Coleman gravatar image

updated 2013-04-18 08:49:41 -0600

I am using the new mimic tag that is included in the urdf/XML/joint element, like so (this is xacro):

  <joint name="gripper_finger_joint" type="revolute">
    <parent link="gripper_roll_link"/>
    <child link="gripper_finger_link"/>
    <origin xyz="0.026 .017 0" rpy="${1.04*M_PI} ${M_PI/2} ${34.58*M_PI/180}" />
    <axis xyz="1 0 0" />
    <limit effort="300" velocity="1" lower="${-53*M_PI/180}" upper="${0*M_PI/180}"/>
    <dynamics damping="50" friction="1"/>


  <joint name="r_gripper_aft_joint" type="revolute">
    <parent link="gripper_roll_link"/>
    <child link="r_gripper_aft_link"/>
    <origin xyz="0.026 -0.011  0" rpy="${1.345*M_PI} ${M_PI/2} ${34.58*M_PI/180}" />
    <axis xyz="1 0 0" />
    <limit effort="300" velocity="1" lower="-3.14" upper="3.14" />
    <mimic joint="gripper_finger_joint" multiplier="-1.0" offset="0.0" />
    <dynamics damping="50" friction="1"/>

However, in Rviz the mimic joints are not working with the Rviz RobotModel plugin. What could I be missing?

The entire urdf is available here.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2013-04-16 21:39:41 -0600

isucan gravatar image

What are you using to visualize the robot? Can you try the RobotModel as well as the MoveIt! MotionPlanningDisplay ? Is there a difference?

edit flag offensive delete link more


Ah, yes, mimic joint does work in the MoveIt! MotionPlanningDisplay. However, it does not work using the RobotModel plugin, which seems like an issue since the mimic joint is part of URDF, a non-MoveIt specific component.

Dave Coleman gravatar image Dave Coleman  ( 2013-04-18 08:48:06 -0600 )edit

Additionally, it seems like the RobotState MoveIt plugin works too, but I don't know what to put in the "Robot State Topic" to make it reflect the current published TFs from the controllers.

Dave Coleman gravatar image Dave Coleman  ( 2013-04-18 08:48:58 -0600 )edit

Alright. Does your system publish the value of the mimic joints on /joint_states ? I expect not. This is redundant information, but I believe it is what the robot_state_publisher uses. I guess the robot_state_publisher needs to be updated to 'fill in the blanks', where the blanks are mimic joints.

isucan gravatar image isucan  ( 2013-04-18 08:53:30 -0600 )edit

Currently David Lu!!!'s joint state publisher does that, but I was assuming it had already been integrated into robot_state_publisher when I heard that mimic tags were officially supported.

Dave Coleman gravatar image Dave Coleman  ( 2013-04-18 08:55:56 -0600 )edit

Please assign a ticket to robot_state_publisher and we'll continue the discussion there.

isucan gravatar image isucan  ( 2013-04-18 08:56:56 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2013-04-16 15:57:05 -0600

Seen: 1,984 times

Last updated: Apr 18 '13