4.6.1 Моделирование лазерного сканера
<?xml version="1.0"?> <robot name="box_robot">
<!-- Define a number of dimensions using properties --> <property name="laser_offset_x" value="0.123" /> <property name="laser_offset_y" value="0.0" /> <property name="laser_offset_z" value="0.08" />
<!-- Include all component files -->
<xacro:include filename="$(find rbx2_description)/urdf/materials.urdf.xacro" />
<xacro:include filename="$(find
rbx2_description)/urdf/box_robot/base.urdf.xacro" />
<xacro:include filename="$(find
rbx2_description)/urdf/sensors/laser.urdf.xacro" />
<!-- Add the base and wheels -->
<base name="base" color="Black"/>
<!-- Add the laser -->
<laser parent="base" color="DarkGrey">
<origin xyx="${laser_offset_x} ${laser_offset_y} ${laser_offset_z}" rpy="0
0 0 " />
</laser>
</robot>
Previous4.6 Добавление лазерного сканера (или других датчиков)Next4.6.2 Подключение лазерного сканера (или другого датчика) к сетчатому основанию
Last updated