Wheel Encoder question.
Hello, if I got the weel encoders and the compass, could I make my robot (Boe bot) go strait nomater what·surface it's on?· (By watching them, and act on it by·means of ramping to straiten out it's path)· Thank you.··· -SciTech02.
Post Edited By Moderator (Chris Savage (Parallax)) : 4/15/2006 3:21:40 AM GMT
Post Edited By Moderator (Chris Savage (Parallax)) : 4/15/2006 3:21:40 AM GMT
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
There are only a couple of methods to measure forward progress, and driven wheel encoders, and compasses aren't on the list, unfortunately. The problem you need to think about, even if it represents an impossible situation, is - what if the 'bot is sitting on ice or in a puddle of oil? Now both wheels are spinning and the 'bot is going nowhere.
At that juncture, the only ways (without expensive equipment) that you can realize that there is no forward progress are either by means of a non-driven, trailing wheel (odometer wheel with rotation sensing ability) or by using GPS (or similar technology) to check your last and current positions.
There are other methods which can be employed but they depend on knowing a good deal about your environment. If you know there will always be a wall in front of the 'bot, you can measure the contined, deceasing distance to the wall as forward progress. So too if there are grid lines or stripes underneath the 'bot, those can be sensed as well.
Regards,
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
<!--StartFragment -->
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Truly Understand the Fundamentals and the Path will be so much easier...
If you rely only on a compass, the only thing you truly "know" is which way you are "facing"...not which way you are "going"...
If you are comfortable enough with your environment, you can make certain assumptions about what the heading means in relation to your actual travel (assuming that the wheels don't slip can be a big assumption, the flatness of the terrain compared to the "stickiness" of your wheels can have a large effect).
This may be a "purist" argument because you indicate that you will be using encoders as well, which should give you more accurate information about which way you are travelling...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Truly Understand the Fundamentals and the Path will be so much easier...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
There is always an answer.
There is always a way.
There is always a reason.··· -SciTech02.
It should be fine SciTech. For heading the compass will be a better choice than encoders because the compass errors will not grow over time while the encoder derived heading may continue to grow due to small biases in the robot or surface.
The compass errors can be _large_ in a building with lots of piping, steel furniture or structure, so if you want to get an idea how big the problem will be before you spend money on a sensor walk around with a regular magnetic compass and see what kind of deviaiton exists. You may also need to experiment with placement of the compass module on your robot to minimize effects of the robot itself and use the calibration routines in the documentation.