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

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 <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 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 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


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

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

1 Answer

Sort by ยป oldest newest most voted

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

Question Tools



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

Seen: 2,341 times

Last updated: May 16 '19