Instantly share code, notes, and snippets.

Embed
What would you like to do?
installing ROS kinetic ROS-comm on beaglebone stretch
# derived from http://wiki.ros.org/ROSberryPi/Installing%20ROS%20Kinetic%20on%20Raspberry%20Pi
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu stretch main" > /etc/apt/sources.list.d/ros-latest.list'
wget https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -O - | sudo apt-key add -
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install python-pip python-setuptools python-yaml python-distribute python-docutils python-dateutil python-six
sudo pip install rosdep rosinstall_generator wstool rosinstall
# assorted deps which were found to be MIA along the way,
# no idea why those are not caught by rosdep install and related incantations:
sudo apt-get install \
libconsole-bridge-dev liblz4-dev checkinstall cmake \
python-empy python-nose libbz2-dev \
libboost-test-dev libboost-dev libboost-program-options-dev \
libboost-regex-dev libboost-signals-dev \
libtinyxml-dev libboost-filesystem-dev libxml2-dev \
libgtest-dev
sudo rosdep init
rosdep update
mkdir ~/ros_catkin_ws
cd ~/ros_catkin_ws
rosinstall_generator ros_comm --rosdistro kinetic --deps --wet-only --exclude roslisp --tar > kinetic-ros_comm-wet.rosinstall
wstool init src kinetic-ros_comm-wet.rosinstall
# roscpp fails with oom error
# I added 4GB USB flash as swap space
sudo blkid
sudo mkswap /dev/XXX
sudo swapon /dev/XXX
rosdep install --from-paths src --ignore-src --rosdistro kinetic -y -r --os=debian:stretch
sudo ./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release --install-space /opt/ros/kinetic
# that's it.
# add to .bashrc as seen fit:
# source /opt/ros/kinetic/setup.bash
# needed when mDNS/Avahi is used:
# export ROS_HOSTNAME=`hostname`.local
# no need for lisp bindings
# export ROS_LANG_DISABLE=genlisp
#cd catkin_ws/
#. devel/setup.bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment