-
Notifications
You must be signed in to change notification settings - Fork 1
How to Build
Jerome Justin edited this page Aug 3, 2022
·
1 revision
- Ubuntu 22.04
- ROS2 Humble
- Docker
- Pre-Commit
To install ROS2 follow the official instructions provided here.
Make sure to install the version that corresponds to the branch you require or slight modifications may be required to compile the code.
https://docs.ros.org/en/humble/Installation/Ubuntu-Install-Debians.html
mkdir -p ~/dev_ws/src
cd ~/dev_ws/src
git clone -c http.sslverify=false https://github.com/acfr/ros2_template_pkg.git
cd ros2_template_pkg
git submodule init
pre-commit install
git -c http.sslverify=false submodule update
cd ../..
rosdep install -i --from-path src --rosdistro humble -y
colcon build
-
Install pip
sudo apt install python3-pip
-
Install Pre-Commit
pip install pre-commit
-
Install docker using the following instructions https://docs.docker.com/engine/install/ubuntu/
-
By default, Docker is only accessible with root privileges (sudo). If you want to use docker as a regular user, you need to add your user to the docker group.
sudo addgroup --system docker
sudo adduser $USER docker
newgrp docker
sudo snap disable docker
sudo snap enable docker