Ground sensors indexed differently under Mac and Linux

Discussions regarding ARGoS bugs. Report bugs here.
Elendurwen
Posts: 41
Joined: Sat Aug 24, 2013 5:08 pm
Contact:

Ground sensors indexed differently under Mac and Linux

Postby Elendurwen » Tue Feb 04, 2014 2:23 pm

I am using the FootBot ground sensors (footbot_motor_ground) to determine colour of the floor. I discovered that the documentation of the sensor has the indices confused and more importantly, that the indices are different depending on whether I compile under Mac OS or under Linux (RedHat). I am using argos3 version 3.0.0-beta21.

First, the documentation of CCI_FootBotMotorGroundSensor states that the sensors are as follows:

Code: Select all

front l|w r|w e|h 1 0 i|h f|e g|e t|e 2 3 h|e |l t|l back
However, in reality, the sensors are indexed as follows on a Mac:

Code: Select all

front l|w r|w e|h 0 1 i|h f|e g|e t|e 3 2 h|e |l t|l back

On Linux, the proper indexing is:

Code: Select all

front l|w r|w e|h 0 3 i|h f|e g|e t|e 1 2 h|e |l t|l back
I sorted this out programatically in my own code of a robot controller but the issue should perhaps be addressed in future releases to avoid any confusion.

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

Re: Ground sensors indexed differently under Mac and Linux

Postby pincy » Mon Feb 10, 2014 3:53 pm

Hi Elendurwen,

Which version of ARGoS is installed on your Mac?

I made this change on December 9th:

https://github.com/ilpincy/argos3/commi ... f216c67cec

Which has been put as part of beta22. (on your Linux box you have beta21)

According to this change, the order of the sensors should be:

Code: Select all

front l|w r|w e|h 0 3 i|h f|e g|e t|e 1 2 h|e |l t|l back
Cheers,
Carlo
I made ARGoS.


Return to “Bugs”