Simple reactive Sbot agent
From RoboWiki
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).