Install ROS 2 in Linux


This tutorial show how to perform a ROS 2 installation at an Erle-Brain Pro machine.

You can also perform this installation at Mac OS X. Go to Tutorial #3 for that.

Do you need more computing capacity in your robots? Stay tuned

sudo apt-key adv --keyserver ha.pool.sks-keyservers.net --recv-keys D2486D2DD83DB69272AFE98867170598AF249743
sudo bash -c 'echo "deb http://packages.osrfoundation.org/gazebo/ubuntu `lsb_release -cs` main" > /etc/apt/sources.list.d/gazebo-latest.list'

sudo apt-get update && sudo apt-get install -q -y \
libopencv-core2.4 \
libhighgui2.4 \
libopencv-imgproc2.4 \
libopensplice64 \
wget

Last releases: https://github.com/ros2/ros2/releases

mkdir -p ~/ros2_install
cd ~/ros2_install
tar xf ~/Downloads/ros2-package-linux.tar.bz2

Open a terminal and launch the next bash. After that launch a 'talker'

. ~/ros2_install/ros2-linux/setup.bash
talker

Using another terminal launch the same bash and after that a 'listener'

. ~/ros2_install/ros2-linux/setup.bash
listener

You should be able to see how the listener is listening the messages that is publishing the talker.