Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents
stylesquare

Install supported ROS-2 distribution

By clicking the image,  you can go to the installation procedure of the respective ROS distro.

Create workspace

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

Clone neo_simulation2 into your workspace


Code Block
languagebash
themeRDark
linenumberstrue
cd your_colcon_workspace/src
git clone https://github.com/neobotix/neo_simulation2.git


Build workspace


Code Block
languagebash
themeRDark
linenumberstrue
cd ..
colcon build --symlink-install


Sourcing the workspace


Code Block
languagebash
themeRDark
linenumberstrue
echo "source your_colcon_workspace/install/setup.bash" >> ~/.bashrc


Add path to custom gazebo models into .bashrc


Code Block
languagebash
themeRDark
linenumberstrue
echo "export GAZEBO_MODEL_PATH=/(Path to your workspace)/src/neo_simulation/models:$GAZEBO_MODEL_PATH" >> ~/.bashrc


Install the relevant ROS-2 Gazebo Packages


Code Block
languagebash
themeRDark
linenumberstrue
sudo apt-get install ros-foxy-gazebo-ros ros-foxy-gazebo-plugins ros-foxy-gazebo-ros-pkgs


Install the ROS-2 Navigation Packages


Code Block
languagebash
themeRDark
linenumberstrue
sudo apt install ros-foxy-navigation2 ros-foxy-nav2-bringup


Clone the neo_local_planner and build it


Code Block
languagebash
themeRDark
linenumberstrue
cd to_your_workspace/src
git clone https://github.com/neobotix/neo_local_planner2.git
cd ..
colcon build --symlink-install


Install the ROS-2 SLAM Toolbox


Code Block
languagebash
themeRDark
linenumberstrue
sudo apt install ros-foxy-slam-toolbox