I want the make the coordinates be the same as real robot ,but I cannot find where can I achieve this. I guess by changing some factors in urdf file will be useful. Could you tell where can I change the positive direction of coordinates. Here is part of the urdf file. Please take base link's coordinate as an example.Thx!
<link
name="base_link">
<inertial>
<origin
xyz="2.33471583537977E-06 0.00662907239788253 1.33004670421342"
rpy="0 0 0" />
<mass
value="25.8577669048994" />
<inertia
ixx="0.267014137924139"
ixy="-1.36584455424997E-05"
ixz="4.24690442718128E-07"
iyy="0.472244407235779"
iyz="5.34065558451065E-05"
izz="0.549554614712028" />
</inertial>
<visual>
<origin
xyz="0 0 0"
rpy="0 0 0" />
<geometry>
<mesh
filename="package://dscr5_6/meshes/base_link.STL" />
</geometry>
<material
name="">
<color
rgba="0.298039215686275 0.298039215686275 0.298039215686275 1" />
</material>
</visual>
<collision>
<origin
xyz="0 0 0"
rpy="0 0 0" />
<geometry>
<mesh
filename="package://dscr5_6/meshes/base_link.STL" />
</geometry>
</collision>
</link>
<link
name="rlink1">
<inertial>
<origin
xyz="-3.48537472660837E-07 -0.0233818482234878 -0.0427896937411072"
rpy="0 0 0" />
<mass
value="4.9503936266377" />
<inertia
ixx="0.0280328872192691"
ixy="-1.09421874885135E-08"
ixz="8.01870940105599E-08"
iyy="0.0290016533494644"
iyz="0.00182600668247838"
izz="0.0175058159650953" />
</inertial>
<visual>
<origin
xyz="0 0 0"
rpy="0 0 3.14" />
<geometry>
<mesh
filename="package://dscr5_6/meshes/rlink1.STL" />
</geometry>
<material
name="">
<color
rgba="1 1 1 1" />
</material>
</visual>
<collision>
<origin
xyz="0 0 0"
rpy="0 0 0" />
<geometry>
<mesh
filename="package://dscr5_6/meshes/rlink1.STL" />
</geometry>
</collision>
</link>
<joint
name="rjoint1"
type="revolute">
<origin
xyz="-0.384999999999999 0 1.33"
rpy="3.14 1.57 0" />
<parent
link="base_link" />
<child
link="rlink1" />
<axis
xyz="0 0 1" />
<limit
lower="-3.14"
upper="3.14"
effort="60"
velocity="2.088" />
</joint>
Originally posted by xiaozhenghong on ROS Answers with karma: 5 on 2021-04-11
Post score: 0