Skip to content

Commit 8568707

Browse files
committed
fix
Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
1 parent c6b78a7 commit 8568707

File tree

5 files changed

+10
-12
lines changed

5 files changed

+10
-12
lines changed

planning/behavior_velocity_planner/autoware_behavior_velocity_detection_area_module/package.xml

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
<buildtool_depend>eigen3_cmake_module</buildtool_depend>
1919

2020
<depend>autoware_behavior_velocity_planner_common</depend>
21-
<depend>autoware_behavior_velocity_rtc_interface</depend>
2221
<depend>autoware_lanelet2_extension</depend>
2322
<depend>autoware_motion_utils</depend>
2423
<depend>autoware_planning_msgs</depend>

planning/behavior_velocity_planner/autoware_behavior_velocity_detection_area_module/src/manager.cpp

+4-5
Original file line numberDiff line numberDiff line change
@@ -69,17 +69,16 @@ void DetectionAreaModuleManager::launchNewModules(
6969
}
7070
}
7171

72-
std::function<bool(const std::shared_ptr<SceneModuleInterfaceWithRTC> &)>
72+
std::function<bool(const std::shared_ptr<SceneModuleInterface> &)>
7373
DetectionAreaModuleManager::getModuleExpiredFunction(
7474
const tier4_planning_msgs::msg::PathWithLaneId & path)
7575
{
7676
const auto detection_area_id_set = planning_utils::getRegElemIdSetOnPath<DetectionArea>(
7777
path, planner_data_->route_handler_->getLaneletMapPtr(), planner_data_->current_odometry->pose);
7878

79-
return
80-
[detection_area_id_set](const std::shared_ptr<SceneModuleInterfaceWithRTC> & scene_module) {
81-
return detection_area_id_set.count(scene_module->getModuleId()) == 0;
82-
};
79+
return [detection_area_id_set](const std::shared_ptr<SceneModuleInterface> & scene_module) {
80+
return detection_area_id_set.count(scene_module->getModuleId()) == 0;
81+
};
8382
}
8483

8584
} // namespace autoware::behavior_velocity_planner

planning/behavior_velocity_planner/autoware_behavior_velocity_detection_area_module/src/manager.hpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
#include <autoware/behavior_velocity_planner_common/plugin_interface.hpp>
2121
#include <autoware/behavior_velocity_planner_common/plugin_wrapper.hpp>
22-
#include <autoware/behavior_velocity_rtc_interface/scene_module_interface_with_rtc.hpp>
22+
#include <autoware/behavior_velocity_planner_common/scene_module_interface.hpp>
2323
#include <rclcpp/rclcpp.hpp>
2424

2525
#include <tier4_planning_msgs/msg/path_with_lane_id.hpp>
@@ -41,8 +41,8 @@ class DetectionAreaModuleManager : public SceneModuleManagerInterface<>
4141

4242
void launchNewModules(const tier4_planning_msgs::msg::PathWithLaneId & path) override;
4343

44-
std::function<bool(const std::shared_ptr<SceneModuleInterfaceWithRTC> &)>
45-
getModuleExpiredFunction(const tier4_planning_msgs::msg::PathWithLaneId & path) override;
44+
std::function<bool(const std::shared_ptr<SceneModuleInterface> &)> getModuleExpiredFunction(
45+
const tier4_planning_msgs::msg::PathWithLaneId & path) override;
4646
};
4747

4848
class DetectionAreaModulePlugin : public PluginWrapper<DetectionAreaModuleManager>

planning/behavior_velocity_planner/autoware_behavior_velocity_detection_area_module/src/scene.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ DetectionAreaModule::DetectionAreaModule(
3737
const lanelet::autoware::DetectionArea & detection_area_reg_elem,
3838
const PlannerParam & planner_param, const rclcpp::Logger & logger,
3939
const rclcpp::Clock::SharedPtr clock)
40-
: SceneModuleInterfaceWithRTC(module_id, logger, clock),
40+
: SceneModuleInterface(module_id, logger, clock),
4141
lane_id_(lane_id),
4242
detection_area_reg_elem_(detection_area_reg_elem),
4343
state_(State::GO),

planning/behavior_velocity_planner/autoware_behavior_velocity_detection_area_module/src/scene.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323

2424
#define EIGEN_MPL2_ONLY
2525
#include <Eigen/Core>
26+
#include <autoware/behavior_velocity_planner_common/scene_module_interface.hpp>
2627
#include <autoware/behavior_velocity_planner_common/utilization/boost_geometry_helper.hpp>
27-
#include <autoware/behavior_velocity_rtc_interface/scene_module_interface_with_rtc.hpp>
2828
#include <autoware_lanelet2_extension/regulatory_elements/detection_area.hpp>
2929
#include <rclcpp/rclcpp.hpp>
3030

@@ -38,7 +38,7 @@ using PathIndexWithPoint2d = std::pair<size_t, Point2d>; // front
3838
using PathIndexWithOffset = std::pair<size_t, double>; // front index, offset
3939
using tier4_planning_msgs::msg::PathWithLaneId;
4040

41-
class DetectionAreaModule : public SceneModuleInterfaceWithRTC
41+
class DetectionAreaModule : public SceneModuleInterface
4242
{
4343
public:
4444
enum class State { GO, STOP };

0 commit comments

Comments
 (0)