- components: This folder is for individual parts, components, or experiments
- src: This folder contains the code that will be running on the rover. It is ROS2 workspace.
- tutorial: A trining module for new members.
The folder src is the main folder to work with. It is already a ROS2 workspace. To run the code, you will need to compile and install. To compile
colcon build
Note: You might need to install colcon by
sudo apt install python3-colcon-common-extensions
You can selectively build packages by
colcon build --packages-select <name-of-pkg>
After compilation, you will see a folder install
appear.
You can install packages by
source install/setup.bash
Some packages have dependencies.
We use rosdep
to manage them.
# run the following code only once
sudo apt-get install python3-rosdep # install rosdep
sudo rosdep init
rosdep update
All dependencies should be mentioned in each package's package.xml
whenever possible. Use the following command for install dependencies.
# run this command from ROS workspace
rosdep install --from-paths src -y --ignore-src
Use the following list and this tutorial.