Skip to content

Commit

Permalink
chore(autoware_vehicle_cmd_gate): prevent steering when stop
Browse files Browse the repository at this point in the history
Signed-off-by: Makoto Kurihara <[email protected]>
  • Loading branch information
mkuri committed Nov 22, 2024
1 parent 56dfcc4 commit ce34ee3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions control/autoware_vehicle_cmd_gate/src/vehicle_cmd_gate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -556,14 +556,14 @@ void VehicleCmdGate::publishControlCommands(const Commands & commands)

// Check engage
if (!is_engaged_) {
filtered_commands.control.longitudinal = createLongitudinalStopControlCmd();
filtered_commands.control = createStopControlCmd();
}

// Check pause. Place this check after all other checks as it needs the final output.
adapi_pause_->update(filtered_commands.control);
if (adapi_pause_->is_paused()) {
if (is_engaged_) {
filtered_commands.control.longitudinal = createLongitudinalStopControlCmd();
filtered_commands.control = createStopControlCmd();
} else {
filtered_commands.control = createStopControlCmd();
}
Expand Down

0 comments on commit ce34ee3

Please sign in to comment.