ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
One way to do it is as follow
import xacro
...
urdf = xacro.process_file(file_path, mappings={'tfpre': 'robot1/'}).toxml()
# Use urdf