Turning The Gopigo Into An Obstruction Detection Robot Using Ultrasonic Waves - Role 6

- July 27, 2018
Detection systems such equally LIDAR (Light Detection And Ranging) as well as RADAR (Radio Detection And Ranging), role Light Amplification by Stimulated Emission of Radiation as well as radio to map as well as let on targets as well as objects. Instead of using the calorie-free of a Light Amplification by Stimulated Emission of Radiation or radio frequencies, nosotros are going to role the ultrasonic sensor mounted on the GoPiGo to plow the GoPiGo robot automobile into an obstruction detection robot.

We are essentially creating an Ultrasonic Detection And Ranging (USDAR) that volition role the distance reading from the ultrasonic sensor to practice a LIDAR 2D mapping that uses the same regulation equally RADAR.

I bring already attached the ultrasonic sensor (Part 4) to the servo motor (Part 3) as well as mounted it to the GoPiGo robot car, therefore it's simply a thing of setting upwards as well as running the Python code which you lot tin let on on DexterIndustries GitHub. The basic obstruction detection tells the GoPiGo robot to deed forwards spell collecting readings from the ultrasonic sensor as well as when the GoPiGo robot is some an obstruction to stop.

The advanced obstruction detection code tells the GoPiGo robot to deed forwards spell reading the distance of angles as well as the XY coordinates, as well as therefore terminal as well as impress the values inwards a grid map.
To execute higher upwards code, nosotros role Terminal as well as type inwards cd Desktop/GoPiGo/Software/Python/Examples/Ultrasonic_Servo/
After running the command above, the GoPiGo Robot starts moving as well as scanning:

The 2D LIDAR map below is the final result of the GoPiGo robot collecting the information from the video above.
 

Start typing and press Enter to search