How could I obtain my urdf file from the xacro description

asked 2021-06-02 06:25:36 -0500

david_99 gravatar image

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.

edit retag flag offensive close merge delete

Comments

1

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

djchopp gravatar image djchopp  ( 2021-06-02 12:52:52 -0500 )edit

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.

david_99 gravatar image david_99  ( 2021-06-08 03:47:36 -0500 )edit