Writing /var/lib/dokuwiki/data/meta/tutorials/installing_ros_melodic_inside_ubuntu_bionic_chroot.meta failed
tutorials:installing_ros_melodic_inside_ubuntu_bionic_chroot
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
tutorials:installing_ros_melodic_inside_ubuntu_bionic_chroot [2019/09/11 07:58] – created admin | tutorials:installing_ros_melodic_inside_ubuntu_bionic_chroot [2022/09/20 00:08] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Installing ROS melodic | + | ====== Installing ROS Melodic & ROS Dashing |
+ | * Install Ubuntu inside a chroot. Follow guide from [[tutorials: | ||
+ | * Fix / | ||
+ | nameserver 8.8.8.8 | ||
+ | |||
+ | * Fix /etc/hosts. On the second line put the name of your hostname instead of ' | ||
+ | |||
+ | 127.0.0.1 localhost | ||
+ | 127.0.1.1 shirka | ||
+ | |||
+ | * Add all ubuntu repositories. Edit file / | ||
+ | |||
+ | deb http:// | ||
+ | deb http:// | ||
+ | deb http:// | ||
+ | |||
+ | * Update repos | ||
+ | |||
+ | $ apt-get update | ||
+ | |||
+ | * Install the following packages: | ||
+ | |||
+ | $ apt-get install sudo mc nano curl lsb-release gnupg2 apt-utils bash-completion locales | ||
+ | |||
+ | * Add a new user in the chroot | ||
+ | |||
+ | $ adduser user | ||
+ | |||
+ | * Add your new user to sudo group | ||
+ | |||
+ | $ adduser user sudo | ||
+ | |||
+ | * Fix sudo error with visudo: | ||
+ | |||
+ | $ visudo | ||
+ | |||
+ | %sudo | ||
+ | |||
+ | * From now on, use your new user for the following steps: | ||
+ | |||
+ | $ su user | ||
+ | |||
+ | * Follow guide for ROS Melodic from ROS: [[http:// | ||
+ | * Follow guide for ROS Dashing from ROS: [[https:// | ||
+ | |||
+ | ===== Creating ROS Melodic Workspace ===== | ||
+ | |||
+ | Since ROS Hydro (ROS 1), ROS use [[wiki.ros.org/ | ||
+ | |||
+ | * [[http:// | ||
+ | |||
+ | After creating the workspace, build a basic package for testing purposes. | ||
+ | |||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | |||
+ | ===== Creating ROS Dashing Workspace ===== | ||
+ | |||
+ | Since ROS Crystal (ROS 2) to newer versions, ROS use [[https:// | ||
+ | |||
+ | * Source ROS 2 configuration | ||
+ | |||
+ | $ source / | ||
+ | |||
+ | * Install colcon | ||
+ | |||
+ | $ sudo apt install python3-colcon-common-extensions | ||
+ | |||
+ | * Create workspace for ROS 2 | ||
+ | |||
+ | $ mkdir -p ~/ | ||
+ | |||
+ | * Move to the new workspace and build it | ||
+ | |||
+ | $ cd ~/ros2_ws | ||
+ | $ colcon build | ||
+ | |||
+ | * Source workspace configuration | ||
+ | |||
+ | $ source ~/ | ||
+ | |||
+ | After creating the workspace, lets build some examples packages for ROS 2. | ||
+ | |||
+ | * Clone ROS 2 examples package repository in our workspace | ||
+ | |||
+ | $ cd ~/ | ||
+ | $ git clone git clone https:// | ||
+ | $ git checkout $ROS_DISTRO | ||
+ | |||
+ | * Build examples package | ||
+ | |||
+ | $ cd ~/ros2_ws | ||
+ | $ colcon build --symlink-install | ||
+ | |||
+ | * Test builded package. Remember to run each command on different terminals and source ROS 2 configuration on each terminal. | ||
+ | |||
+ | $ ros2 run examples_rclcpp_minimal_subscriber subscriber_member_function | ||
+ | $ ros2 run examples_rclcpp_minimal_publisher publisher_member_function | ||
+ |
tutorials/installing_ros_melodic_inside_ubuntu_bionic_chroot.1568188720.txt.gz · Last modified: 2022/09/20 00:08 (external edit)