If you want to move self-driving cars and robots, it's ROS. So that's it. First of all, I would like to run ROS on Mac.
Reference: https://qiita.com/yasuoka_dev/items/073f7e8c7dba75993323
$ docker pull ubuntu:18.04
Create a user so that you can sudo.
Reference: http://www1.meijo-u.ac.jp/~kohara/cms/technicalreport/ubuntu18-04_ros_install
$ sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
There is no sudo. ..
$ apt-get update
$ apt-get install vim
$ apt-get install sudo
There is no lsb_release. .. Moreover, when I try to apt-get install in this state, it seems that garbage remains in the following file and an error occurs. ..
E: Malformed entry 1 in list file /etc/apt/sources.list.d/ros-latest.list (Component)
E: The list of sources could not be read.
E: Malformed entry 1 in list file /etc/apt/sources.list.d/ros-latest.list (Component)
E: The list of sources could not be read.
I'll delete the file. Moreover, it has changed to lsb-release instead of lsb_release. .. There are too many traps.
$ rm /etc/apt/sources.list.d/ros-latest.list
$ sudo apt-get install lsb-release
From the beginning, put in sudo, put in lsb-release, and then do it.
$ sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
There is no gnupg.
$ sudo apt-get install gnupg
It looks like it's done.
$sudo apt update
$sudo apt install ros-melodic-desktop-full
A great number of packages. 1416 package. For some reason, the city was selected on the way. Select 6: Asia> 79: Tokyo. Done.
Also, it seems that you need to install rodep manually separately, so install it below.
apt install python-rosdep
Create up to catkin_ws. Try putting in a package.
$ sudo apt-get install -y ros-melodic-joystick-drivers
The ros-tutorials package may also be good.
There was also a tutorial document in Japanese. https://github.com/tork-a/tork_moveit_tutorial/releases/tag/0.0.10
Since Docker does not have a GUI, there was also a type that was launched from a browser. https://qiita.com/karaage0703/items/957bdc7b4dabfc6639da
$ docker run -p 6080:80 --shm-size=512m tiryoh/ros-desktop-vnc:melodic
One command. It's too easy.
Recommended Posts