How to call xacro to convert a file?

asked 2020-03-13 11:11:24 -0500

CptanPanic gravatar image

I am mostly trying to do something in gazebo, but need to generate a sdf from some xacro files. I am on Ubuntu, and installed the ros-melodic-xacro package, and it exists, but if I try to run /opt/ros/melodic/bin/xacro I get the following error. What am I missing? Thanks,

Traceback (most recent call last):
File "/opt/ros/melodic/bin/xacro", line 32, in <module> import xacro ImportError: No module named xacro

edit retag flag offensive close merge delete



Did you source /opt/ros/melodic/setup.bash before trying to run that script?

gvdhoorn gravatar image gvdhoorn  ( 2020-03-13 11:41:22 -0500 )edit