Open Sslishy opened 2 years ago
launch 制作
发射制作
首先LOAD模型
<?xml version="1.0"?>
<launch>
<!-- Load robot description to parameter server -->
<param name="robot_description" command="$(find xacro)/xacro '$(find hg_descriptiontest)/urdf/hg_arc.xacro'"/>
</launch>
然后显示在RVIZ上
<?xml version="1.0"?>
<launch>
<include file="$(find hg_descriptiontest)/launch/load_arm.launch" />
<node name="joint_state_publisher_gui" pkg="joint_state_publisher_gui" type="joint_state_publisher_gui">
</node>
<node name="robot_state_publisher" pkg="robot_state_publisher" type="robot_state_publisher"/>
<node name="rviz" pkg="rviz" type="rviz" args="-d $(find hg_descriptiontest)/config/robot_state_visualize.rviz" required="true" />
</launch>
如果更改了最外层文件夹名称该怎么做?
如果改变了最外层一个名称 需要更改的地方是
description_pkg:=''“”
将这里改为当前文件夹名称 将带有$(find hg_descriptiontest)
地方的代码find 地址该外当前文件夹地址
手臂宏定义
夹持器宏定义
将两个xacro 文件合并