This is basic 2D mobile robot simulator. Visit http://www.mobilerobots.pl/ Robot performs autonomous navigation based on four infrared sensors. Sensing range and angle can be adjusted. Simple obstacle detection and avoidance algorithm was implemented. All code was written in Java. Any comments are more than welcome.
Generally speaking detected distance depends on many factors. For example: measurement method, color and reflective ratio of the obstacle and so on. In some application notes detectable area characteristics are shown. For example for GP2D12 detectable area depends on distance to reflective object(generally better resolution is for short distance) There is also the minimal measuring range(e.g. 10 cm for GP2D12) However some infrared sensors can detect object even from distance 1 cm or less.
asrebro 1 year ago
Neat program. clean and simple. going 3D can distract from the basic idea you are going for. I haven't worked much with infrared or ultrasonic depth sensors so I have a question about them. Do they usually detect distance to the nearest non-gaseous point in a general direction? Do they detect near object in a wide(30 degree slope) cone like you show in the simulator?
joshig1983 1 year ago
@joshig1983 Usually they don't detect distance to the nearest obstacle poin in a general direction. It depends on all reflected infrared light comes to infrared detector. In practice we can also notice specular reflection from some polyhedrons and disturbances initialized by thin object such as table base, or cable.
asrebro 1 year ago