Skip to Content
Mastering ROS for Robotics Programming - Second Edition
book

Mastering ROS for Robotics Programming - Second Edition

by Lentin Joseph, Jonathan Cacace
February 2018
Beginner
580 pages
13h 20m
English
Packt Publishing
Content preview from Mastering ROS for Robotics Programming - Second Edition

Adding the laser scanner to Gazebo

We add the laser scanner on the top of Gazebo to perform high-end operations, such as autonomous navigation or map creation using this robot. Here, we should add the following extra code section to diff_wheeled_robot.xacro to add the laser scanner to 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> ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering ROS for Robotics Programming - Third Edition

Mastering ROS for Robotics Programming - Third Edition

Lentin Joseph, Jonathan Cacace
Effective Robotics Programming with ROS - Third Edition

Effective Robotics Programming with ROS - Third Edition

Luis Sanchez, Enrique Fernandez Perdomo, Anil Mahtani

Publisher Resources

ISBN: 9781788478953Supplemental Content