boilerrobotics / rover-code

Source code repo for Purdue Boiler Robotics Club
GNU General Public License v3.0
6 stars 3 forks source link

For Communication and Intellgence

Make sure to work on branches instead of master.

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.