UbiquityRobotics / demos

Robot demos
5 stars 5 forks source link

FloorFollow needs object avoidance #20

Closed mjstn closed 4 years ago

mjstn commented 4 years ago

We need to have obstacle avoidance by being aware of sonar topics

We also then want a 'hard limit' which means we must be at a full stop if at the hard limit until the obstacle moves away.

There is also the issue of when to 'give up'. For our path finding conveyor belt app we may want by default these behaviors:

A word on how to read sonar ranges and which ones to be looking at for obstacles Assuming we have the robot.yaml file enabled with a line of sonars: 'pi_sonar_v1' we can look at the topic that has all sonars which is /sonars Then sonar_1 is 45 deg to the left sonar_2 is 45 deg to the right sonar_3 is the middle front sonar.