Pc104: Difference between revisions

From ISRWiki
Jump to navigation Jump to search
m (→‎Software: clarify and cleanup)
(→‎Software: add CMake flags needed for running robotInterface)
Line 30: Line 30:
   CMAKE_BUILD_TYPE Release
   CMAKE_BUILD_TYPE Release
   CREATE_DEVICE_LIBRARY_MODULES ON
   CREATE_DEVICE_LIBRARY_MODULES ON
  CREATE_GUIS ON // probably not needed
   CREATE_LIB_MATH ON
   CREATE_LIB_MATH ON
   ENABLE_yarpmod_portaudio ON
   ENABLE_yarpmod_portaudio ON
Line 39: Line 38:
   ENABLE_yarpcar_bayer_carrier
   ENABLE_yarpcar_bayer_carrier


* Custom iCub configuration, in addition to the defaults
* Custom iCub configuration using robotInterface, in addition to the defaults
 
CMAKE_BUILD_TYPE Release
ENABLE_icubmod_canBusAnalogSensor ON
ENABLE_icubmod_canBusSkin ON
ENABLE_icubmod_canBusVirtualAnalogSensor ON
ENABLE_icubmod_canmotioncontrol ON
ENABLE_icubmod_cartesiancontrollerclient ON
ENABLE_icubmod_cartesiancontrollerserver ON
ENABLE_icubmod_cfw2can ON
ENABLE_icubmod_dragonfly2 ON
ENABLE_icubmod_dragonfly2raw ON
ENABLE_icubmod_icubarmcalibrator ON
ENABLE_icubmod_icubhandcalibrator ON
ENABLE_icubmod_icublegscalibrator ON
ENABLE_icubmod_logpolarclient ON
ENABLE_icubmod_logpolargrabber ON
ENABLE_icubmod_parametricCalibrator ON
ENABLE_icubmod_sharedcan ON
ENABLE_icubmod_skinWrapper ON
ENABLE_icubmod_skinprototype ON
ENABLE_icubmod_xsensmtx ON
 
* Custom iCub configuration using iCubInterface, in addition to the defaults


   CMAKE_BUILD_TYPE Release
   CMAKE_BUILD_TYPE Release
Line 47: Line 69:
   ENABLE_icubmod_cfw2can ON
   ENABLE_icubmod_cfw2can ON
   ENABLE_icubmod_dragonfly2 ON
   ENABLE_icubmod_dragonfly2 ON
   ENABLE_icubmod_dragonfly2raw ON // needed for Bayer encoded images (http://eris.liralab.it/wiki/Getting_640x480_images)
   ENABLE_icubmod_dragonfly2raw ON
   ENABLE_icubmod_icubarmcalibrator ON
   ENABLE_icubmod_icubarmcalibrator ON
   ENABLE_icubmod_icubarmcalibratorj8 ON
   ENABLE_icubmod_icubarmcalibratorj8 ON

Revision as of 18:34, 29 September 2014

See pc104/Archive for information about the previous setup with the read-only pen drive.

The pc104 CPU board is located into the iCub's head and nowadays it runs a full (read/write) Debian distribution that boots from a USB pen drive.

Booting and Mounting

After booting, the pc104 mounts a part of the hard-disk of icubsrv (the Dell XPS laptop, IP address 10.10.1.51) which contains the yarp and iCub repositories.

Repositories on icubsrv laptop

Note that the icubsrv laptop has 2 locations for the repositories:

  • /exports/code-64 for the laptop itself (compiled for 64bit, rarely used)
  • /exports/code-pc104 for pc104 (compiled for 32bit, this is the one that is actually used)

Updating the repositories

First method: from a pc104 console, normally update and compile the repositories as if on a normal machine - see RobotCub software for details. Note that after compiling iCub you must type make install_applications as well: this will copy files from $ICUB_ROOT/main/app/robots/iCubLisboa01 to $ICUB_ROOT/app/iCubLisboa01 (check that the new versions are effectively copied).

If the above method fails for any reason (old version of svn, internet problems with DNS or NTP, etc.) you can use the following workaround:

  1. open a pc104 shell window
  2. open an icubsrv shell window
  3. on icubsrv: svn update /exports/code-pc104/yarp2 and /exports/code-pc104/iCub (for now we need to do this from icubsrv because the version of svn on pc104 is too old)
  4. on pc104: cmake, make in $YARP_DIR (the files are physically on icubsrv, but we need to issue the command from pc104 to obtain 32bit binaries)
  5. on pc104: cmake, make, make install_applications in $ICUB_DIR (the files are physically on icubsrv, but we need to issue the command from pc104 to obtain 32bit binaries)

Software

  • Custom yarp configuration
 CMAKE_BUILD_TYPE Release
 CREATE_DEVICE_LIBRARY_MODULES ON
 CREATE_LIB_MATH ON
 ENABLE_yarpmod_portaudio ON
 ENABLE_yarpmod_serial ON
 ENABLE_yarpmod_serialport ON
 CREATE_OPTIONAL_CARRIERS
 ENABLE_yarpcar_bayer_carrier
  • Custom iCub configuration using robotInterface, in addition to the defaults
CMAKE_BUILD_TYPE Release
ENABLE_icubmod_canBusAnalogSensor ON
ENABLE_icubmod_canBusSkin ON
ENABLE_icubmod_canBusVirtualAnalogSensor ON
ENABLE_icubmod_canmotioncontrol ON
ENABLE_icubmod_cartesiancontrollerclient ON
ENABLE_icubmod_cartesiancontrollerserver ON
ENABLE_icubmod_cfw2can ON
ENABLE_icubmod_dragonfly2 ON
ENABLE_icubmod_dragonfly2raw ON
ENABLE_icubmod_icubarmcalibrator ON
ENABLE_icubmod_icubhandcalibrator ON
ENABLE_icubmod_icublegscalibrator ON
ENABLE_icubmod_logpolarclient ON
ENABLE_icubmod_logpolargrabber ON
ENABLE_icubmod_parametricCalibrator ON
ENABLE_icubmod_sharedcan ON
ENABLE_icubmod_skinWrapper ON
ENABLE_icubmod_skinprototype ON
ENABLE_icubmod_xsensmtx ON
  • Custom iCub configuration using iCubInterface, in addition to the defaults
 CMAKE_BUILD_TYPE Release
 ENABLE_icubmod_canmotioncontrol ON
 ENABLE_icubmod_cartesiancontrollerclient ON
 ENABLE_icubmod_cartesiancontrollerserver ON
 ENABLE_icubmod_cfw2can ON
 ENABLE_icubmod_dragonfly2 ON
 ENABLE_icubmod_dragonfly2raw ON
 ENABLE_icubmod_icubarmcalibrator ON
 ENABLE_icubmod_icubarmcalibratorj8 ON
 ENABLE_icubmod_icubhandcalibrator ON
 ENABLE_icubmod_icubheadcalibrator ON
 ENABLE_icubmod_icubheadcalibratorV2 ON
 ENABLE_icubmod_icublegscalibrator ON
 ENABLE_icubmod_logpolarclient ON
 ENABLE_icubmod_logpolargrabber ON
 ENABLE_icubmod_skinprototype ON
 ENABLE_icubmod_xsensmtx ON
  • Final configuration
  1. yarp namespace /icub
  2. in order to find the yarpserver running on chico3, write 10.10.1.53 10000 into the file specified by yarp conf

See also