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

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
主站蜘蛛池模板: 鹤山市| 望谟县| 揭东县| 浦城县| 石门县| 临夏县| 化德县| 榆树市| 五常市| 达孜县| 青海省| 柳林县| 湘阴县| 聂荣县| 巨野县| 鹿泉市| 剑阁县| 阿拉善盟| 乌拉特前旗| 哈巴河县| 泰安市| 扎囊县| 湘阴县| 海原县| 永寿县| 密山市| 德保县| 阿拉尔市| 星子县| 博兴县| 青龙| 湖南省| 内丘县| 吉安市| 科技| 祁门县| 吴川市| 荆门市| 灌阳县| 达拉特旗| 邹城市|