Ask Your Question
0

Problem with converting .xacro to .urdf in Windows 10 ROS

asked 2019-05-13 16:24:07 -0500

zhuq25 gravatar image

updated 2019-05-14 02:16:17 -0500

gvdhoorn gravatar image

I am using the command

rosrun xacro xacro.py <filename>.urdf.xacro > <filename>.urdf

as well as

rosrun xacro xacro --inorder <filename>.urdf.xacro > <filename>.urdf

I receive an error for both commands that says

xacro.py: error: expected exactly one input file as argument

which, for the second command, doesn't have the .py extension. The directory is valid and if I don't add the xacro.py or xacro --inorder part, the command runs without an error but doesn't produce a .urdf in the folder I want it in.

Sorry for the unclear description, I am not familiar with this software and am pretty new to coding. The reason I need to convert the .xacro to a .urdf file is because I am trying to make a GUI that shows one robot arm, however the .urdf file I have is for the entire robot. I followed this guide to use ROS on Windows 10.

edit retag flag offensive close merge delete

Comments

Could you please always tag ROS-on-Windows questions with at least one tag mentioning Windows?

gvdhoorn gravatar imagegvdhoorn ( 2019-05-14 02:16:06 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-05-16 18:50:00 -0500

OoeyGUI gravatar image

xacro is an executable, so you can just use xacro file.urdf.xacro

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2019-05-13 14:55:51 -0500

Seen: 1,126 times

Last updated: May 16