Skip to Content
ROS Programming: Building Powerful Robots
book

ROS Programming: Building Powerful Robots

by Anil Mahtani, Luis Sanchez, Enrique Fernandez, Aaron Martinez, Lentin Joseph
March 2018
Intermediate to advanced content levelIntermediate to advanced
1396 pages
42h 14m
English
Packt Publishing
Content preview from ROS Programming: Building Powerful Robots

Adding the laser scanner to Gazebo

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> ...
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

Programming Robots with ROS

Programming Robots with ROS

Morgan Quigley, Brian Gerkey, William D. Smart
Machine Learning Design Patterns

Machine Learning Design Patterns

Valliappa Lakshmanan, Sara Robinson, Michael Munn

Publisher Resources

ISBN: 9781788627436Supplemental Content