본문 바로가기

Linux

How install ROS kinetic

반응형

1. Settings


a) setup source list

sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'


b) setup key

sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116


c) update ubuntu

sudo apt-get update


2. Install

sudo apt-get install ros-kinetic-desktop-full


3. post setting


a) initialize rosdep

sudo rosdep init
rosdep update


b) install dependency

sudo apt-get install python-rosinstall python-rosinstall-generator python-wstool build-essential ros-kinetic-ros-control ros-kinetic-ros-controllers


c) bashrc setting


source /opt/ros/kinetic/setup.bash

source ~/catkin_ws/devel/setup.bash


export ROS_HOSTNAME=129.254.84.73

export ROS_MASTER_URI=http://${ROS_HOSTNAME}:11311


alias cw='cd ~/catkin_ws'

alias cs='cd ~/catkin_ws/src'

alias cm='cd ~/catkin_ws && catkin_make'


4. workspace init


$ mkdir -p ~/catkin_ws/src

$ cd ~/catkin_ws/src

$ catkin_init_workspace

$ cd ~/catkin-ws