Checking Out Platform Code
When you begin working on a new computer or robot, you will need to check out the platform code.
Project Organization
The platform code is open source and is available in the github.com/ut-av organization on GitHub. The repository is structured as follows:
roboracer_ws/
├── ...
├── scripts
├── src
├── ...
Note that each ROS2 package has its git own repository in the src directory.
There are 2 steps to acquire the code:
- Clone the roboracer_ws repository.
- Checkout the code using the
./scripts/checkout.shscript.
Cloning the Repositories
SSH into the machine (car or lab computer), then clone the roboracer_ws repository into your home directory:
cd ~
git clone https://github.com/ut-av/roboracer_ws.git
Change directory to the ~/roboracer_ws directory that was just checked out, then run the checkout script:
cd ~/roboracer_ws
./scripts/checkout.sh
Note: the checkout script is idempotent, meaning it can be run multiple times without any negative effects.
Updating the Code
Occasionally, you may need to update the code to the latest version.
This should be done in 3 steps after SSHing into the machine (car or lab computer):
-
Run
git pullto update theroboracer_wsrepository. -
Run
./scripts/checkout.shto update all of the repositories in thesrcfolder. -
Rebuild the container if necessary using the
./container buildcommand.
cd ~/roboracer_ws
git pull
./scripts/checkout.sh