Get Anaconda and ROS running together on Ubuntu 16.04
-
Install Anaconda: https://docs.anaconda.com/anaconda/install/linux/
-
Set default python version to python 2.7
conda update conda
conda install python=2.7
- Install ROS (Skip first 2 lines if ROS was installed earlier)
sudo -E sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
sudo -E apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116
sudo apt-get update
sudo apt-get install ros-kinetic-desktop-full
- Install rospkg and catkin_pkg
conda install -c conda-forge rospkg catkin_pkg
- Install extra dependencies
sudo apt install python-rosdep
conda install pip
pip install -U rosinstall_generator wstool rosinstall six vcstools msgpack empy
DONT: pip install em
- it confuses em for empy and catkin_make doesn’t work
- Source it:
source /opt/ros/kinetic/setup.bash
- For sourcing permanently:
sudo gedit ~/.bashrc
and add the above line to the end of the file. Then runsource ~/.bashrc
- Intitialize rosdep:
sudo rosdep init
rosdep update