Skip to content

Implement security measures for behavior-based autonomous driving#48

Merged
MarcOlivierFecteau merged 4 commits into
SherbyRobotics:ros2from
MarcOlivierFecteau:fix/behaviors-deadman-switch
Nov 4, 2025
Merged

Implement security measures for behavior-based autonomous driving#48
MarcOlivierFecteau merged 4 commits into
SherbyRobotics:ros2from
MarcOlivierFecteau:fix/behaviors-deadman-switch

Conversation

@MarcOlivierFecteau

Copy link
Copy Markdown
Collaborator
image

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.
@MarcOlivierFecteau MarcOlivierFecteau self-assigned this Oct 25, 2025
@MarcOlivierFecteau MarcOlivierFecteau added the bug Something isn't working label Oct 25, 2025
@MarcOlivierFecteau

Copy link
Copy Markdown
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.
@MarcOlivierFecteau

Copy link
Copy Markdown
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.

@MarcOlivierFecteau MarcOlivierFecteau merged commit 399b955 into SherbyRobotics:ros2 Nov 4, 2025
2 checks passed
@MarcOlivierFecteau MarcOlivierFecteau deleted the fix/behaviors-deadman-switch branch November 4, 2025 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant