Footbot/Real robot information

From IridiaWiki
Revision as of 15:06, 29 March 2010 by Cpinciroli (talk | contribs) (New page: ================= EPFL MONDADA WIKI ================= For updated info go to the EPFL wiki. http://wiki.epfl.ch/mobots-robots ============================== CONNECTING TO FOOTBOT1 VIA US...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
=====

EPFL MONDADA WIKI

=====

For updated info go to the EPFL wiki. http://wiki.epfl.ch/mobots-robots

==================

CONNECTING TO FOOTBOT1 VIA USB

==================

$ sudo /sbin/ifconfig usb0 192.168.0.200 netmask 255.255.255.0 $ ssh root@footbot_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

========================

CONNECTING TO FOOTBOT2 VIA BLUETOOTH

========================

In aseba, to connect use ser:device=/dev/marxbot2

==

FOOTBOT 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:

echo 0-0 > /sys/bus/soc-camera/drivers/camera/unbind echo 0-0 > /sys/bus/soc-camera/drivers/camera/bind

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

===

FOOTBOT 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, .

==

FOOTBOT BOOT

==

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: $ asebamedulla --system "ser:device=/dev/ttymxc4;fc=hard;baud=921600" 2>&1 1>/dev/null & 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.

==

GRIPER-LED

==

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.

=

COMPILING

=

Download and install the toolchain from http://wiki.epfl.ch/mobots-robots/toolchain. It is recommended to install it system-wide because it hasn't been tested otherwise. Then, compile the common package:

$ cd /path/to/argos2 $ cd common $ mkdir -p build/footbot $ cd build/footbot $ cmake -DARGOS_COMPILE_REAL_FOOTBOT ../.. $ make

If everything goes OK, compile the real robot package:

$ cd /path/to/argos2 $ cd real_robot $ mkdir -p build/swarmanoid/footbot $ cd build/swarmanoid/footbot $ cmake ../../../swarmanoid/footbot $ make

If everything goes OK, compile the user package:

$ cd /path/to/argos2 $ cd user/my_user $ mkdir -p build/footbot $ cd build/footbot $ cmake -DARGOS_COMPILE_REAL_FOOTBOT ../.. $ make