Converting xacro to urdf ROS2
I am using ROS 2 Galactic and was trying to simulate ur robots in Unity. Unfortunately, I have to convert xacro files from the ur_driver to urdf to implement it to Unity 3D. I have not been successful finding a command for ROS2 to convert the xacro to urdf.
I tried ros2 run xacro xacro -o ur.urdf ur.urdf.xacro
to convert ur.urdf.xacro
to ur.urdf
.
Then i always get an output like "Undefined substitution argument name"
...
Does anyone have a suggestion how my problem can be solved? Any help is appreciated.