Skip to content

full course : http://wiki.ros.org

ROS Melodic Ubuntu 18.04

Installasi

sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
sudo apt update
sudo apt install ros-melodic-desktop-full
echo "source /opt/ros/melodic/setup.bash" >> ~/.bashrc
source ~/.bashrc
sudo apt install python-rosdep python-rosinstall python-rosinstall-generator python-wstool build-essential
sudo rosdep init
rosdep update

ROS Tutorial

Managing Environtment :

printenv | grep ROS

# dijalankan setiap open terminal
source /opt/ros/melodic/setup.bash

Create ROS Workspace :

mkdir -p ~/catkin_ws/src
cd ~/catkin_ws/

catkin_make
# jika akan menggunakan python
catkin_make -DPYTHON_EXECUTABLE=/usr/bin/python3

source devel/setup.bash

cek apakah shell path sudah termuat :

$ echo $ROS_PACKAGE_PATH
# /home/youruser/catkin_ws/src:/opt/ros/kinetic/share