Outils pour utilisateurs

Outils du site


hokuyo

Ceci est une ancienne révision du document !


Hokuyo

Install sous linux

driver de l'aist dans robotpkg

probleme, il faut modifier 2 fichiers intermediaires

cd /home/bvandepo/robotpkg/hardware/gbx-hokuyo-aist/work/gearbox-9.11/src/hokuyo_aist/CMakeFiles/hokuyo_aist.dir
vim link.txt 
/usr/bin/g++  -fPIC    -O3 -DNDEBUG  -Wl,-rpath,/home/bvandepo/openrobots/lib/gearbox  -L/home/bvandepo/openrobots/lib/gearbox -shared -Wl,-soname,libhokuyo_aist.so.1.0.0 -o libhokuyo_aist.so.1.0.0 CMakeFiles/hokuyo_aist.dir/hokuyo_aist.o -lflexiport -Wl,-rpath,:::::::::::::::::::::::::::::::::::::

et

cd /home/bvandepo/robotpkg/hardware/gbx-hokuyo-aist/work/gearbox-9.11/src/hokuyo_aist/test/CMakeFiles/hokuyo_aist_example.dir
vim link.txt 
/usr/bin/g++      -O3 -DNDEBUG  -fPIC  -Wl,-rpath,/home/bvandepo/openrobots/lib/gearbox -L/home/bvandepo/openrobots/lib/gearbox  CMakeFiles/hokuyo_aist_example.dir/example.o  -o hokuyo_aist_example -rdynamic ../libhokuyo_aist.so.1.0.0 -lflexiport -Wl,-rpath,/home/bvandepo/robotpkg/hardware/gbx-hokuyo-aist/work/gearbox-9.11/src/hokuyo_aist
programme d'exemple

dans /home/bvandepo/robotpkg/hardware/gbx-hokuyo-aist/work/gearbox-9.11/src/hokuyo_aist/test

pour faire mon soft, copier le fichier example.cpp, et il faudra linker mon projet avec

/home/bvandepo/openrobots/lib/gearbox/libhokuyo_aist.so
/home/bvandepo/openrobots/include/gearbox/hokuyo_aist/hokuyo_aist.h

utilisation

creer lien symbolique pour avoir le device qui s'appelle /dev/ttyACM0

sudo ln -ls /dev/ttys000 /dev/ttyACM0

dire qu'il m'appartient

sudo chown -vR bvandepo /dev/ttyACM0

donner les droits en lecture

   sudo chmod -vR +r  /dev/ttyACM0
   

sur borderouge

~/openrobots/share/OpenRTM-aist/examples    
~/robotpkg/hardware/gbx-hokuyo-aist

lib flexiport

faire un make dans ~/robotpkg/devel/gbx-flexiport cree le .so dans ~/robotpkg/devel/gbx-flexiport/work/gearbox-9.11/src/flexiport/libflexiport.so

hokuyo.1271253945.txt.gz · Dernière modification : 2010/04/14 16:05 de bvandepo