首先robot标签中添加:
<robot name="caulk_robot" xmlns:xacro="http://www.ros.org/wiki/xacro">
把常用尺寸设置为参数形式,方便后期修改:
<robot name="caulk_robot" xmlns:xacro="http://www.ros.org/wiki/xacro">
<xacro:property name="leng" value="0.8"/>
<xacro:property name="width" value="0.6"/>
<xacro:property name="height" value="0.4"/>
如果要造四个车轮,就大量的重复的代码,只有origin中的xyz的符号差别
<joint name="joint_right_front_wheel" type="continuous">
<parent link = "base_link"/>
<child link = "right_front_wheel"/>
<origin xyz = "0.2 -0.225 -0.1" rpy = &#