Note: The following instructions are written assuming you are using Bash as your shell. The file extension of the setup scripts may be different if you are using a different shell. (.bash
, .sh
, and .zsh
are available)
-
Install ROS 2
Follow the instructions for ROS 2 Jazzy for your system.
-
Initialize rosdep dependency manager
sudo rosdep init rosdep update
-
Make a ROS workspace and clone our repo
mkdir ateam_ws cd ateam_ws mkdir src cd src git clone --recursive git@github.com:SSL-A-Team/software.git
-
Install our ROS dependencies
# Source underlay if you haven't already in this terminal source /opt/ros/jazzy/setup.bash # In the ateam_ws directory rosdep install --from-paths . --ignore-src -y
-
Install our non-ROS dependencies
# Source underlay if you haven't already in this terminal source /opt/ros/jazzy/setup.bash # In the ateam_ws directory ./src/software/ateam_ui/install_deps.sh
-
Build the code
# Source underlay if you haven't already in this terminal source /opt/ros/jazzy/setup.bash # In the ateam_ws directory colcon build
-
[Optionally] Run the tests
# Source underlay if you haven't already in this terminal source /opt/ros/jazzy/setup.bash # In the ateam_ws directory colcon test && colcon test-result --verbose
Note: You'll need to source both the underlay (/opt/ros/jazzy/setup.bash
) and our workspace's overlay (ateam_ws/install/setup.bash
) in every terminal session before running any of our code.