Gazebo | Ignition | Community
Ask Your Question

Revision history [back]

The command should be $./gazebo/bin/gzsdf convert your.urdf

And if you get another error, try sourcing the bash file: $source setup.bash from gazebo

The command should be $./gazebo/bin/gzsdf convert your.urdf

And if you get another error, try sourcing the bash file: $source setup.bash from gazebo

!!!! EDIT:
I remember on older Gazebo (~1.0) versions I used to do it like this:

source setup.bash, ~/path/gazebo$ source setup.bash

rosrun gazebo urdf2model -f yourmodel.urdf -o oldgazeboformat.xml (changes the urdf to gazebo model)

then

gzsdf print oldgazeboformat.xml > yourmodel.sdf (from gazebo model to sdf)

Hope it works.