Difference between revisions of "Phidgets Installation"

From wikidb
Jump to: navigation, search
(sound_play)
(ROS Phidgets)
Line 38: Line 38:
 
Be sure to quit Synaptic. It will lock the repository so that the dependencies cannot be loaded below.
 
Be sure to quit Synaptic. It will lock the repository so that the dependencies cannot be loaded below.
  
Download from [https://launchpad.net/phidgets-ros-pkg launchpad.net].
+
Download phidgets-ros-pkg-1.40.tar.gz from [https://launchpad.net/phidgets-ros-pkg launchpad.net].
* Downloaded file is : phidgets-ros-pkg-1.40.tar.gz
+
  
 
As root or sudo
 
As root or sudo
Line 49: Line 48:
 
* source /opt/ros/electric/setup.sh
 
* source /opt/ros/electric/setup.sh
 
* rosmake --rosdep-install phidgets
 
* rosmake --rosdep-install phidgets
 +
 +
The last step is long.

Revision as of 07:21, 8 May 2012

Core Libraries

Get the core phidgets libraries from www.phidgets.com drivers.

Note: using Synaptic to get the phidgets drivers will not give you the correct version. Note: requires libusb-dev

  • I got libphidget-2.1.8.20120503
  • untar
  • cd libphidget-2.1.8.20120503
  • ./configure
  • make
  • sudo make install

Allow access to USB in user mode. Requires a restart.

  • sudo cp udev/99-phidgets.rules /etc/udev/rules.d/

sound_play

Sound play is required for ROS phidgets to build and install. See sound_play fix for more details.

As root or using sudo

  • add the following to the end of /opt/ros/electric/ros/rosdep.yaml
python-pygame:
  ubuntu: python-pygame
  • cd /opt/ros/electric/stacks/

Do not try to build sound_play. It is built when ROS Phidgets are built in the next section. If you try to build it, it will complain about festival missing even if you load festival with Synaptic.

ROS Phidgets

Be sure to quit Synaptic. It will lock the repository so that the dependencies cannot be loaded below.

Download phidgets-ros-pkg-1.40.tar.gz from launchpad.net.

As root or sudo

  • cd /opt/ros/electric/stacks
  • mkdir phidgets
  • cd phidgets
  • untar in /opt/ros/electric/stacks/phidgets
  • source /opt/ros/electric/setup.sh
  • rosmake --rosdep-install phidgets

The last step is long.