Robot locomotion/obstical advoidance logic. input wanted
I'm looking for input on robot control logic... not code just the process in how it functions. I'm using the propeller but it really doesn't matter what platform your using, I have working code with the propeller and one ping. I'm not getting 100% usable results so I want to look into different processes and see if I can find the best solution for what I'm doing. If you want to contribute, I'm asking for any configuration and for any sensor or any quantity of sensors. Feel free to add to or take away from what I show. Ultimately I'm not getting usable results because of the nature of the PING Ultrasonics. I'm running into my soft fabric covered couch and when it's heading toward a wall at an angle it doesn't see anything until it's right next to the wall. which is normal in this application.
pan ping servo left to right then to center.
---if the center is clearest path go straight.
---if objects on left side are closer than right
move ping servo to far left.
turn right until distance is > 30
center ping servo
--- else if objects on right side are closer than left
move ping servo to far right.
turn right until distance is > 30
center ping servo
once moving forward if distance is less than 40 cut speed to 1/2
once distance is less than 20 stop and repeat pan process.
or from the ping around bs2 code.
pan servo to 5 different locations. then back to center
turn to the direction of the clearest location.
Thanks for the input
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"A complex design is the sign of an inferior designer." - Jamie Hyneman, Myth Buster
DGSwaner
Post Edited (Dgswaner) : 1/7/2008 9:44:39 PM GMT
pan ping servo left to right then to center.
---if the center is clearest path go straight.
---if objects on left side are closer than right
move ping servo to far left.
turn right until distance is > 30
center ping servo
--- else if objects on right side are closer than left
move ping servo to far right.
turn right until distance is > 30
center ping servo
once moving forward if distance is less than 40 cut speed to 1/2
once distance is less than 20 stop and repeat pan process.
or from the ping around bs2 code.
pan servo to 5 different locations. then back to center
turn to the direction of the clearest location.
Thanks for the input
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"A complex design is the sign of an inferior designer." - Jamie Hyneman, Myth Buster
DGSwaner
Post Edited (Dgswaner) : 1/7/2008 9:44:39 PM GMT
Comments
Ping Document:
www.parallax.com/Portals/0/Downloads/docs/prod/acc/28015-PING-v1.4.pdf
I've had several small bots that work with only IRPD and they won't hit anything. but with my current bot it's 17" in diameter and over 2' tall. it has enough torque to move a small couch and moves quite fast compared to a boe bot. I need about 6-8" to stop. with IRPD's range 2-16" +/- that really cuts down the reaction time.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"A complex design is the sign of an inferior designer." - Jamie Hyneman, Myth Buster
DGSwaner
Post Edited (Dgswaner) : 1/7/2008 10:00:06 PM GMT
http://www.acroname.com/robotics/info/articles/sharp/sharp.html#e8
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"A complex design is the sign of an inferior designer." - Jamie Hyneman, Myth Buster
DGSwaner