Adding revolute joint makes the wheels disappear
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>
Asked by RSA_kustar on 2016-10-28 05:57:16 UTC
Answers
Hi, I encounter a similar problem and was able to solve it thanks to this answer :
https://answers.ros.org/question/258420/ball-joint-in-urdf/
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.
Asked by mahe_antoine on 2018-05-02 08:31:23 UTC
Comments
Have you found any answers to this problem ?
Asked by Farhud on 2017-07-26 05:14:02 UTC