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.
Merge pull request #17 from autowarefoundation/main
[pull] main from autowarefoundation:main
- Loading branch information
Showing
101 changed files
with
1,481 additions
and
697 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
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
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
26 changes: 26 additions & 0 deletions
26
planning/behavior_path_avoidance_by_lane_change_module/CMakeLists.txt
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,26 @@ | ||
cmake_minimum_required(VERSION 3.14) | ||
project(behavior_path_avoidance_by_lane_change_module) | ||
|
||
find_package(autoware_cmake REQUIRED) | ||
autoware_package() | ||
pluginlib_export_plugin_description_file(behavior_path_planner plugins.xml) | ||
|
||
ament_auto_add_library(${PROJECT_NAME} SHARED | ||
src/scene.cpp | ||
src/manager.cpp | ||
src/interface.cpp | ||
) | ||
|
||
if(BUILD_TESTING) | ||
ament_add_ros_isolated_gmock(test_${PROJECT_NAME} | ||
test/test_behavior_path_planner_node_interface.cpp | ||
) | ||
|
||
target_link_libraries(test_${PROJECT_NAME} | ||
${PROJECT_NAME} | ||
) | ||
|
||
target_include_directories(test_${PROJECT_NAME} PRIVATE src) | ||
endif() | ||
|
||
ament_auto_package(INSTALL_TO_SHARE config) |
File renamed without changes.
33 changes: 33 additions & 0 deletions
33
...lane_change_module/include/behavior_path_avoidance_by_lane_change_module/data_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,33 @@ | ||
// 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 BEHAVIOR_PATH_AVOIDANCE_BY_LANE_CHANGE_MODULE__DATA_STRUCTS_HPP_ | ||
#define BEHAVIOR_PATH_AVOIDANCE_BY_LANE_CHANGE_MODULE__DATA_STRUCTS_HPP_ | ||
|
||
#include "behavior_path_avoidance_module/data_structs.hpp" | ||
|
||
#include <vector> | ||
|
||
namespace behavior_path_planner | ||
{ | ||
struct AvoidanceByLCParameters : public AvoidanceParameters | ||
{ | ||
// execute only when the target object longitudinal distance is larger than this param. | ||
double execute_object_longitudinal_margin{0.0}; | ||
|
||
// execute only when lane change end point is before the object. | ||
bool execute_only_when_lane_change_finish_before_object{false}; | ||
}; | ||
} // namespace behavior_path_planner | ||
|
||
#endif // BEHAVIOR_PATH_AVOIDANCE_BY_LANE_CHANGE_MODULE__DATA_STRUCTS_HPP_ |
48 changes: 48 additions & 0 deletions
48
...by_lane_change_module/include/behavior_path_avoidance_by_lane_change_module/interface.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,48 @@ | ||
// 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_AVOIDANCE_BY_LANE_CHANGE_MODULE__INTERFACE_HPP_ | ||
#define BEHAVIOR_PATH_AVOIDANCE_BY_LANE_CHANGE_MODULE__INTERFACE_HPP_ | ||
|
||
#include "behavior_path_avoidance_by_lane_change_module/data_structs.hpp" | ||
#include "behavior_path_avoidance_by_lane_change_module/scene.hpp" | ||
#include "behavior_path_planner/scene_module/lane_change/interface.hpp" | ||
|
||
#include <rclcpp/rclcpp.hpp> | ||
|
||
#include <memory> | ||
#include <string> | ||
#include <unordered_map> | ||
|
||
namespace behavior_path_planner | ||
{ | ||
class AvoidanceByLaneChangeInterface : public LaneChangeInterface | ||
{ | ||
public: | ||
AvoidanceByLaneChangeInterface( | ||
const std::string & name, rclcpp::Node & node, | ||
const std::shared_ptr<LaneChangeParameters> & parameters, | ||
const std::shared_ptr<AvoidanceByLCParameters> & avoidance_by_lane_change_parameters, | ||
const std::unordered_map<std::string, std::shared_ptr<RTCInterface>> & rtc_interface_ptr_map, | ||
std::unordered_map<std::string, std::shared_ptr<ObjectsOfInterestMarkerInterface>> & | ||
objects_of_interest_marker_interface_ptr_map); | ||
|
||
bool isExecutionRequested() const override; | ||
|
||
protected: | ||
void updateRTCStatus(const double start_distance, const double finish_distance) override; | ||
}; | ||
} // namespace behavior_path_planner | ||
|
||
#endif // BEHAVIOR_PATH_AVOIDANCE_BY_LANE_CHANGE_MODULE__INTERFACE_HPP_ |
Oops, something went wrong.