Conversion of xacro to urdf
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 ?
Asked by gktg1514 on 2019-10-10 15:16:27 UTC
Answers
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
Asked by David Lu on 2019-10-10 16:14:07 UTC
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.
Asked by gktg1514 on 2019-10-10 16:25:11 UTC
The xacro file contains lines like this one that require that baxter_description
is on your path. So it has to be on your path in your workspace. See this tutorial: https://wiki.ros.org/catkin/Tutorials/create_a_workspace
Asked by David Lu on 2019-10-10 16:39:22 UTC
Comments