Ask Your Question
1

Can I use "GZSDF" to convert an URDF file into a SDF file???

asked 2013-02-01 06:22:12 -0500

Jey_316 gravatar image

updated 2013-02-01 06:29:06 -0500

Can I use "GZSDF" to convert an URDF file into a SDF file???

-I have my urdf(01-myfirstyo.urdf) in the next path:

/home/john/ros/01-myfirstyo.urdf

  • I tried several methods to convert an urdf file into a sdf file (with gzdf in ROS FUERTE) and they didnt work:

FIRST TRY:

john@john-K53SD:/opt/ros/fuerte/stacks/simulator_gazebo/gazebo$ source setup.bash

john@john-K53SD:/opt/ros/fuerte/stacks/simulator_gazebo/gazebo$ ./gazebo/bin/gzsdf print /home/john/ros/01-myfirstyo.urdf

Warning [parser.cc:348] Gazebo SDF has no gazebo element

Error [parser.cc:263] parse as old deprecated model file failed.

Error: SDF parsing the xml failed

SECOND TRY:

john@john-K53SD:/opt/ros/fuerte/stacks/simulator_gazebo/gazebo$ source setup.bash

john@john-K53SD:/opt/ros/fuerte/stacks/simulator_gazebo/gazebo$ ./gazebo/bin/gzsdf convert /home/john/ros/01-myfirstyo.urdf

Error: Unknown option[convert] This tool provides information about SDF files.

gzsdf <command> [file]

Commands:

describe   Print the SDF format.

check      Check the SDF format for the given file.

print      Prints SDF, useful for debugging parser and as a conversion tool.

Please tell me what am i doing wrong???

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2013-02-02 04:50:44 -0500

Alexandr Buyval gravatar image

Hi,

I had a similar error in fuerte. After I had installed the groovy I have completed the conversion without error by command:

gzsdf print *.urdf

Alex

edit flag offensive delete link more

Comments

Was you conversion in fact correct? In my case it only properly converted visual properties.

dejanpan gravatar image dejanpan  ( 2013-02-18 02:51:00 -0500 )edit
1

Conversion was correct after I had deleted all xacro properties like "${M_PI/2}"

Alexandr Buyval gravatar image Alexandr Buyval  ( 2013-02-19 04:54:34 -0500 )edit

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: 2013-02-01 06:22:12 -0500

Seen: 1,593 times

Last updated: Feb 02 '13