robotology / simmechanics-to-urdf

Script for converting simmechanics XML files to URDF
34 stars 8 forks source link

Reorder URDF file elements for avoiding sdformat issue 164 #25

Closed nunoguedelha closed 7 years ago

nunoguedelha commented 7 years ago

This PR is a solution in the URDF generation workflow for avoiding an issue with the urdf to sdf converter (https://bitbucket.org/osrf/sdformat/issues/164). This late issue was causing Gazebo to crash as we loaded the iCub model (https://github.com/robotology-playground/icub-model-generator/issues/54). The change here is to insert in the URDF file the XML blobs before the <sensor> tags. This way, if a blob with collision/bounce parameters is present, it will be added before the <sensors> tag. Check https://github.com/robotology-playground/icub-model-generator/issues/54 and https://bitbucket.org/osrf/sdformat/issues/164 for more details.