Ground sensors indexed differently under Mac and Linux
Posted: 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:
However, in reality, the sensors are indexed as follows on a Mac:
On Linux, the proper indexing is:
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.
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
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