4.3.2 Прикрепление туловища к основанию.
<?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.41" />
<!-- Include all component files -->
<xacro:include filename="$(find rbx2_description)/urdf/materials.urdf.xacro"
<xacro:include filename="$(find rbx2_description)/urdf/base.urdf.xacro"
/> <xacro:include filename="$(find rbx2_description)/urdf/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>Last updated