Skip to content

Commit

Permalink
feat(autoware_vehicle_cmd_gate): prevent steering when vehicle stoppi…
Browse files Browse the repository at this point in the history
…ng. (#1660)

chore(autoware_vehicle_cmd_gate): prevent steering when stop

Signed-off-by: Makoto Kurihara <[email protected]>
  • Loading branch information
mkuri authored and TetsuKawa committed Dec 1, 2024
1 parent f03e037 commit 3ccb038
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 3ccb038

Please sign in to comment.