Implement security measures for behavior-based autonomous driving#48
Merged
MarcOlivierFecteau merged 4 commits intoNov 4, 2025
Conversation
MarcOlivierFecteau
commented
Oct 25, 2025
Collaborator
The unused code is commented out instead of removed to preserve the originally intended logic.
The affected lines are commented out instead of removed to preserve the originally intended logic.
The issue was that the arbitration node didn't check the controller inputs to verify the required buttons for controlling the racecar with the behaviors were pressed, so it sent the command with the highest priority whether or not the deadman switch and the "autopilot-using-behaviors" were pressed, which would have been problematic when testing the behaviors on the racecar (as one can conclude with an autonomous vehicle ignoring the security measures). The arbitration node now checks the `joy` topic for the required inputs, and publishes only the "manual" commands if the requirements aren't met.
Collaborator
Author
|
In my opinion, a "Rebase and merge" is the most adequate way to merge this PR. |
The input mode of the Logitech F710 used for the racecar is DirectInput.
Collaborator
Author
|
I changed the inputs checked for activating behavior-autonomous driving to match DirectInput (D-mode) mappings. Confirmed working on my personal laptop, so to be (extra) safe, we should also test exercise 4.a of GRO830's lab on a lab PC. |
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.