Home | Tutorials | Wiki | Issues
Ask Your Question

SDF file is not supported in ROS

asked 2017-08-21 13:55:57 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

hi, I am trying to simulate my own robot in gazebo so I have SDF file not URDF. I tried with SDF file in mybot.xacro file to use ROS but it shows " Unable to call parseURDF on robot model ". do i have to make completely new URDF file from or is there still option of simulation with SDF file ? or can I change SDF file to URDF file. Is there any method ?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-08-29 09:40:07 -0500

SorinV gravatar image

I do not completely understand if you have the .xacro file apart from the SDF file. If you do, just generate the .urdf from it using:

rosrun xacro xacro --inorder robot.xacro > robot.urdf

Then load this one as you robot_description and the sdf file for the controllers, if you use some configuration like so. you can use directly the .xacro file like so:

 <arg name="model" default="$(find your_package/urdf/robot.xacro"/>
 <param name="robot_description" command="$(find xacro)/xacro --inorder $(arg model)" />
edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2017-08-21 13:55:57 -0500

Seen: 440 times

Last updated: Aug 29 '17