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

Conversion of xacro to urdf

asked 2019-10-10 15:16:27 -0600

gktg1514 gravatar image

I have a xacro file, and I need to convert it to urdf file. I have a folder called baxter_description. In this folder, there are two inner folders called meshes and urdf. In urdf folder, there are some urdf files and xacro files. I have to convert my_baxter.urdf.xacro file to urdf file.

To accomplish this, I executed following command: rosrun xacro xacro my_baxter.urdf.xacro --inorder > my_baxter.urdf

When I executed this command, I got this error:

resource not found: baxter_description

ROS path [0]: /opt/ros/kinetic/share/ros

ROS path [1]: /home/goktug/catkin_ws/src

ROS path [2]: /opt/ros/kinetic/share None

Is there anyone who can know the reason of this problem ?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2019-10-10 16:14:07 -0600

David Lu gravatar image

Have you compiled baxter_description and/or made sure its on your path via rospack find baxter_description? Sometimes you're just missing a source .bashrc

edit flag offensive delete link more

Comments

I thought that there is a need of sourcing that folder, however, the command source is used to source a bash file. There is no any bash file in the folder baxter_description. It is a classical folder containing meshes and urdfs.

gktg1514 gravatar image gktg1514  ( 2019-10-10 16:25:11 -0600 )edit

The xacro file contains lines like this one that require that baxter_descriptionis on your path. So it has to be on your path in your workspace. See this tutorial: https://wiki.ros.org/catkin/Tutorials...

David Lu gravatar image David Lu  ( 2019-10-10 16:39:22 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2019-10-10 15:16:27 -0600

Seen: 1,327 times

Last updated: Oct 10 '19