Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] main from autowarefoundation:main #227

Merged
merged 2 commits into from
Jun 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,14 @@ TurnSignalInfo StartPlannerModule::calcTurnSignalInfo() const
// pull out path does not overlap
const double distance_from_end =
motion_utils::calcSignedArcLength(path.points, end_pose.position, current_pose.position);
const double lateral_offset = inverseTransformPoint(end_pose.position, start_pose).y;

if (path.points.empty()) {
return {};
}
const auto closest_idx = motion_utils::findNearestIndex(path.points, start_pose.position);
const auto lane_id = path.points.at(closest_idx).lane_ids.front();
const auto lane = planner_data_->route_handler->getLaneletMapPtr()->laneletLayer.get(lane_id);
const double lateral_offset = lanelet::utils::getLateralDistanceToCenterline(lane, start_pose);

if (distance_from_end < 0.0 && lateral_offset > parameters_->th_blinker_on_lateral_offset) {
turn_signal.turn_signal.command = TurnIndicatorsCommand::ENABLE_LEFT;
Expand Down
1 change: 1 addition & 0 deletions planning/behavior_velocity_speed_bump_module/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

<maintainer email="[email protected]">Tomoya Kimura</maintainer>
<maintainer email="[email protected]">Shumpei Wakabayashi</maintainer>
<maintainer email="[email protected]">Mehmet Dogru</maintainer>

<license>Apache License 2.0</license>

Expand Down