How could I obtain my urdf file from the xacro description
Hi everybody,
I am new with ros and I was tryng to control baxter in unity. First of all I was trying to get my urdf file by executing the command I read in: https://github.com/RethinkRobotics/ba..., "rosrun xacro xacro.py - -inorder rospack find baxter_description
/urdf/baxter.urdf.xacro". When I ran it on the command line I got these errors:
[rospack] Error: package 'baxter_description' not found [rosrun] Couldn't find executable named xacro.py below /opt/ros/noetic/share/xacro
I am using noetic. Thanks in advance.
Have you sourced your ROS install and the workspace where the
baxter_description
package is? Are you keeping the backticks in the command?rosrun xacro xacro.py --inorder `rospack find baxter_description`/urdf/baxter.urdf.xacro
is not the same asrosrun xacro xacro.py --inorder rospack find baxter_description/urdf/baxter.urdf.xacro
EDIT: also xacro.py is deprecated and inorder is default, use the following command instead:
rosrun xacro xacro `rospack find baxter_description`/urdf/baxter.urdf.xacro
Thanks for answering. I forgot to install some packages, as you said, and after getting them and use rosrun xacro xacro
rospack find baxter_description
/urdf/baxter.urdf.xacro the urdf automatically generated. Thank you so much, I was working in my final degree project and I was stuck in this point.Sincerely.