ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Adding revolute joint makes the wheels disappear

asked 2016-10-28 05:57:16 -0600

RSA_kustar gravatar image


I am trying to create a 2 wheel mobile robot using xacro file.. I followed the tutorials when using SDF and I convert it to xacro and I have two links for the wheels and two joints of type revolute. when I add the revolute joints and I run the launch file I cant see the wheels on gazebo .. I have the following tags for the joints ?? is there any thing wrong ?? also, is it the right way to have a revolute joints of 2 wheels robot ??

<joint type="revolute" name="left_wheel_hinge">
 <origin xyz="0 -0.18 -0.03" rpy="0 1.5707 1.5707"/>
 <child link="left_wheel"></child>
  <parent link="base_link"></parent>
  <axis xyz="0 1 0"/>
  <limit effort="0.0" lower="0.0" upper="0.0" velocity="0.0"/>

<joint type="revolute" name="right_wheel_hinge">
 <origin xyz="0 0.18 -0.03" rpy="0 1.5707 1.5707"/>
 <parent link="base_link"></parent>
 <child link="right_wheel"></child>
  <axis xyz="0 1 0"/>
  <limit effort="0.0" lower="0.0" upper="0.0" velocity="0.0"/>
edit retag flag offensive close merge delete


Have you found any answers to this problem ?

Farhud gravatar image Farhud  ( 2017-07-26 05:14:02 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2018-05-02 08:31:23 -0600

mahe_antoine gravatar image

updated 2018-05-02 08:31:44 -0600

Hi, I encounter a similar problem and was able to solve it thanks to this answer :

It seems that gazebo ignore certain link depending on their inertia. In my case I have a virtual_link as advise there to create a 2DOF joint. In my try I try with a "dummy" inertia with all value to set to 0 but gazebo also ignore it so I put very low value to have my model work woth gazebo. To understand your exact problem your full urdf/xarco file would be needed.

Hope it helps.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2016-10-28 05:57:16 -0600

Seen: 938 times

Last updated: May 02 '18