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.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tutorials:installing_ros_melodic_inside_ubuntu_bionic_chroot [2019/10/08 04:51] – amora | 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: | * Install Ubuntu inside a chroot. Follow guide from [[tutorials: | ||
Line 14: | Line 14: | ||
deb http:// | deb http:// | ||
+ | deb http:// | ||
deb http:// | deb http:// | ||
* Update repos | * Update repos | ||
- | apt-get update | + | |
* Install the following packages: | * Install the following packages: | ||
- | apt-get install sudo mc nano curl lsb-release | + | |
* Add a new user in the chroot | * Add a new user in the chroot | ||
- | adduser user | + | |
* Add your new user to sudo group | * Add your new user to sudo group | ||
- | adduser user sudo | + | |
* Fix sudo error with visudo: | * Fix sudo error with visudo: | ||
- | visudo | + | |
%sudo | %sudo | ||
Line 40: | Line 41: | ||
* From now on, use your new user for the following steps: | * From now on, use your new user for the following steps: | ||
- | su user | + | |
- | * Follow guide from ROS: [[http:// | + | * Follow guide for ROS Melodic |
+ | * 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.1570510264.txt.gz · Last modified: 2022/09/20 00:08 (external edit)