Skip to Content
Learning Robotics using Python - Second Edition
book

Learning Robotics using Python - Second Edition

by Lentin Joseph
June 2018
Beginner to intermediate
280 pages
6h 58m
English
Packt Publishing
Content preview from Learning Robotics using Python - Second Edition

Cliff sensor plugin

The cliff sensor is a set of IR sensors that detect cliffs, which helps to avoid steps and prevents the robot from falling. This is one of the sensors in the mobile base of Turtlebot 2, called Kobuki (http://kobuki.yujinrobot.com/). We're using this plugin in the Turtlebot 2 simulation.

We can set the parameters of the sensors, such as the minimum and maximum angle of the IR beams, the resolution, and the number of samples per second. We can also limit the detection range of the sensor. There are three cliff sensors in our simulation model, as shown in the following code:

 <gazebo reference="cliff_sensor_front_link"> <sensor type="ray" name="cliff_sensor_front"> <always_on>true</always_on> <update_rate>50</update_rate> ...
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

Learning Robotics using Python

Learning Robotics using Python

Lentin Joseph
Python Robotics Projects

Python Robotics Projects

Prof. Diwakar Vaish

Publisher Resources

ISBN: 9781788623315Supplemental Content