Add aliases for common Pi commands #3376
Labels
DevOps
For everything related to logistics of code
Difficulty - 3
Easy and simple issues that require some context to do
Testing
Field testing, test infrastructure, robot tuning
Description of the task
Currently, when we flash the robots, the command we use is:
./tbots.py run -f {robot_ids} -pl PI -ssh_pass {robot_password}
.It is very easy to forget to pass in the
-pl PI
flag and run into errors when running Thunderloop. We could consider having better commands to flash the robots.For instance:
piflash {robot_ids} -ssh_pash {robot_password}
andnanoflash {robot_ids} -ssh_pass {robot_password}
This could be implemented as a simple python script that calls the following equivalent
bazel run_ansible
commands:bazel run //software/embedded/ansible:run_ansible --cpu=jetson_nano --//software/embedded:host_platform=<platform> -- --playbook deploy_robot_software.yml --hosts <robot_ip> --ssh_pass <robot_password>
For instance, you would create a file called:
nanoflash
whose first line would be#! /opt/tbotspython/bin/python3.12
which would call thesubprocess
module for the abovebazel
command.Acceptance criteria
Blocked By
The text was updated successfully, but these errors were encountered: