-
Notifications
You must be signed in to change notification settings - Fork 668
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(intersection): divide stop line function, cache lanelet obje…
…ct (#2799) Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp>
- Loading branch information
Showing
7 changed files
with
235 additions
and
167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
planning/behavior_velocity_planner/include/scene_module/intersection/util_type.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// Copyright 2022 Tier IV, Inc. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
#ifndef SCENE_MODULE__INTERSECTION__UTIL_TYPE_HPP_ | ||
#define SCENE_MODULE__INTERSECTION__UTIL_TYPE_HPP_ | ||
|
||
#include <lanelet2_core/primitives/Lanelet.h> | ||
|
||
#include <vector> | ||
|
||
namespace behavior_velocity_planner::util | ||
{ | ||
struct IntersectionLanelets | ||
{ | ||
bool tl_arrow_solid_on; | ||
lanelet::ConstLanelets attention; | ||
lanelet::ConstLanelets conflicting; | ||
lanelet::ConstLanelets adjacent; | ||
std::vector<lanelet::CompoundPolygon3d> attention_area; | ||
std::vector<lanelet::CompoundPolygon3d> conflicting_area; | ||
std::vector<lanelet::CompoundPolygon3d> adjacent_area; | ||
}; | ||
|
||
struct StopLineIdx | ||
{ | ||
size_t pass_judge_line = 0; | ||
size_t collision_stop_line = 0; | ||
}; | ||
|
||
} // namespace behavior_velocity_planner::util | ||
|
||
#endif // SCENE_MODULE__INTERSECTION__UTIL_TYPE_HPP_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.