Difference between <origin> in urdf file and spawning a part at a given position
Hello,
I'm wondering what the difference between the following two methods is: I have the following urdf file
<link name="tube_link">
<collision>
<origin xyz="-0.25 0.5 0.835" rpy="0 0 0"/>
<geometry>
<cylinder radius="0.02" length="0.12" />
</geometry>
</collision>
<visual>
<origin xyz="-0.25 0.5 0.835" rpy="0 0 0"/>
<geometry>
<cylinder radius="0.02" length="0.12" />
</geometry>
</visual>
<inertial>
<mass value="0.3" />
<origin xyz="-0.25 0.5 0.835" rpy="0 0 0"/>
<cylinder_inertia_def radius="0.02" length="0.12" mass="0.3"/>
</inertial>
</link>
I use the
I tried then another approach and set all coordinates in the origin tag to 0 and spawned the model via coordinates in the launch file like
<node name="tube_spawner" pkg="gazebo_ros" type="spawn_model" output="screen" args="-urdf -param tube_description -x -0.25 -y 0.5 -z 0.835 -model my_kuka_tube" />
But the model showed strange behavior then. It was placed on a table (cafe_table standard model from Gazebo) and it slipped of the table automatically.
So what is the difference in these two methods?
Asked by steradiant on 2019-05-06 01:17:05 UTC
Comments