HoTDeC Vision Client

From HotDec

Jump to: navigation, search

We use Ubuntu Dapper 6.06LTS as our base installation.

We then add the following packages:

  • g++
  • make
  • openssh-server
  • subversion
  • libdc1394-13-dev

Enable root login:

sudo passwd
ssh root@localhost
exit

Download the vision client source to the /root directory:

su
cd
svn co svn://legend.me.uiuc.edu/hotdec

The file 'hotdec/vision_number.h' needs to contain the variable VISION with the correct value (use different values as necessary):

echo "const int VISION = 1;" > hotdec/vision_number.h

Ensure that the correct module (raw1394) will be loaded on boot:

echo "raw1394" >> /etc/modules
/etc/init.d/module-init-tools restart
lsmod | grep raw1394

Add the following to the bottom of /etc/rc.local. This ensures that the vision server boots up with the correct device name for the video card, and optionally starts up the client on boot.

mkdir /dev/video1394
ln -s /dev/video1394-0 /dev/video1394/0
#uncomment to run client on boot
#/root/hotdec/vision_client/client &
exit 0

To test it:

/etc/init.d/rc.local start
ls /dev/video1394/0

Make vision client:

cd hotdec/vision_client
make

That's it. You may want to now Calibrate the HoTDeC Vision system.