Skip to content

Commit

Permalink
Merge pull request #1662 from tier4/hotfix/prevent-steering-when-vehi…
Browse files Browse the repository at this point in the history
…cle-stopping

feat(autoware_vehicle_cmd_gate): prevent steering when vehicle stoppi…
  • Loading branch information
saka1-s authored Nov 29, 2024
2 parents fdd665d + e47c833 commit 3bd0bd7
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 3bd0bd7

Please sign in to comment.