Ask Your Question
0

Adding revolute joint makes the wheels disappear

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

RSA_kustar gravatar image

Hello,

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>


<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"/>
  </joint>
edit retag flag offensive close merge delete

Comments

Have you found any answers to this problem ?

Farhud gravatar imageFarhud ( 2017-07-26 05:14:02 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

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

mahe_antoine gravatar image

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

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

https://answers.ros.org/question/2584...

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

Your Answer

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

Add Answer

Question Tools

1 follower

Stats

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

Seen: 201 times

Last updated: May 02 '18