Skip to content

Commit 5954747

Browse files
authored
Merge pull request #1558 from tier4/fix-turn-indicator-report
fix: a small bug about turn indicator
2 parents 5078293 + ee2deff commit 5954747

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

external/concealer/src/autoware_universe.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,12 @@ AutowareUniverse::AutowareUniverse(bool simulate_localization) try
151151
setTurnIndicatorsReport([this]() {
152152
TurnIndicatorsReport message;
153153
message.stamp = get_clock()->now();
154-
message.report = getTurnIndicatorsCommand().command;
154+
155+
auto turn_indicators_command = getTurnIndicatorsCommand();
156+
message.report = turn_indicators_command.command == TurnIndicatorsCommand::NO_COMMAND
157+
? TurnIndicatorsReport::DISABLE
158+
: turn_indicators_command.command;
159+
155160
return message;
156161
}());
157162
})),

0 commit comments

Comments
 (0)