BeagleBone Robotic Projects by Dr. Richard Grimmett
Author:Dr. Richard Grimmett
Language: eng
Format: epub
Tags: COM041000 - COMPUTERS / Microprocessors, COM038000 - COMPUTERS / Hardware / Mainframes and Minicomputers, COM049000 - COMPUTERS / Hardware / Peripherals
Publisher: Packt Publishing
Published: 2017-08-21T04:54:31+00:00
Avoiding obstacles
Planning paths without obstacles is, as has been shown, quite easy. However, it becomes a bit more challenging when your robot needs to walk around obstacles. Let's look at a case where there is an obstacle in the path you calculated previously. It might look like this:
You can still use the same path planning algorithm to find the starting angle; however, you'll now need to use your sonar sensor to detect the obstacle. To keep this all very simple, you'll do this in steps. You'll turn and move toward the obstacle for a one-time distance. Then, you'll check whether there is a barrier. When your sonar sensor detects the obstacle, you'll need to recalculate a path to avoid the barrier. To keep this all very simple, we'll assume that the barrier is quite small and that you'll always turn to the left. You'll turn to the left 90 degrees and then move down the barrier at a one-time distance. If the path is no longer blocked, based on the side sonar reading, you'll move on more time distance and then turn back to the path toward the desired path to the goal.
In this case, using these rules, the robot will travel the following path:
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Linux Device Driver Development Cookbook by Rodolfo Giometti(3957)
Embedded Programming with Modern C++ Cookbook by Igor Viarheichyk(3787)
Implementing Cellular IoT Solutions for Digital Transformation by Dennis McCain(3707)
Embedded Linux Development Using Yocto Project - Third Edition by Otavio Salvador & Daiane Angolini(3558)
TinyML Cookbook by Gian Marco Iodice(3472)
Simplifying 3D Printing with OpenSCAD by Colin Dow(2861)
TinyML Cookbook by Gian Marco Iodice & Ronan Naughton(2623)
Fusion 360 for Makers by Lydia Sloan Cline(2231)
Networking A Beginner's Guide by Bruce Hallberg(2230)
Hands-On Linux for Architects by Denis Salamanca(2074)
But How Do It Know? by J. Clark Scott(2039)
Computers For Seniors For Dummies by Nancy C. Muir(2023)
Raspberry Pi and MQTT Essentials by Dhairya Parikh(1980)
Arduino Project Handbook, Volume 2: 25 Simple Electronics Projects for Beginners by Geddes Mark(1963)
9781803246888-ENHANCING DEEP LEARNING WITH BAYESIAN INFERENCE by Unknown(1918)
Hack and HHVM by Owen Yamauchi(1904)
31 Days Before Your CompTIA A+ Exams (Shanette Luellen's Library) by Benjamin Patrick Conry(1878)
MicroPython Projects by Jacob Beningo(1768)
Hands-On Internet of Things with MQTT by Tim Pulver(1731)
