Skip to content

Source code

The source code for Controller can be found in src/controller. Its README has been copied below.

Controller

UBC Sailbot's controller for the new project. This repository contains a ROS package controller. This README contains only setup and run instructions. Further information on the controller can be found on the software team's docs website.

Setup

The controller is meant to be ran inside the Sailbot Workspace development environment. Follow the setup instructions for the Sailbot Workspace here to get started and build all the necessary ROS packages.

Run

The launch/ folder contains a ROS 2 launch file responsible for starting up the controller. To run the controller standalone, execute the launch file after building the controller package:

ros2 launch controller main_launch.py [OPTIONS]...

To see a list of options for configuration, add the -s flag at the end of the above command.

Test

Run the test task in the Sailbot Workspace. See here on how to run vscode tasks.