Ray Lenght Issue

Requests regarding how to set up experiments in ARGoS.
Waqar731
Posts: 65
Joined: Thu Oct 23, 2014 12:33 pm
Location: Pakistan
Contact:

Ray Lenght Issue

Postby Waqar731 » Tue Jan 20, 2015 10:36 am

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
Waqar Hussain

pincy
Site Admin
Posts: 632
Joined: Thu Mar 08, 2012 8:04 pm
Location: Boston, MA
Contact:

Re: Ray Lenght Issue

Postby pincy » Wed Jan 21, 2015 10:45 pm

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
I made ARGoS.

Waqar731
Posts: 65
Joined: Thu Oct 23, 2014 12:33 pm
Location: Pakistan
Contact:

Re: Ray Lenght Issue

Postby Waqar731 » Thu Jan 22, 2015 8:34 am

Thanks a lot!
Waqar Hussain


Return to “How to... ?”