Raspberry ROS
From wikidb
Debian Choices
- April 23, 2012: fuerte ROS from SVN
- August 30, 2011: electric ROS from SVN
- March 2, 2011: diamond ROS from SVN
Debian Squeeze
Squeeze doesn't appear to be a good choice
Electric Install Failed
First step
sudo apt-get update
Then follow Electric link above.
pi@raspberrypi ~ $ rosinstall ~/ros "http://packages.ros.org/cgi-bin/gen_rosinstall.py? rosdistro=electric&variant=desktop-full&overlay=no" rosinstall operating on /home/pi/ros from specifications in rosinstall files http://packages.ros.org/cgi-bin/gen_rosinstall.py? rosdistro=electric&variant=desktop-full&overlay=no (Over-)Writing /home/pi/ros/.rosinstall (Over-)Writing setup.sh, setup.bash, and setup.zsh in /home/pi/ros ERROR in rosinstall: No 'ros' stack detected in candidates []. Please add the location of a ros distribution to this command. See http://ros.org/wiki/rosinstall.
Fuerte Install
Followed instructions in fuerte link above. Got an error on this step.
rosinstall --catkin ~/ros-underlay http://ros.org/rosinstalls/fuerte-ros-full.rosinstall
The error:
pi@raspberrypi ~ $ rosinstall --catkin ~/ros-underlay http://ros.org/rosinstalls/fuerte-ros-full.rosinstall rosinstall operating on /home/pi/ros-underlay from specifications in rosinstall files http://ros.org/rosinstalls/fuerte-ros-full.rosinstall (Over-)Writing /home/pi/ros-underlay/.rosinstall [actionlib] Installing git://github.com/wg-debs/actionlib-release.git (version debian/ros-fuerte-actionlib_1.8.6_lucid) to /home/pi/ros-underlay/actionlib WARNING [vcstools] Command failed: 'git clone --recursive git://github.com/wg-debs/actionlib-release.git /home/pi/ros-underlay/actionlib' errcode: 128: fatal: remote error: Repository not found. [/vcstools] [catkin] Updating /home/pi/ros-underlay/catkin [catkin] Done. ... [rx] Updating /home/pi/ros-underlay/rx [rx] Done. Exception caught during install: Error processing 'actionlib' : [actionlib] Checkout of git://github.com/wg-debs/actionlib-release.git version debian/ros-fuerte-actionlib_1.8.6_lucid into /home/pi/ros-underlay/actionlib failed. ERROR in config: Error processing 'actionlib' : [actionlib] Checkout of git://github.com/wg-debs/actionlib-release.git version debian/ros-fuerte-actionlib_1.8.6_lucid into /home/pi/ros-underlay/actionlib failed.
See:
If someone is having the same issue. This is how I fixed it. I downloaded the file from here: http://ros.org/rosinstalls/fuerte-ros-base.rosinstall and then changed the first package: - git: local-name: actionlib uri: git://github.com/ros-gbp/actionlib-release.git version: debian/ros-fuerte-actionlib_1.8.7_precise Then you should be able to run: rosinstall --catkin ~/ros-underlay file://path_to/fuerte-ros-base.rosinstall
I did a:
rosinstall --catkin ~/ros-underlay ros-fix/fuerte-ros-full.rosinstall
I did a:
sudo cp -r /swig /usr/local/share
I did a:
make
not
make -j8
The change will limit the number of parallel compiles to 1.
sudo pip install -U rosdep sudo rosdep init rosdep update rosdep install -a rosmake -a
[ 50%] Building CXX object CMakeFiles/camera_calibration_parsers.dir/src/parse_ini.o /tmp/ccVTKEEx.s: Assembler messages: /tmp/ccVTKEEx.s:2354: Warning: swp{b} use is deprecated for this architecture /tmp/ccVTKEEx.s:2383: Warning: swp{b} use is deprecated for this architecture /tmp/ccVTKEEx.s:2420: Warning: swp{b} use is deprecated for this architecture /tmp/ccVTKEEx.s:2592: Warning: swp{b} use is deprecated for this architecture /tmp/ccVTKEEx.s:2620: Warning: swp{b} use is deprecated for this architecture /tmp/ccVTKEEx.s:2657: Warning: swp{b} use is deprecated for this architecture /tmp/ccVTKEEx.s:3101: Warning: swp{b} use is deprecated for this architecture /tmp/ccVTKEEx.s:3129: Warning: swp{b} use is deprecated for this architecture /tmp/ccVTKEEx.s:3166: Warning: swp{b} use is deprecated for this architecture [ 75%] Building CXX object CMakeFiles/camera_calibration_parsers.dir/src/parse_yml.o /home/pi/ros/image_common/camera_calibration_parsers/src/parse_yml.cpp:3:27: fatal error: yaml-cpp/yaml.h: No such file or directory compilation terminated. make[3]: *** [CMakeFiles/camera_calibration_parsers.dir/src/parse_yml.o] Error 1 make[3]: Leaving directory `/home/pi/ros/image_common/camera_calibration_parsers/build' make[2]: *** [CMakeFiles/camera_calibration_parsers.dir/all] Error 2 make[2]: Leaving directory `/home/pi/ros/image_common/camera_calibration_parsers/build' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/pi/ros/image_common/camera_calibration_parsers/build' -------------------------------------------------------------------------------} [ rosmake ] Output from build of package camera_calibration_parsers written to: [ rosmake ] /home/pi/.ros/rosmake/rosmake_output-20121228-175952/camera_calibration_parsers/build_output.log [rosmake-0] Finished <<< camera_calibration_parsers [FAIL] [ 236.95 seconds ] [ rosmake ] Halting due to failure in package camera_calibration_parsers. [ rosmake ] Waiting for other threads to complete. [ rosmake ] Results: [ rosmake ] Built 8 packages with 1 failures. [ rosmake ] Summary output to directory [ rosmake ] /home/pi/.ros/rosmake/rosmake_output-20121228-175952
- see maybe help