by iWitzand » Mon Oct 05, 2009 12:03 am
Hey Hey,
A bit more info might be helpful, but I am assuming a few things, if it is otherwise you can correct me,
- The pellets are all the same
- The robot knows where the location is to stack the pellets
LeJOS has a behavioural system which may be useful for this task, this is how I would see your behaviours working noting they are presented in ascending order in priority
- Explore - Basically moves around the surface looking for pellets
- Find Pellet - If a pellet is found run a third motor possibly to grab pellet
- Return Pellet - Takes pellet back to location for stacking
As for sensors, you'd probably want the ultrasonic sensor for detecting walls, possible the light sensor for recognising if it has a pellet (if they are the same colour it would help). You'd want the three motors, 2 for driving, one for grabbing the pellets. As for knowing where the drop location is, might be trickier, if you have the set up in a grid square might be a good start. So you can get the basics down. Rather then trying to bite something too big.
Any way hope this helps a bit,
Steve