I already have an URDF model and it have 6 joints. My last link is flange, and now i want to build a eef_link to change the reference of the flange to my new tool. I try to create a tool insede my urdf file:
<joint name="flange_tool" type="fixed">
<parent link="flange" />
<child link = "tool" />
<origin xyz="0.0 0.0 0.0" rpy="0.0 0.0 0." />
<axis xyz="1 0 0" />
</joint>
<link name="tool">
<visual>
<origin rpy="0.0 1.5708 0.0" xyz="0.064 0 0" />
<geometry>
<cylinder length="0.1" radius="0.01"/>
</geometry>
<material name="LightGrey">
<color rgba="0.7 0.7 0.7 1.0" />
</material>
</visual>
<collision>
<origin rpy="0.0 1.5708 0.0" xyz="0.064 0 0" />
<geometry>
<cylinder length="0.1" radius="0.01"/>
</geometry>
</collision>
</link>
It show's on Rviz or Gazebo simulation, but the TCP coordenades do not change! So, how to do a generic TCP for my robot?