ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
8

robot_state_publisher with SDF Files

asked 2015-03-11 15:44:40 -0600

Naman gravatar image

updated 2015-03-12 02:50:44 -0600

gvdhoorn gravatar image

Hi all,

I just want to ask about the support of robot_state_publisher with SDF Files, can we use it to broadcast the state of the robot to the TF Transform Library using SDF Files (not URDF Files).

One related link: http://answers.ros.org/question/61097... but it is couple of years old and I was wondering whether there has been any change.

Thanks. Naman

edit retag flag offensive close merge delete

Comments

Im really interested in this as well, as i would like to visualize the robot in rviz, but my gazebo model requires closed loop joints, so i need to use a SDF description for gazebo. I dont think your can pass both a URDF and SDF into the robot_description parameter.. not sure if im correct though.

l0g1x gravatar image l0g1x  ( 2015-03-13 11:34:27 -0600 )edit

The issue is with robot_state_publisher to convert Joint States to TF Transforms which is only compatible with URDF files. There is no direct way to do this using SDF files. One option can be to add SDF support to get the TF transforms which can be challenging OR just maintain 2 copies(SDF and URDF)

Naman gravatar image Naman  ( 2015-03-13 12:15:10 -0600 )edit

I am facing the similar issue, has anyone solved this problem. If yes, kindly share the details. If not, can you explain a little bit how we can make use of URDF and SDF at the same time?

owais2k12 gravatar image owais2k12  ( 2017-11-08 00:11:28 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
4

answered 2015-05-26 15:57:50 -0600

ahendrix gravatar image

There is an open ticket against gazebo to create a SDF to URDF conversion tool: https://bitbucket.org/osrf/gazebo/iss...

Since the URDF is used in several places in ROS, it makes sense to try to convert an SDF into a URDF so that it can be visualized by rviz and used with robot_state_publisher.

edit flag offensive delete link more

Question Tools

3 followers

Stats

Asked: 2015-03-11 15:44:40 -0600

Seen: 2,965 times

Last updated: May 26 '15