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

PreFlight #1157

Merged
merged 30 commits into from
Mar 30, 2024
Merged
Show file tree
Hide file tree
Changes from 26 commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
f0523a1
Created Preflight node and checks if running in simulation
Sep 26, 2023
498a693
added test file
aaliao Oct 5, 2023
0023656
Moved Preflight files to their own folder
Oct 5, 2023
7e68619
menu add
aaliao Oct 10, 2023
76a8024
Added File IO
Josht8601 Oct 17, 2023
8c6b83e
Working on Read function
Josht8601 Oct 17, 2023
e7a4f26
Added the functionality to test topics
Josht8601 Oct 19, 2023
f4877b4
Imported File IO into main preflight script
Josht8601 Oct 19, 2023
3cd9717
added UI functionality
aaliao Oct 24, 2023
305ea93
Updated File IO for hardware and Software
Josht8601 Oct 24, 2023
624daa2
Merge branch 'PreFlight' of github.com:uf-mil/mil into PreFlight
Josht8601 Oct 24, 2023
f5e5a08
converted to typer, for a more cli solution
Jan 22, 2024
93fd1c6
converted to typer, for a more cli solution
Jan 29, 2024
99a7aa6
Created Program flow and menus
Feb 2, 2024
2d0956b
reorganized preflight for pip package
aaliao Feb 6, 2024
871984e
reorganized preflight package
aaliao Feb 6, 2024
51be3b6
Fix actuators and switched to alias instead of pip package
Feb 7, 2024
cdad43f
Added more UI
Feb 16, 2024
47ef621
Organized files and added comments
Feb 16, 2024
f85eddc
Removed Typer from requirements.txt
Feb 16, 2024
afc6e30
added readme, updated main to run documentation
aaliao Feb 20, 2024
1558626
Merge remote-tracking branch 'origin/master' into PreFlight
Feb 23, 2024
da1528a
Testing changes
andrespulido8 Feb 23, 2024
34c0224
Merge remote-tracking branch 'origin/master' into PreFlight
Mar 17, 2024
270a1cc
starting to add axros
Mar 17, 2024
3ef5592
Finished implementing axros
Mar 18, 2024
bb1dccf
Code Refactoring. Added Docs to website
Mar 28, 2024
988ef99
Added Rich to requirements.txt
Mar 29, 2024
f2e46cf
Move Preflight docs to software docs instead of reference docs
cbrxyz Mar 30, 2024
e945c92
Merge branch 'master' into PreFlight
cbrxyz Mar 30, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions mil_common/utils/mil_tools/scripts/mil-preflight/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Preflight- Autonomous Robot Verification
Keith-Khadar marked this conversation as resolved.
Show resolved Hide resolved
## How to Use
Simply type "preflight" anywhere in the MIL directory. Make sure that a robot is connected and running or gazebo is running. To edit the hardware tests list and the automated software tests, edit the tests.py file in mil/mil_common/utils/mil_tools/scripts/mil-preflight/tests.py
## Description
Preflight is an automated testing tool that should be run after turning on and connecting to the robot to run a prelaunch hardware checklist and automated software checklist.

In the current version 1.0, Run Specific Test is not yet implemented.
### There are three types of automated software tests
#### Actuators
This test will prompt the user to enable physical moving actuators on the robot. Make sure that the area is cleared and the robot won't damage itself or others nearby. The user will have to watch and validate that they move as expected personally.

To add an actuator test, add a topic with a list of commands and import the module it comes from. See the thrusters example for reference in tests.py
#### Nodes
A ROS Node is a live process currently running and performing a task. They communicate with each other through topics, services, and messages, etc. This test will ensure all listed ROS Nodes are running and alive as expected.

To add a Node test, add a node to the list in tests.py
#### Topics
ROS Topics act as a channel for ROS Nodes to communicate by publishing and subscribing to messages. These tests check to verify that data is being published to these topics, ensuring that sensors under the listed topics are properly reading publishing data.

To add a Topic test, add a topic to the list in tests.py

### Dependencies
ROS, Rich, PyInquirer
Keith-Khadar marked this conversation as resolved.
Show resolved Hide resolved
Loading
Loading