Install supported ROS-2 distribution
By clicking the image, you can go to the installation procedure of the respective ROS distro.
Rolling distro, is specific for the developers and there are chances to find code that breaks your process. Using Rolling distro is encouraged, only if you are developing a package based on this simulation, else use other distros.
ROS-2 does not use catkin for building the package unlike ROS-1, rather it uses ament_cmake as the default!
Follow this link to create a colcon workspace https://docs.ros.org/en/foxy/Tutorials/Colcon-Tutorial.html
Before continuing with this tutorial, make sure you have sourced your corresponding ROS-Distro
Automated workspace setup
Download this file to your directory where you want to setup your workspace (usually the /home/$USER)
Make the downloaded file as an executable using:
Just run the downloaded script from that particular directory to install all our packages: