Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add aliases for common Pi commands #3376

Open
2 tasks
itsarune opened this issue Oct 19, 2024 · 0 comments
Open
2 tasks

Add aliases for common Pi commands #3376

itsarune opened this issue Oct 19, 2024 · 0 comments
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

Comments

@itsarune
Copy link
Contributor

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} and nanoflash {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 the subprocess module for the above bazel command.

Acceptance criteria

  • Create Python wrappers for flashing the Raspberry Pi robots and the Jetson Nano robots
  • Test the new wrappers with the robots (Pi and Nano)

Blocked By

@itsarune itsarune added Difficulty - 3 Easy and simple issues that require some context to do DevOps For everything related to logistics of code Testing Field testing, test infrastructure, robot tuning labels Oct 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

1 participant