Page 1 of 1

Ray Lenght Issue

Posted: Tue Jan 20, 2015 10:36 am
by Waqar731
Hello
I am confused to see that, the length of ray in proximity sensor and in distance scanner sensor is different.

Can we change the length of these rays of different sensors?

My question is, in which file/code their length is set. Or where their length can be changed according to situation?


Thanks

Re: Ray Lenght Issue

Posted: Wed Jan 21, 2015 10:45 pm
by pincy
Hi,

The proximity sensor and the distance scanner are different sensors.

The proximity sensor is meant for short-range collision avoidance.

The distance scanner is meant for long-range object detection.

The foot-bot has a set ray length (it's a real robot, in which the range is given), so you can't change it unless you go into the code.

However, the change is simple. For the proximity sensor, check this file https://github.com/ilpincy/argos3/blob/ ... entity.cpp and change the constant PROXIMITY_SENSOR_RING_RANGE.

For the distance scanner, refer to this file: https://github.com/ilpincy/argos3/blob/ ... sensor.cpp and change the constants SHORT_RANGE_RAY_END and LONG_RANGE_RAY_END.

Cheers,
Carlo

Re: Ray Lenght Issue

Posted: Thu Jan 22, 2015 8:34 am
by Waqar731
Thanks a lot!