Gazebo | Ignition | Community
Ask Your Question

arocchi's profile - activity

2014-06-06 03:47:02 -0500 commented answer <sensor> elements in .urdf disappearing when converting to .sdf

it is a bug in sdformat which I reported some time ago, still not fixed. https://bitbucket.org/osrf/sdformat/issue/38/force_torque-sensors-not-handled-by

2013-11-15 09:47:50 -0500 received badge  Famous Question (source)
2013-10-17 07:37:49 -0500 received badge  Notable Question (source)
2013-10-15 02:39:48 -0500 received badge  Popular Question (source)
2013-10-14 12:04:00 -0500 commented answer <sensor> elements in .urdf disappearing when converting to .sdf

yes, the .gazebo is included in the .xacro file (coman.gazebo is included by comanrobot.urdf.xacro: <include filename="$(find comanurdf)/urdf/coman.gazebo" />)

2013-10-14 02:32:56 -0500 received badge  Editor (source)
2013-10-14 02:31:32 -0500 received badge  Organizer (source)
2013-10-13 13:05:03 -0500 asked a question <sensor> elements in .urdf disappearing when converting to .sdf

Hello everyone, I am working on the URDF description of the IIT COMAN robot, and I'm having some difficulties in inserting the gazebo force_torque sensor in my robot description. Inserting the element directly into the sdf file solves the problem, but at the moment we are working on the urdf description (which gets converted to sdf using gzsdf). Putting the element inside the .gazebo or inside the .urdf doesn't seem to make a difference. The description of the robot we are using is https://github.com/EnricoMingo/iit-co... Could someone give me instructions on how to correctly insert the sensor in the urdf or gazebo files? So far I tried the following syntax:

In the .gazebo file

<gazebo reference="LElbj">
    <cfmDamping>1</cfmDamping>
    <provideFeedback>true</provideFeedback>
    <sensor type="force_torque" name="LElbj_FT">
    <always_on>true</always_on>
    <visualize>true</visualize>
    <update_rate>1000</update_rate>
    </sensor>
</gazebo>

In the .gazebo, after including the right xmlns:sensor in the <robot> element

<gazebo reference="LElbj">
<cfmDamping>1</cfmDamping>
<provideFeedback>true</provideFeedback>
<sensor:force_torque name="LElbj_FT">
<always_on>true</always_on>
<visualize>true</visualize>
<update_rate>1000</update_rate>
</sensor:force_torque>

</gazebo>

In the .urdf

<joint name="RElbj" type="revolute">
<parent link="RShy"/>
<child link="RElb"/>
<origin xyz="0.0 0.0 -0.13519152999999998" rpy="0 0 0" />
<axis xyz="0 1 0" />
<limit velocity="4.0" effort="50" lower="-2.3562" upper="0.0" />
<sensor type="force_torque" name="Relbj_FT">
<always_on>true</always_on>
<visualize>true</visualize>
<update_rate>1000</update_rate>
</sensor>

</joint>

Obviously doing the same thing in the .sdf file works correctly (as shown in the force_torque_demo.world example). Any help would be greatly appreciated.