Buy an Axon, Axon II, or Axon Mote and build a great robot, while helping to support SoR.
0 Members and 1 Guest are viewing this topic.
Movement tracking or mapping
If my robot is traveling along its line and the sonar detect an object, I want the robot to turn and follow the object until the bot makes it around the object. I then want the robot to return to its path just after the object.
What I am trying to figure out though is how to track how far off course the bot had to go to avoid the object in order to get it back on track.
QuoteMovement tracking or mappingQuoteIf my robot is traveling along its line and the sonar detect an object, I want the robot to turn and follow the object until the bot makes it around the object. I then want the robot to return to its path just after the object.I don't quite understand . . . is the object moving or is it stationary? What type of objects? I mean, a chair leg is very hard to detect compared to a wall . . .
QuoteWhat I am trying to figure out though is how to track how far off course the bot had to go to avoid the object in order to get it back on track.The simplest way would be using a wavefront algorithm:http://www.societyofrobots.com/programming_wavefront.shtmlWith encoders as your distance sensor:http://www.societyofrobots.com/sensors_encoder.shtml
Using the Axon RAM, you can probably get a ~42x42 grid size. If you use the EEPROM (sorry, I haven't written code yet), you can get a grid size of about ~950x950. I haven't tried the Axon for mapping yet, so I'm basing it off of my experience with the $50 Robot ATmega168.
I am not sure what you are talking about with the grid sizes. I was planning on combining the black jack card counting method with the mathematical graphing coordinate system to keep track of where I am at.
how I would use EEPROM