Added range sensors and basic collision avoidance.

This commit is contained in:
2016-06-18 18:07:29 -04:00
parent 0804a2fc37
commit dfcc650f29
3 changed files with 42 additions and 12 deletions

View File

@@ -2,14 +2,16 @@ define ant_sensor sensor
(
size [0.01 0.05 0.01 ]
range [0 5.0]
fov 180
samples 180
fov 60
samples 1
color_rgba [ 0 1 0 0.2 ]
)
define ant_sonars ranger
(
ant_sensor( pose [ 0 0 0 0 ] )
ant_sensor( pose [ 0 0 0 -60 ] )
ant_sensor( pose [ 0 0 0 0 ] )
ant_sensor( pose [ 0 0 0 60 ] )
)
define ant_bot position