Difference between revisions of "Footbot/Real robot information"

From IridiaWiki
Jump to navigationJump to search
(New page: ================= EPFL MONDADA WIKI ================= For updated info go to the EPFL wiki. http://wiki.epfl.ch/mobots-robots ============================== CONNECTING TO FOOTBOT1 VIA US...)
 
Line 1: Line 1:
  +
= EPFL LSRO Wikipages =
=================
 
EPFL MONDADA WIKI
 
=================
 
   
 
For updated info go to the EPFL wiki.
 
For updated info go to the EPFL wiki.
 
http://wiki.epfl.ch/mobots-robots
 
http://wiki.epfl.ch/mobots-robots
   
  +
= Connecting to a footbot =
==============================
 
  +
CONNECTING TO FOOTBOT1 VIA USB
 
 
== USB ==
==============================
 
  +
 
$ sudo /sbin/ifconfig usb0 192.168.0.200 netmask 255.255.255.0
 
$ ssh root@footbot_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
 
footbot_usb is aliased to ip 192.168.0.202 in /etc/hosts
 
In aseba, to connect use
 
In aseba, to connect use
 
tcp:host=192.168.0.202;port=33333
 
tcp:host=192.168.0.202;port=33333
   
  +
== Bluetooth ==
====================================
 
CONNECTING TO FOOTBOT2 VIA BLUETOOTH
 
====================================
 
   
 
In aseba, to connect use
 
In aseba, to connect use
 
ser:device=/dev/marxbot2
 
ser:device=/dev/marxbot2
   
==============
+
== Wifi ==
  +
FOOTBOT CAMERA
 
  +
Currently unstable, check LSRO wiki.
==============
 
  +
  +
= Camera =
   
 
Cameras don't work at the same time; you can use them one by one.
 
Cameras don't work at the same time; you can use them one by one.
Line 39: Line 38:
 
then try unbinding the driver and then binding it back. You do it this way:
 
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/unbind
echo 0-0 > /sys/bus/soc-camera/drivers/camera/bind
+
echo 0-0 > /sys/bus/soc-camera/drivers/camera/bind
   
 
For problems, the EPFL guy to ask is Valentin Longchamps <valentin.longchamps@epfl.ch>.
 
For problems, the EPFL guy to ask is Valentin Longchamps <valentin.longchamps@epfl.ch>.
   
  +
= Battery =
===============
 
FOOTBOT BATTERY
 
===============
 
   
 
full battery = 4.2V
 
full battery = 4.2V
Line 55: Line 52:
 
Only two batteries will be recharged, .
 
Only two batteries will be recharged, .
   
  +
= Booting =
============
 
FOOTBOT BOOT
 
============
 
   
 
Beware of the sudden movement of the robot as it's booting. NEVER put it on a table when testing.
 
Beware of the sudden movement of the robot as it's booting. NEVER put it on a table when testing.
Line 66: Line 61:
 
connecting again.
 
connecting again.
   
  +
= Griper-LED =
==========
 
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.
 
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 ARGoS 2 =
=========
 
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.
+
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:
 
Then, compile the common package:
   
$ cd /path/to/argos2
+
$ cd /path/to/argos2
$ cd common
+
$ cd common
$ mkdir -p build/footbot
+
$ mkdir -p build/footbot
$ cd build/footbot
+
$ cd build/footbot
$ cmake -DARGOS_COMPILE_REAL_FOOTBOT ../..
+
$ cmake -DARGOS_COMPILE_REAL_FOOTBOT ../..
$ make
+
$ make
   
 
If everything goes OK, compile the real robot package:
 
If everything goes OK, compile the real robot package:
   
$ cd /path/to/argos2
+
$ cd /path/to/argos2
$ cd real_robot
+
$ cd real_robot
$ mkdir -p build/swarmanoid/footbot
+
$ mkdir -p build/swarmanoid/footbot
$ cd build/swarmanoid/footbot
+
$ cd build/swarmanoid/footbot
$ cmake ../../../swarmanoid/footbot
+
$ cmake ../../../swarmanoid/footbot
$ make
+
$ make
   
 
If everything goes OK, compile the user package:
 
If everything goes OK, compile the user package:
   
$ cd /path/to/argos2
+
$ cd /path/to/argos2
$ cd user/my_user
+
$ cd user/my_user
$ mkdir -p build/footbot
+
$ mkdir -p build/footbot
$ cd build/footbot
+
$ cd build/footbot
$ cmake -DARGOS_COMPILE_REAL_FOOTBOT ../..
+
$ cmake -DARGOS_COMPILE_REAL_FOOTBOT ../..
$ make
+
$ make

Revision as of 14:44, 29 March 2010

EPFL LSRO Wikipages

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

Connecting to a footbot

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

Bluetooth

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

Wifi

Currently unstable, check LSRO wiki.

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

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

Booting

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 ARGoS 2

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