Difference between revisions of "Simple reactive Sbot agent"
From RoboWiki
Line 3: | Line 3: | ||
This agent uses a simple method to avoid obstacles using IR sensors and bumpers. | This agent uses a simple method to avoid obstacles using IR sensors and bumpers. | ||
Anytime it detects an obstacle with IR sensors, it turns right. | Anytime it detects an obstacle with IR sensors, it turns right. | ||
− | If the robot does not see the obstacle, but bumps to it, the agent turns left or right (depends on which bumper detected th obstacle). | + | If the robot does not see the obstacle, but bumps to it, the agent goes backward a little, then it turns left or right (depends on which bumper detected th obstacle). |
[[Media:Firmware_simple_react.zip|Firmware source]] | [[Media:Firmware_simple_react.zip|Firmware source]] |
Latest revision as of 12:00, 15 March 2010
Simple reactive Sbot agent
This agent uses a simple method to avoid obstacles using IR sensors and bumpers. Anytime it detects an obstacle with IR sensors, it turns right. If the robot does not see the obstacle, but bumps to it, the agent goes backward a little, then it turns left or right (depends on which bumper detected th obstacle).