[PYTHON] ROS environment setup ①

ROS1 installation

I'm interested and playing around with it. This time we will install ROS1 Melodic. As a personal memorandum. Make it as small as possible.

Target environment

Ubuntu 18.04 (on Virtual Box) ROS1 Melodic

Installation

We will follow the flow of batch installation of ROS1 packages. Specify the ROS version as melodic.

install_1


$ export ROS_DISTRO=melodic

Get permission to install ROS.

install_2


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

key setting

install_3


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

update

install_4


$ sudo apt update

Installation

install_5


$ sudo apt install ros-$ROS_DISTRO-desktop-full python-rosinstall python-rosinstall-generator python-wstool build-essential python-catkin-tools

After that, update the rosdep database that resolves ROS1 dependencies, load the setup script for environment settings, and you're done.

Initialization of rosdep

install_6


$ sudo rosdep init
$ rosdep update

Environment

install_7


$ echo "source /opt/ros/$ROS_DISTRO/setup.bash" >> ~/.bashrc
$ echo "source `catkin locate --shell-verbs`" >> ~/.bashrc
$ source ~/.bashrc

It also installs gazebo.


$ curl -sSL http://get.gazebosim.org | sh
$ sudo apt install ros-$ROS_DISTRO-gazebo-ros-pkgs ros-$ROS_DISTRO-gazebo-ros-control

that's all. I will play around with it.

References

[1] ROS course 02 installation https://qiita.com/srs/items/e0e0a9dc3f94c2d3348e [2] Let's get started with ROS2 Next-generation robot programming --Yutaka Kondo

Thank you very much.

Recommended Posts

ROS environment setup ①
Environment
Python practice_Virtual environment setup ~ Django installation
Setup modern Python environment with Homebrew
onnxruntime-gpu setup
Building a conda environment for ROS users
OpenERP 7.0 setup
Jetson + ROS
Image Processing with Python Environment Setup for Windows