4.3.4 Добавление сетчатого туловища к сетчатому основанию
$ roslaunch rbx2_description pi_robot_with_torso.launch$ rosrun rviz rviz -d `rospack find rbx2_description`/urdf.rviz
Last updated
$ roslaunch rbx2_description pi_robot_with_torso.launch$ rosrun rviz rviz -d `rospack find rbx2_description`/urdf.rviz
Last updated
<?xml version="1.0"?>
<robot name="box_robot">
<!-- Define a number of dimensions using properties -->
<property name="torso_offset_x" value="-0.13" />
<property name="torso_offset_y" value="0.0" />
<property name="torso_offset_z" value="0.088" />
<!-- Include all component files -->
<xacro:include filename="$(find rbx2_description)/urdf/materials.urdf.xacro"
/>
<xacro:include filename="$(find r
bx2_description)/urdf/pi_robot/pi_base.urdf.xacro" />
<xacro:include filename="$(find
rbx2_description)/urdf/pi_robot/pi_torso.urdf.xacro" />
<!-- Add the base and wheels -->
<base name="base" color="Black"/>
<!-- Add the torso -->
<torso name="torso" parent="base" color="Grey">
<origin xyz="${torso_offset_x} ${torso_offset_y} ${torso_offset_z}" rpy="0
0 0" />
</torso>
</robot>