forked from autowarefoundation/autoware.universe
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(lane_change): combine all debug data into single struct (aut…
…owarefoundation#6173) * refactor(lane_change): combine all debug data into single struct Signed-off-by: Zulfaqar Azmi <[email protected]> * Rename valid path → valid paths Signed-off-by: Zulfaqar Azmi <[email protected]> * move the marker creation to marker_utils Signed-off-by: Zulfaqar Azmi <[email protected]> * Remove alias Signed-off-by: Zulfaqar Azmi <[email protected]> --------- Signed-off-by: Zulfaqar Azmi <[email protected]>
- Loading branch information
1 parent
00974c3
commit 4b22a5a
Showing
7 changed files
with
129 additions
and
76 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
49 changes: 49 additions & 0 deletions
49
..._path_lane_change_module/include/behavior_path_lane_change_module/utils/debug_structs.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,49 @@ | ||
// Copyright 2024 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 BEHAVIOR_PATH_LANE_CHANGE_MODULE__UTILS__DEBUG_STRUCTS_HPP_ | ||
#define BEHAVIOR_PATH_LANE_CHANGE_MODULE__UTILS__DEBUG_STRUCTS_HPP_ | ||
|
||
#include "behavior_path_lane_change_module/utils/data_structs.hpp" | ||
#include "behavior_path_lane_change_module/utils/path.hpp" | ||
|
||
#include <behavior_path_planner_common/utils/path_safety_checker/path_safety_checker_parameters.hpp> | ||
|
||
#include <string> | ||
|
||
namespace behavior_path_planner::data::lane_change | ||
{ | ||
using utils::path_safety_checker::CollisionCheckDebugMap; | ||
struct Debug | ||
{ | ||
std::string module_type; | ||
LaneChangePaths valid_paths; | ||
CollisionCheckDebugMap collision_check_objects; | ||
CollisionCheckDebugMap collision_check_objects_after_approval; | ||
LaneChangeTargetObjects filtered_objects; | ||
double collision_check_object_debug_lifetime{0.0}; | ||
|
||
void reset() | ||
{ | ||
valid_paths.clear(); | ||
collision_check_objects.clear(); | ||
collision_check_objects_after_approval.clear(); | ||
filtered_objects.current_lane.clear(); | ||
filtered_objects.target_lane.clear(); | ||
filtered_objects.other_lane.clear(); | ||
collision_check_object_debug_lifetime = 0.0; | ||
} | ||
}; | ||
} // namespace behavior_path_planner::data::lane_change | ||
|
||
#endif // BEHAVIOR_PATH_LANE_CHANGE_MODULE__UTILS__DEBUG_STRUCTS_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
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