ROS Phidgets Installation
Contents
References
Indigo Installation
Nothing was done. It was possible to reuse the Jade installation. Check that the ROS_PACKAGE_PATH points to ~/ros_packages. See step 3.2 and 3.4. Also check that ros-indigo-audio-common is installed. See step 3.3.
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:/home/eepp/ros_packages
Jade Installation
June 2015 for NUC on Hood.
From ROS Site
ROS Install instructions
- ROS Phidgets Installation from ROS site.
Install Steps
- Steps 3.1 were completed in Phidgets Installation
- Step 3.2
cd ~/ros-packages bzr branch lp:phidgets-ros-pkg mv phidgets-ros-pkg/ phidgets
- Step 3.3. DON'T DO THIS. The following timed out and work-arounds did not work (See What Did'nt Work below). Eventually, audio-common was available simplifying install.
sudo svn co https://code.ros.org/svn/ros-pkg/stacks/sound_drivers/trunk/sound_play
- This is what worked easily.
sudo aptitude search audio-common sudo apt-get install ros-jade-audio-common
- Step 3.4.
The ROS_PACKAGE_PATH is reset by some scripts, for example, " source /home/eepp/catkin_ws/devel/setup.bash ".
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:/home/eepp/ros_packages
- Step 3.5. Got the following error about not finding opencv2. The fix is to to replace opencv2 with cv_bridge in manifest.xml. See item 10 in Indigo Migration. This help link came from Adding opencv to Indigo.
rosmake --pre-clean phidgets [rospack] Error: package 'phidgets' depends on non-existent package 'opencv2' and rosdep claims that it is not a system dependency. Check the ROS_PACKAGE_PATH or try calling 'rosdep update' cd ~/ros_packages/phidgets$ cp manifest.xml manifest.xml.org emacs manifest.xml& diff manifest.xml.org manifest.xml 18c18 < <depend package="opencv2" /> --- > <depend package="cv_bridge" />
- The following did not build because it could not find move_base_msgs.pc in /opt/ros/jade/lib/pkgconfig. We need the move_base_msgs package.
sudo apt-get install ros-jade-navigation
- Now it built.
rosmake --pre-clean phidgets
- Step 3.6. And test
rosrun phidgets manager |- # -|- Type -|- Serial No. -|- Version -| |-------|----------------------------------|--------------|------------| |- 0 -|- PhidgetMotorControl -|- 147489 -|- 102 -| |-------|----------------------------------|--------------|------------| |- 1 -|- PhidgetInterfaceKit -|- 69535 -|- 825 -| |-------|----------------------------------|--------------|------------|
Copy
Copied phidgets to the workspace to make it so the following export is not needed "export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:/home/eepp/ros_package".
cp -r ~/ros_packages/phidgets/ ~/catkin_ws_indigo/src
Motor test
Phidgets Motor Controller Test
What Didn't Work
On Hood
- following timed out
sudo svn co https://code.ros.org/svn/ros-pkg/stacks/sound_drivers/trunk/sound_play
- So I tried the following from the /opt/ros/jade/share/ directory because the search found audio-common in indigo
sudo aptitude search audio-common sudo apt-get install ros-indigo-audio-common sudo cp -r ../../indigo/share/sound_play/ . sudo cp -r ../../indigo/share/sound_play/audio* .
- This will fail later because sound-play.pc is not ending up in the following directory. A standard apt-get install is required. The one for jade's audio-common was not found unti later.
/opt/ros/jade/lib/pkgconfig
- "rosmake" or "sudo rosmake" for phidgets didn't work so I tried the following (makebe I should try it as root)
chown -R eepp:eepp phidgets rosmake --pre-clean phidgets
Get the following error
[rospack] Error: package 'phidgets' depends on non-existent package 'opencv2' and rosdep claims that it is not a system dependency. Check the ROS_PACKAGE_PATH or try calling 'rosdep update'
Based on this help link I tried
eepp@clyde:~/ros_packages$ rosdep install phidgets ERROR: the following packages/stacks could not have their rosdep keys resolved to system dependencies: phidgets: Missing resource opencv2 ROS path [0]=/opt/ros/jade/share/ros ROS path [1]=/opt/ros/jade/share ROS path [2]=/opt/ros/jade/stacks ROS path [3]=/home/eepp/ros_packages eepp@clyde:~$ mkdir opencv eepp@clyde:~$ cd opencv eepp@clyde:~/opencv$ git clone https://github.com/jayrambhia/Install-OpenCV.git eepp@clyde:~/opencv$ cd Install-OpenCV/Ubuntu/ eepp@clyde:~/opencv/Install-OpenCV/Ubuntu$ source opencv_latest.sh
it asked for sudo passwds.
I still couldn't build.
- This opencv2 link took me to:
- This vision_opencv link which took me to:
- This cv_bridge link.
From FitPC Install
I did a few things following this path and then moved to above procedure. The README files from below and above are the same.
cd /opt/ros/jade/share/ sudo tar xzvf ~/Downloads/phidgets-ros-pkg-1.50.tar.gz sudo mv phidgets/ phidgets_1