forked from autowarefoundation/autoware.universe
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(start_planner): separate start planner parameters and debug …
…data structure (autowarefoundation#6101) * Add data_structs.hpp and update include paths * Refactor start planner debug data structure * Update debug_data variable name in StartPlannerModule Signed-off-by: kyoichi-sugahara <[email protected]> --------- Signed-off-by: kyoichi-sugahara <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
8dbde9d
commit 9b03b23
Showing
7 changed files
with
118 additions
and
35 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
39 changes: 39 additions & 0 deletions
39
...g/behavior_path_start_planner_module/include/behavior_path_start_planner_module/debug.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,39 @@ | ||
// Copyright 2023 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_START_PLANNER_MODULE__DEBUG_HPP_ | ||
#define BEHAVIOR_PATH_START_PLANNER_MODULE__DEBUG_HPP_ | ||
|
||
#include "behavior_path_start_planner_module/data_structs.hpp" | ||
|
||
#include <string> | ||
#include <vector> | ||
|
||
namespace behavior_path_planner | ||
{ | ||
using behavior_path_planner::StartPlannerDebugData; | ||
|
||
void updateSafetyCheckDebugData( | ||
StartPlannerDebugData & data, const PredictedObjects & filtered_objects, | ||
const TargetObjectsOnLane & target_objects_on_lane, | ||
const std::vector<PoseWithVelocityStamped> & ego_predicted_path) | ||
{ | ||
data.filtered_objects = filtered_objects; | ||
data.target_objects_on_lane = target_objects_on_lane; | ||
data.ego_predicted_path = ego_predicted_path; | ||
} | ||
|
||
} // namespace behavior_path_planner | ||
|
||
#endif // BEHAVIOR_PATH_START_PLANNER_MODULE__DEBUG_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// Copyright 2023 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. | ||
|
||
#include "behavior_path_start_planner_module/debug.hpp" | ||
|
||
namespace behavior_path_planner | ||
{ | ||
|
||
void updateSafetyCheckDebugData( | ||
StartPlannerDebugData & data, const PredictedObjects & filtered_objects, | ||
const TargetObjectsOnLane & target_objects_on_lane, | ||
const std::vector<PoseWithVelocityStamped> & ego_predicted_path) | ||
{ | ||
data.filtered_objects = filtered_objects; | ||
data.target_objects_on_lane = target_objects_on_lane; | ||
data.ego_predicted_path = ego_predicted_path; | ||
} | ||
|
||
} // namespace behavior_path_planner |
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