When sourcing /opt/ros/.../setup.bash it update the PATH environment variable to have /opt/ros/.../bin which contains the xacro binary, this is needed to make urdf-viz work with ROS2.
Another solution would be to always use xacro since the path to the binary directory will be set for ROS1, too, which mean we could use xacro directly for both versions.
Thanks for the awesome libraries!
When sourcing
/opt/ros/.../setup.bash
it update thePATH
environment variable to have/opt/ros/.../bin
which contains thexacro
binary, this is needed to make urdf-viz work with ROS2.Another solution would be to always use
xacro
since the path to the binary directory will be set for ROS1, too, which mean we could usexacro
directly for both versions.