官术网_书友最值得收藏!

Conversion of xacro to URDF

After designing the xacro file, we can use the following command to convert it into a UDRF file:

$ rosrun xacro xacro.py pan_tilt.xacro > pan_tilt_generated.urdf

We can use the following line in the ROS launch file for converting xacro to UDRF and use it as a robot_description parameter:

  <param name="robot_description" command="$(find xacro)/xacro.py $(find mastering_ros_robot_description_pkg)/urdf/pan_tilt.xacro" />

We can view the xacro of pan and tilt by making a launch file, and it can be launched using the following command:

$ roslaunch mastering_ros_robot_description_pkg view_pan_tilt_xacro.launch
主站蜘蛛池模板: 南江县| 盐津县| 石嘴山市| 黄平县| 长治县| 蒙城县| 蓝山县| 布拖县| 海晏县| 灵川县| 波密县| 鄂温| 屯昌县| 阳西县| 醴陵市| 张家口市| 抚宁县| 临猗县| 榆林市| 香格里拉县| 库车县| 合江县| 即墨市| 勃利县| 梅州市| 鄂托克旗| 赤峰市| 昭平县| 托克逊县| 堆龙德庆县| 柘荣县| 渭源县| 玉山县| 柏乡县| 沅陵县| 洛隆县| 华坪县| 抚远县| 黔东| 城市| 黄大仙区|