March 2018
Intermediate to advanced
1396 pages
42h 14m
English
We add the laser scanner on the top of Gazebo in order to perform high-end operations such as autonomous navigation using this robot. Here, we can see that an extra code section needed to be added in diff_wheeled_robot.xacro to have the laser scanner on the robot:
<link name="hokuyo_link"> <visual> <origin xyz="0 0 0" rpy="0 0 0" /> <geometry> <box size="${hokuyo_size} ${hokuyo_size} ${hokuyo_size}"/> </geometry> <material name="Blue" /> </visual> </link> <joint name="hokuyo_joint" type="fixed"> <origin xyz="${base_radius - hokuyo_size/2} 0 ${base_height+hokuyo_size/4}" rpy="0 0 0" /> <parent link="base_link"/> <child link="hokuyo_link" /> </joint> <gazebo reference="hokuyo_link"> <material>Gazebo/Blue</material> ...