EPFL LSRO Wikipages

Connecting to a footbot

Wifi uses wpasupplicant to connect to a WPA-PSK access point. You can use USB or Bluetooth to connect to the robot otherwise. Set the selector on the robot top to an even value for USB, and uneven to Bluetooth.

USB

footbot_usb is aliased to ip 192.168.0.202 in /etc/hosts.
In aseba, to connect use

tcp:host=192.168.0.202;port=33333

Bluetooth

In aseba, to connect use

ser:device=/dev/marxbot2

Wifi

Currently unstable, check LSRO wiki.

Booting Algorithm

Beware of the sudden movement of the robot as it's booting. NEVER put it on a table when testing.
If Aseba connection doesn't work, try again without killing asebamedulla; otherwise, close Asebastudio, kill asebamedulla and reset the traslator and the pic. Rerun asebamedulla and try connecting.
The command to run asebamedulla is the following:

If this does not work, try closing Asebastudio, killing asebamedulla and setting the selector to another even value (NOT an odd one!). Reset the pic and the translator, rerun asebamedulla and try
connecting again.

Battery

* full battery = 4.2V
* empty battery < 3.6V

The charger we have at Iridia damages the batteries.
We were given 12 batteries; to limit the number of damaged batteries, 10 batteries, when empty, won't be recharged.
Only two batteries will be recharged, .

Sensors

Camera

Cameras don't work at the same time; you can use them one by one.
To select the camera to use, echo to file /sys/class/gpio/gpio28/value
a value of 0 for the omnidirectional camera and 1 for the front one.

The camera module is mt9t031.ko.

If you get an error such as:

[FATAL] Cannot open /dev/video0: Input/output error

then try unbinding the driver and then binding it back. You do it this way:

For problems, the EPFL guy to ask is Valentin Longchamps <valentin.longchamps@epfl.ch>.

Actuators

Turret Rotation

At boot, the robot sets the 0 position of the turret. To avoid damaging the robot or having funny values, always put the gripper back in the 0 position and then switch the robot on. It can be done also when the robot is on already: set the variable 'rev.pid.enable' to 0 and rotate the turret back to its position. Then select 'Tools->Reboot->Griper-led' and the new 0 position will be set.

Installing the libraries in the real robot

If you log into the robot, you'll notice a directory ARGoS. It contains the aseba backend (aseba_backend.aesl), some useful tools in bin/ and
a directory lib/ in which the ARGoS libraries are stored. Whenever you fix the common or real robot packages, you have to update these libraries. To
do it, the handiest way is the following.