Skip to Content
Hands-On ROS for Robotics Programming
book

Hands-On ROS for Robotics Programming

by Bernardo Ronquillo Japón
February 2020
Intermediate to advanced
432 pages
10h 50m
English
Packt Publishing
Content preview from Hands-On ROS for Robotics Programming

Adding a Laser Distance Sensor (LDS)

The process to add the sensor is similar to what we did for the distance sensor in the previous section. Follow these steps to do it:

  1. We add the solid model of this sensor under the <visual> tag by following the same procedure we covered for the previous sensors. The URDF definition is as follows:
  <link name="base_scan">    <visual name="sensor_body">      <origin xyz="0 0 0" rpy="0 0 0" />      <geometry>        <mesh filename="package://gopigo3_description/meshes/TB3_lds-01.stl" scale="0.003 0.003 0.003"/>       </geometry>      <material name="yellow"/>    </visual>    <visual name="support">      <origin xyz="0 0 -0.0625" rpy="0 0 0" />      <geometry>        <cylinder length="0.12" radius="0.1" />      </geometry>    </visual>   </link>

We can see two

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

Mastering ROS for Robotics Programming

Lentin Joseph
ROS Robotics By Example - Second Edition

ROS Robotics By Example - Second Edition

Lentin Joseph, Carol Fairchild, Dr. Thomas L. Harman

Publisher Resources

ISBN: 9781838551308Supplemental Content