diff --git a/planning/behavior_velocity_blind_spot_module/CMakeLists.txt b/planning/behavior_velocity_blind_spot_module/CMakeLists.txt
new file mode 100644
index 0000000000000..72c9d7ce99a40
--- /dev/null
+++ b/planning/behavior_velocity_blind_spot_module/CMakeLists.txt
@@ -0,0 +1,22 @@
+cmake_minimum_required(VERSION 3.14)
+project(behavior_velocity_blind_spot_module)
+
+find_package(autoware_cmake REQUIRED)
+autoware_package()
+pluginlib_export_plugin_description_file(behavior_velocity_planner plugins.xml)
+
+find_package(PCL REQUIRED)
+
+include_directories(
+ include
+ SYSTEM
+ ${PCL_INCLUDE_DIRS}
+)
+
+ament_auto_add_library(${PROJECT_NAME} SHARED
+ src/debug.cpp
+ src/manager.cpp
+ src/scene.cpp
+)
+
+ament_auto_package()
diff --git a/planning/behavior_velocity_blind_spot_module/package.xml b/planning/behavior_velocity_blind_spot_module/package.xml
new file mode 100644
index 0000000000000..9485f165849f2
--- /dev/null
+++ b/planning/behavior_velocity_blind_spot_module/package.xml
@@ -0,0 +1,40 @@
+
+
+
+ behavior_velocity_blind_spot_module
+ 0.1.0
+ The behavior_velocity_blind_spot_module package
+
+ Mamoru Sobue
+ Tomoya Kimura
+ Shumpei Wakabayashi
+
+ Apache License 2.0
+
+ Mamoru Sobue
+
+ ament_cmake_auto
+ autoware_cmake
+
+ autoware_auto_perception_msgs
+ autoware_auto_planning_msgs
+ behavior_velocity_planner_common
+ geometry_msgs
+ lanelet2_extension
+ libboost-dev
+ motion_utils
+ pluginlib
+ rclcpp
+ route_handler
+ tf2
+ tier4_autoware_utils
+ tier4_planning_msgs
+ visualization_msgs
+
+ ament_lint_auto
+ autoware_lint_common
+
+
+ ament_cmake
+
+
diff --git a/planning/behavior_velocity_blind_spot_module/plugins.xml b/planning/behavior_velocity_blind_spot_module/plugins.xml
new file mode 100644
index 0000000000000..7dda59ea2fdbe
--- /dev/null
+++ b/planning/behavior_velocity_blind_spot_module/plugins.xml
@@ -0,0 +1,3 @@
+
+
+
diff --git a/planning/behavior_velocity_planner/src/scene_module/blind_spot/debug.cpp b/planning/behavior_velocity_blind_spot_module/src/debug.cpp
similarity index 97%
rename from planning/behavior_velocity_planner/src/scene_module/blind_spot/debug.cpp
rename to planning/behavior_velocity_blind_spot_module/src/debug.cpp
index a8277c52474c6..32c91d2ac47ed 100644
--- a/planning/behavior_velocity_planner/src/scene_module/blind_spot/debug.cpp
+++ b/planning/behavior_velocity_blind_spot_module/src/debug.cpp
@@ -12,10 +12,11 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+#include "scene.hpp"
+
+#include
+#include
#include
-#include
-#include
-#include
#include
diff --git a/planning/behavior_velocity_planner/src/scene_module/blind_spot/manager.cpp b/planning/behavior_velocity_blind_spot_module/src/manager.cpp
similarity index 89%
rename from planning/behavior_velocity_planner/src/scene_module/blind_spot/manager.cpp
rename to planning/behavior_velocity_blind_spot_module/src/manager.cpp
index a91d8ea32212c..14fc5ea2fa552 100644
--- a/planning/behavior_velocity_planner/src/scene_module/blind_spot/manager.cpp
+++ b/planning/behavior_velocity_blind_spot_module/src/manager.cpp
@@ -12,12 +12,14 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#include
-#include
-#include
+#include "manager.hpp"
+
+#include
+#include
#include
+#include
#include
#include
#include
@@ -82,3 +84,7 @@ BlindSpotModuleManager::getModuleExpiredFunction(
}
} // namespace behavior_velocity_planner
+
+#include
+PLUGINLIB_EXPORT_CLASS(
+ behavior_velocity_planner::BlindSpotModulePlugin, behavior_velocity_planner::PluginInterface)
diff --git a/planning/behavior_velocity_planner/include/scene_module/blind_spot/manager.hpp b/planning/behavior_velocity_blind_spot_module/src/manager.hpp
similarity index 78%
rename from planning/behavior_velocity_planner/include/scene_module/blind_spot/manager.hpp
rename to planning/behavior_velocity_blind_spot_module/src/manager.hpp
index dccb2616edd71..9aeaa0abfc4b7 100644
--- a/planning/behavior_velocity_planner/include/scene_module/blind_spot/manager.hpp
+++ b/planning/behavior_velocity_blind_spot_module/src/manager.hpp
@@ -12,12 +12,15 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#ifndef SCENE_MODULE__BLIND_SPOT__MANAGER_HPP_
-#define SCENE_MODULE__BLIND_SPOT__MANAGER_HPP_
+#ifndef MANAGER_HPP_
+#define MANAGER_HPP_
+#include "scene.hpp"
+
+#include
+#include
+#include
#include
-#include
-#include
#include
@@ -41,6 +44,11 @@ class BlindSpotModuleManager : public SceneModuleManagerInterfaceWithRTC
std::function &)> getModuleExpiredFunction(
const autoware_auto_planning_msgs::msg::PathWithLaneId & path) override;
};
+
+class BlindSpotModulePlugin : public PluginWrapper
+{
+};
+
} // namespace behavior_velocity_planner
-#endif // SCENE_MODULE__BLIND_SPOT__MANAGER_HPP_
+#endif // MANAGER_HPP_
diff --git a/planning/behavior_velocity_planner/src/scene_module/blind_spot/scene.cpp b/planning/behavior_velocity_blind_spot_module/src/scene.cpp
similarity index 99%
rename from planning/behavior_velocity_planner/src/scene_module/blind_spot/scene.cpp
rename to planning/behavior_velocity_blind_spot_module/src/scene.cpp
index 1e8795036bd0c..440c360e712a3 100644
--- a/planning/behavior_velocity_planner/src/scene_module/blind_spot/scene.cpp
+++ b/planning/behavior_velocity_blind_spot_module/src/scene.cpp
@@ -12,14 +12,15 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+#include "scene.hpp"
+
+#include
+#include
+#include
#include
#include
#include
-#include
#include
-#include
-#include
-#include
#include
#include
@@ -30,6 +31,7 @@
#include
#include
+#include
#include
#include
#include
diff --git a/planning/behavior_velocity_planner/include/scene_module/blind_spot/scene.hpp b/planning/behavior_velocity_blind_spot_module/src/scene.hpp
similarity index 96%
rename from planning/behavior_velocity_planner/include/scene_module/blind_spot/scene.hpp
rename to planning/behavior_velocity_blind_spot_module/src/scene.hpp
index 13810f503e42a..626879d3d3779 100644
--- a/planning/behavior_velocity_planner/include/scene_module/blind_spot/scene.hpp
+++ b/planning/behavior_velocity_blind_spot_module/src/scene.hpp
@@ -12,13 +12,13 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#ifndef SCENE_MODULE__BLIND_SPOT__SCENE_HPP_
-#define SCENE_MODULE__BLIND_SPOT__SCENE_HPP_
+#ifndef SCENE_HPP_
+#define SCENE_HPP_
+#include
+#include
+#include
#include
-#include
-#include
-#include
#include
#include
@@ -229,4 +229,4 @@ class BlindSpotModule : public SceneModuleInterface
};
} // namespace behavior_velocity_planner
-#endif // SCENE_MODULE__BLIND_SPOT__SCENE_HPP_
+#endif // SCENE_HPP_
diff --git a/planning/behavior_velocity_crosswalk_module/CMakeLists.txt b/planning/behavior_velocity_crosswalk_module/CMakeLists.txt
new file mode 100644
index 0000000000000..d11c7263943af
--- /dev/null
+++ b/planning/behavior_velocity_crosswalk_module/CMakeLists.txt
@@ -0,0 +1,24 @@
+cmake_minimum_required(VERSION 3.14)
+project(behavior_velocity_crosswalk_module)
+
+find_package(autoware_cmake REQUIRED)
+autoware_package()
+pluginlib_export_plugin_description_file(behavior_velocity_planner plugins.xml)
+
+find_package(PCL REQUIRED)
+
+include_directories(
+ include
+ SYSTEM
+ ${PCL_INCLUDE_DIRS}
+)
+
+ament_auto_add_library(${PROJECT_NAME} SHARED
+ src/debug.cpp
+ src/manager.cpp
+ src/scene_crosswalk.cpp
+ src/scene_walkway.cpp
+ src/util.cpp
+)
+
+ament_auto_package()
diff --git a/planning/behavior_velocity_crosswalk_module/package.xml b/planning/behavior_velocity_crosswalk_module/package.xml
new file mode 100644
index 0000000000000..e9b38f86a00ee
--- /dev/null
+++ b/planning/behavior_velocity_crosswalk_module/package.xml
@@ -0,0 +1,45 @@
+
+
+
+ behavior_velocity_crosswalk_module
+ 0.1.0
+ The behavior_velocity_crosswalk_module package
+
+ Satoshi Ota
+ Tomoya Kimura
+ Shumpei Wakabayashi
+
+ Apache License 2.0
+
+ Satoshi Ota
+
+ ament_cmake_auto
+ autoware_cmake
+ eigen3_cmake_module
+
+ autoware_auto_perception_msgs
+ autoware_auto_planning_msgs
+ autoware_auto_tf2
+ behavior_velocity_planner_common
+ eigen
+ geometry_msgs
+ lanelet2_extension
+ libboost-dev
+ motion_utils
+ pcl_conversions
+ pluginlib
+ rclcpp
+ route_handler
+ sensor_msgs
+ tier4_api_msgs
+ tier4_autoware_utils
+ vehicle_info_util
+ visualization_msgs
+
+ ament_lint_auto
+ autoware_lint_common
+
+
+ ament_cmake
+
+
diff --git a/planning/behavior_velocity_crosswalk_module/plugins.xml b/planning/behavior_velocity_crosswalk_module/plugins.xml
new file mode 100644
index 0000000000000..6ab5b00758f29
--- /dev/null
+++ b/planning/behavior_velocity_crosswalk_module/plugins.xml
@@ -0,0 +1,4 @@
+
+
+
+
diff --git a/planning/behavior_velocity_planner/src/scene_module/crosswalk/debug.cpp b/planning/behavior_velocity_crosswalk_module/src/debug.cpp
similarity index 98%
rename from planning/behavior_velocity_planner/src/scene_module/crosswalk/debug.cpp
rename to planning/behavior_velocity_crosswalk_module/src/debug.cpp
index c6c7b378f2ac7..0f902cdcf0848 100644
--- a/planning/behavior_velocity_planner/src/scene_module/crosswalk/debug.cpp
+++ b/planning/behavior_velocity_crosswalk_module/src/debug.cpp
@@ -12,11 +12,12 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+#include "scene_crosswalk.hpp"
+#include "scene_walkway.hpp"
+
+#include
#include
-#include
-#include
#include
-#include
#include
diff --git a/planning/behavior_velocity_planner/src/scene_module/crosswalk/manager.cpp b/planning/behavior_velocity_crosswalk_module/src/manager.cpp
similarity index 95%
rename from planning/behavior_velocity_planner/src/scene_module/crosswalk/manager.cpp
rename to planning/behavior_velocity_crosswalk_module/src/manager.cpp
index b60d0e87b6852..37d30e4e386bf 100644
--- a/planning/behavior_velocity_planner/src/scene_module/crosswalk/manager.cpp
+++ b/planning/behavior_velocity_crosswalk_module/src/manager.cpp
@@ -12,9 +12,11 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#include
-#include
+#include "manager.hpp"
+#include
+
+#include
#include
#include
#include
@@ -195,3 +197,9 @@ WalkwayModuleManager::getModuleExpiredFunction(
};
}
} // namespace behavior_velocity_planner
+
+#include
+PLUGINLIB_EXPORT_CLASS(
+ behavior_velocity_planner::CrosswalkModulePlugin, behavior_velocity_planner::PluginInterface)
+PLUGINLIB_EXPORT_CLASS(
+ behavior_velocity_planner::WalkwayModulePlugin, behavior_velocity_planner::PluginInterface)
diff --git a/planning/behavior_velocity_planner/include/scene_module/crosswalk/manager.hpp b/planning/behavior_velocity_crosswalk_module/src/manager.hpp
similarity index 80%
rename from planning/behavior_velocity_planner/include/scene_module/crosswalk/manager.hpp
rename to planning/behavior_velocity_crosswalk_module/src/manager.hpp
index 2c3f30cac048e..434c7eed9f065 100644
--- a/planning/behavior_velocity_planner/include/scene_module/crosswalk/manager.hpp
+++ b/planning/behavior_velocity_crosswalk_module/src/manager.hpp
@@ -12,13 +12,16 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#ifndef SCENE_MODULE__CROSSWALK__MANAGER_HPP_
-#define SCENE_MODULE__CROSSWALK__MANAGER_HPP_
+#ifndef MANAGER_HPP_
+#define MANAGER_HPP_
+#include "scene_crosswalk.hpp"
+#include "scene_walkway.hpp"
+
+#include
+#include
+#include
#include
-#include
-#include
-#include
#include
#include
@@ -61,6 +64,15 @@ class WalkwayModuleManager : public SceneModuleManagerInterface
std::function &)> getModuleExpiredFunction(
const autoware_auto_planning_msgs::msg::PathWithLaneId & path) override;
};
+
+class CrosswalkModulePlugin : public PluginWrapper
+{
+};
+
+class WalkwayModulePlugin : public PluginWrapper
+{
+};
+
} // namespace behavior_velocity_planner
-#endif // SCENE_MODULE__CROSSWALK__MANAGER_HPP_
+#endif // MANAGER_HPP_
diff --git a/planning/behavior_velocity_planner/src/scene_module/crosswalk/scene_crosswalk.cpp b/planning/behavior_velocity_crosswalk_module/src/scene_crosswalk.cpp
similarity index 99%
rename from planning/behavior_velocity_planner/src/scene_module/crosswalk/scene_crosswalk.cpp
rename to planning/behavior_velocity_crosswalk_module/src/scene_crosswalk.cpp
index a8d2391b4228d..6b2f15fe15719 100644
--- a/planning/behavior_velocity_planner/src/scene_module/crosswalk/scene_crosswalk.cpp
+++ b/planning/behavior_velocity_crosswalk_module/src/scene_crosswalk.cpp
@@ -12,14 +12,18 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+#include "scene_crosswalk.hpp"
+
#include
+#include
+#include
#include
-#include
#include
-#include
-#include
+#include
#include
+#include
+#include
#include
namespace behavior_velocity_planner
diff --git a/planning/behavior_velocity_planner/include/scene_module/crosswalk/scene_crosswalk.hpp b/planning/behavior_velocity_crosswalk_module/src/scene_crosswalk.hpp
similarity index 95%
rename from planning/behavior_velocity_planner/include/scene_module/crosswalk/scene_crosswalk.hpp
rename to planning/behavior_velocity_crosswalk_module/src/scene_crosswalk.hpp
index 2de34959ab5cb..72c03f62b207c 100644
--- a/planning/behavior_velocity_planner/include/scene_module/crosswalk/scene_crosswalk.hpp
+++ b/planning/behavior_velocity_crosswalk_module/src/scene_crosswalk.hpp
@@ -12,14 +12,15 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#ifndef SCENE_MODULE__CROSSWALK__SCENE_CROSSWALK_HPP_
-#define SCENE_MODULE__CROSSWALK__SCENE_CROSSWALK_HPP_
+#ifndef SCENE_CROSSWALK_HPP_
+#define SCENE_CROSSWALK_HPP_
+#include "util.hpp"
+
+#include
#include
#include
#include
-#include
-#include
#include
#include
@@ -178,4 +179,4 @@ class CrosswalkModule : public SceneModuleInterface
};
} // namespace behavior_velocity_planner
-#endif // SCENE_MODULE__CROSSWALK__SCENE_CROSSWALK_HPP_
+#endif // SCENE_CROSSWALK_HPP_
diff --git a/planning/behavior_velocity_planner/src/scene_module/crosswalk/scene_walkway.cpp b/planning/behavior_velocity_crosswalk_module/src/scene_walkway.cpp
similarity index 98%
rename from planning/behavior_velocity_planner/src/scene_module/crosswalk/scene_walkway.cpp
rename to planning/behavior_velocity_crosswalk_module/src/scene_walkway.cpp
index 7b968552ce654..ece8531e81f10 100644
--- a/planning/behavior_velocity_planner/src/scene_module/crosswalk/scene_walkway.cpp
+++ b/planning/behavior_velocity_crosswalk_module/src/scene_walkway.cpp
@@ -12,9 +12,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+#include "scene_walkway.hpp"
+
+#include
#include
-#include
-#include
#include
diff --git a/planning/behavior_velocity_planner/include/scene_module/crosswalk/scene_walkway.hpp b/planning/behavior_velocity_crosswalk_module/src/scene_walkway.hpp
similarity index 88%
rename from planning/behavior_velocity_planner/include/scene_module/crosswalk/scene_walkway.hpp
rename to planning/behavior_velocity_crosswalk_module/src/scene_walkway.hpp
index ae06e478b9cfa..cb7dd9f47d303 100644
--- a/planning/behavior_velocity_planner/include/scene_module/crosswalk/scene_walkway.hpp
+++ b/planning/behavior_velocity_crosswalk_module/src/scene_walkway.hpp
@@ -12,14 +12,15 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#ifndef SCENE_MODULE__CROSSWALK__SCENE_WALKWAY_HPP_
-#define SCENE_MODULE__CROSSWALK__SCENE_WALKWAY_HPP_
+#ifndef SCENE_WALKWAY_HPP_
+#define SCENE_WALKWAY_HPP_
+#include "scene_crosswalk.hpp"
+#include "util.hpp"
+
+#include
#include
#include
-#include
-#include
-#include
#include
#include
@@ -78,4 +79,4 @@ class WalkwayModule : public SceneModuleInterface
};
} // namespace behavior_velocity_planner
-#endif // SCENE_MODULE__CROSSWALK__SCENE_WALKWAY_HPP_
+#endif // SCENE_WALKWAY_HPP_
diff --git a/planning/behavior_velocity_planner/src/scene_module/crosswalk/util.cpp b/planning/behavior_velocity_crosswalk_module/src/util.cpp
similarity index 98%
rename from planning/behavior_velocity_planner/src/scene_module/crosswalk/util.cpp
rename to planning/behavior_velocity_crosswalk_module/src/util.cpp
index 385552ba75206..9a32f96838a92 100644
--- a/planning/behavior_velocity_planner/src/scene_module/crosswalk/util.cpp
+++ b/planning/behavior_velocity_crosswalk_module/src/util.cpp
@@ -12,9 +12,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#include
+#include "util.hpp"
+
+#include
#include
-#include
#include
diff --git a/planning/behavior_velocity_planner/include/scene_module/crosswalk/util.hpp b/planning/behavior_velocity_crosswalk_module/src/util.hpp
similarity index 93%
rename from planning/behavior_velocity_planner/include/scene_module/crosswalk/util.hpp
rename to planning/behavior_velocity_crosswalk_module/src/util.hpp
index c99a815e577ee..56c97b4d9f91a 100644
--- a/planning/behavior_velocity_planner/include/scene_module/crosswalk/util.hpp
+++ b/planning/behavior_velocity_crosswalk_module/src/util.hpp
@@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#ifndef SCENE_MODULE__CROSSWALK__UTIL_HPP_
-#define SCENE_MODULE__CROSSWALK__UTIL_HPP_
+#ifndef UTIL_HPP_
+#define UTIL_HPP_
#include
#include
@@ -27,10 +27,9 @@
#include
#define EIGEN_MPL2_ONLY
-#include "behavior_velocity_planner/planner_data.hpp"
-
#include
#include
+#include
#include
@@ -86,4 +85,4 @@ lanelet::Optional getStopLineFromMap(
const std::string & attribute_name);
} // namespace behavior_velocity_planner
-#endif // SCENE_MODULE__CROSSWALK__UTIL_HPP_
+#endif // UTIL_HPP_
diff --git a/planning/behavior_velocity_detection_area_module/CMakeLists.txt b/planning/behavior_velocity_detection_area_module/CMakeLists.txt
new file mode 100644
index 0000000000000..bbc2ec69a8e57
--- /dev/null
+++ b/planning/behavior_velocity_detection_area_module/CMakeLists.txt
@@ -0,0 +1,22 @@
+cmake_minimum_required(VERSION 3.14)
+project(behavior_velocity_detection_area_module)
+
+find_package(autoware_cmake REQUIRED)
+autoware_package()
+pluginlib_export_plugin_description_file(behavior_velocity_planner plugins.xml)
+
+find_package(PCL REQUIRED)
+
+include_directories(
+ include
+ SYSTEM
+ ${PCL_INCLUDE_DIRS}
+)
+
+ament_auto_add_library(${PROJECT_NAME} SHARED
+ src/debug.cpp
+ src/manager.cpp
+ src/scene.cpp
+)
+
+ament_auto_package()
diff --git a/planning/behavior_velocity_detection_area_module/package.xml b/planning/behavior_velocity_detection_area_module/package.xml
new file mode 100644
index 0000000000000..66b8a62e83a2c
--- /dev/null
+++ b/planning/behavior_velocity_detection_area_module/package.xml
@@ -0,0 +1,42 @@
+
+
+
+ behavior_velocity_detection_area_module
+ 0.1.0
+ The behavior_velocity_detection_area_module package
+
+ Kyoichi Sugahara
+ Tomoya Kimura
+ Shumpei Wakabayashi
+
+ Apache License 2.0
+
+ Kyoichi Sugahara
+
+ ament_cmake_auto
+ autoware_cmake
+ eigen3_cmake_module
+
+ autoware_auto_planning_msgs
+ behavior_velocity_planner_common
+ eigen
+ geometry_msgs
+ lanelet2_extension
+ libboost-dev
+ motion_utils
+ pluginlib
+ rclcpp
+ route_handler
+ tf2
+ tf2_eigen
+ tf2_geometry_msgs
+ tier4_autoware_utils
+ visualization_msgs
+
+ ament_lint_auto
+ autoware_lint_common
+
+
+ ament_cmake
+
+
diff --git a/planning/behavior_velocity_detection_area_module/plugins.xml b/planning/behavior_velocity_detection_area_module/plugins.xml
new file mode 100644
index 0000000000000..73497c8bfdf2a
--- /dev/null
+++ b/planning/behavior_velocity_detection_area_module/plugins.xml
@@ -0,0 +1,3 @@
+
+
+
diff --git a/planning/behavior_velocity_planner/src/scene_module/detection_area/debug.cpp b/planning/behavior_velocity_detection_area_module/src/debug.cpp
similarity index 97%
rename from planning/behavior_velocity_planner/src/scene_module/detection_area/debug.cpp
rename to planning/behavior_velocity_detection_area_module/src/debug.cpp
index 25da5766feff0..6316de449a44c 100644
--- a/planning/behavior_velocity_planner/src/scene_module/detection_area/debug.cpp
+++ b/planning/behavior_velocity_detection_area_module/src/debug.cpp
@@ -12,10 +12,11 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+#include "scene.hpp"
+
+#include
+#include
#include
-#include
-#include
-#include
#ifdef ROS_DISTRO_GALACTIC
#include
diff --git a/planning/behavior_velocity_planner/src/scene_module/detection_area/manager.cpp b/planning/behavior_velocity_detection_area_module/src/manager.cpp
similarity index 94%
rename from planning/behavior_velocity_planner/src/scene_module/detection_area/manager.cpp
rename to planning/behavior_velocity_detection_area_module/src/manager.cpp
index e09f46b627eeb..bde64c48f286d 100644
--- a/planning/behavior_velocity_planner/src/scene_module/detection_area/manager.cpp
+++ b/planning/behavior_velocity_detection_area_module/src/manager.cpp
@@ -12,11 +12,13 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+#include "manager.hpp"
+
#include
-#include
#include
+#include
#include
#include
#include
@@ -77,3 +79,7 @@ DetectionAreaModuleManager::getModuleExpiredFunction(
}
} // namespace behavior_velocity_planner
+
+#include
+PLUGINLIB_EXPORT_CLASS(
+ behavior_velocity_planner::DetectionAreaModulePlugin, behavior_velocity_planner::PluginInterface)
diff --git a/planning/behavior_velocity_planner/include/scene_module/detection_area/manager.hpp b/planning/behavior_velocity_detection_area_module/src/manager.hpp
similarity index 78%
rename from planning/behavior_velocity_planner/include/scene_module/detection_area/manager.hpp
rename to planning/behavior_velocity_detection_area_module/src/manager.hpp
index 0da425e208efe..10fca7182d09a 100644
--- a/planning/behavior_velocity_planner/include/scene_module/detection_area/manager.hpp
+++ b/planning/behavior_velocity_detection_area_module/src/manager.hpp
@@ -12,12 +12,15 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#ifndef SCENE_MODULE__DETECTION_AREA__MANAGER_HPP_
-#define SCENE_MODULE__DETECTION_AREA__MANAGER_HPP_
+#ifndef MANAGER_HPP_
+#define MANAGER_HPP_
+#include "scene.hpp"
+
+#include
+#include
+#include
#include
-#include
-#include
#include
@@ -41,6 +44,11 @@ class DetectionAreaModuleManager : public SceneModuleManagerInterfaceWithRTC
std::function &)> getModuleExpiredFunction(
const autoware_auto_planning_msgs::msg::PathWithLaneId & path) override;
};
+
+class DetectionAreaModulePlugin : public PluginWrapper
+{
+};
+
} // namespace behavior_velocity_planner
-#endif // SCENE_MODULE__DETECTION_AREA__MANAGER_HPP_
+#endif // MANAGER_HPP_
diff --git a/planning/behavior_velocity_planner/src/scene_module/detection_area/scene.cpp b/planning/behavior_velocity_detection_area_module/src/scene.cpp
similarity index 98%
rename from planning/behavior_velocity_planner/src/scene_module/detection_area/scene.cpp
rename to planning/behavior_velocity_detection_area_module/src/scene.cpp
index c50ac84d24a3d..bac0d58a5e916 100644
--- a/planning/behavior_velocity_planner/src/scene_module/detection_area/scene.cpp
+++ b/planning/behavior_velocity_detection_area_module/src/scene.cpp
@@ -12,11 +12,11 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#include "utilization/arc_lane_util.hpp"
+#include "scene.hpp"
+#include
+#include
#include
-#include
-#include
#ifdef ROS_DISTRO_GALACTIC
#include
diff --git a/planning/behavior_velocity_planner/include/scene_module/detection_area/scene.hpp b/planning/behavior_velocity_detection_area_module/src/scene.hpp
similarity index 92%
rename from planning/behavior_velocity_planner/include/scene_module/detection_area/scene.hpp
rename to planning/behavior_velocity_detection_area_module/src/scene.hpp
index 687fa92e920fc..75aa09dd41317 100644
--- a/planning/behavior_velocity_planner/include/scene_module/detection_area/scene.hpp
+++ b/planning/behavior_velocity_detection_area_module/src/scene.hpp
@@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#ifndef SCENE_MODULE__DETECTION_AREA__SCENE_HPP_
-#define SCENE_MODULE__DETECTION_AREA__SCENE_HPP_
+#ifndef SCENE_HPP_
+#define SCENE_HPP_
#include
@@ -23,10 +23,10 @@
#define EIGEN_MPL2_ONLY
#include
+#include
+#include
#include
#include
-#include
-#include
#include
#include
@@ -106,4 +106,4 @@ class DetectionAreaModule : public SceneModuleInterface
};
} // namespace behavior_velocity_planner
-#endif // SCENE_MODULE__DETECTION_AREA__SCENE_HPP_
+#endif // SCENE_HPP_
diff --git a/planning/behavior_velocity_intersection_module/CMakeLists.txt b/planning/behavior_velocity_intersection_module/CMakeLists.txt
new file mode 100644
index 0000000000000..9f0c5099d36e0
--- /dev/null
+++ b/planning/behavior_velocity_intersection_module/CMakeLists.txt
@@ -0,0 +1,24 @@
+cmake_minimum_required(VERSION 3.14)
+project(behavior_velocity_intersection_module)
+
+find_package(autoware_cmake REQUIRED)
+autoware_package()
+pluginlib_export_plugin_description_file(behavior_velocity_planner plugins.xml)
+
+find_package(PCL REQUIRED)
+
+include_directories(
+ include
+ SYSTEM
+ ${PCL_INCLUDE_DIRS}
+)
+
+ament_auto_add_library(${PROJECT_NAME} SHARED
+ src/debug.cpp
+ src/manager.cpp
+ src/scene_intersection.cpp
+ src/scene_merge_from_private_road.cpp
+ src/util.cpp
+)
+
+ament_auto_package()
diff --git a/planning/behavior_velocity_intersection_module/package.xml b/planning/behavior_velocity_intersection_module/package.xml
new file mode 100644
index 0000000000000..25df9f2385d74
--- /dev/null
+++ b/planning/behavior_velocity_intersection_module/package.xml
@@ -0,0 +1,53 @@
+
+
+
+ behavior_velocity_intersection_module
+ 0.1.0
+ The behavior_velocity_intersection_module package
+
+ Mamoru Sobue
+ Takayuki Murooka
+ Tomoya Kimura
+ Shumpei Wakabayashi
+
+ Apache License 2.0
+
+ Mamoru Sobue
+
+ ament_cmake_auto
+ autoware_cmake
+
+ autoware_auto_perception_msgs
+ autoware_auto_planning_msgs
+ behavior_velocity_planner_common
+ cv_bridge
+ geometry_msgs
+ grid_map_cv
+ grid_map_ros
+ interpolation
+ lanelet2_extension
+ libboost-dev
+ libopencv-dev
+ magic_enum
+ motion_utils
+ nav_msgs
+ pluginlib
+ rclcpp
+ route_handler
+ rtc_interface
+ tf2_geometry_msgs
+ tier4_api_msgs
+ tier4_autoware_utils
+ tier4_planning_msgs
+ vehicle_info_util
+ visualization_msgs
+
+ grid_map_rviz_plugin
+
+ ament_lint_auto
+ autoware_lint_common
+
+
+ ament_cmake
+
+
diff --git a/planning/behavior_velocity_intersection_module/plugins.xml b/planning/behavior_velocity_intersection_module/plugins.xml
new file mode 100644
index 0000000000000..206f0324231ec
--- /dev/null
+++ b/planning/behavior_velocity_intersection_module/plugins.xml
@@ -0,0 +1,4 @@
+
+
+
+
diff --git a/planning/behavior_velocity_planner/src/scene_module/intersection/debug.cpp b/planning/behavior_velocity_intersection_module/src/debug.cpp
similarity index 97%
rename from planning/behavior_velocity_planner/src/scene_module/intersection/debug.cpp
rename to planning/behavior_velocity_intersection_module/src/debug.cpp
index ed62e8c6e7350..bdfb75cf45da0 100644
--- a/planning/behavior_velocity_planner/src/scene_module/intersection/debug.cpp
+++ b/planning/behavior_velocity_intersection_module/src/debug.cpp
@@ -12,11 +12,12 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+#include "scene_intersection.hpp"
+#include "scene_merge_from_private_road.hpp"
+
+#include
+#include
#include
-#include
-#include
-#include
-#include
#include
#include
diff --git a/planning/behavior_velocity_planner/src/scene_module/intersection/manager.cpp b/planning/behavior_velocity_intersection_module/src/manager.cpp
similarity index 96%
rename from planning/behavior_velocity_planner/src/scene_module/intersection/manager.cpp
rename to planning/behavior_velocity_intersection_module/src/manager.cpp
index bbdd96ade5b4e..02293c5634342 100644
--- a/planning/behavior_velocity_planner/src/scene_module/intersection/manager.cpp
+++ b/planning/behavior_velocity_intersection_module/src/manager.cpp
@@ -12,16 +12,19 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+#include "manager.hpp"
+
+#include
+#include
#include
-#include
-#include
-#include
#include
+#include
#include
#include
#include
+#include
#include
namespace behavior_velocity_planner
@@ -358,3 +361,10 @@ bool MergeFromPrivateModuleManager::hasSameParentLaneletAndTurnDirectionWithRegi
}
} // namespace behavior_velocity_planner
+
+#include
+PLUGINLIB_EXPORT_CLASS(
+ behavior_velocity_planner::IntersectionModulePlugin, behavior_velocity_planner::PluginInterface)
+PLUGINLIB_EXPORT_CLASS(
+ behavior_velocity_planner::MergeFromPrivateModulePlugin,
+ behavior_velocity_planner::PluginInterface)
diff --git a/planning/behavior_velocity_planner/include/scene_module/intersection/manager.hpp b/planning/behavior_velocity_intersection_module/src/manager.hpp
similarity index 83%
rename from planning/behavior_velocity_planner/include/scene_module/intersection/manager.hpp
rename to planning/behavior_velocity_intersection_module/src/manager.hpp
index c55f7e7f3f58d..ff9302db0b6af 100644
--- a/planning/behavior_velocity_planner/include/scene_module/intersection/manager.hpp
+++ b/planning/behavior_velocity_intersection_module/src/manager.hpp
@@ -12,13 +12,16 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#ifndef SCENE_MODULE__INTERSECTION__MANAGER_HPP_
-#define SCENE_MODULE__INTERSECTION__MANAGER_HPP_
+#ifndef MANAGER_HPP_
+#define MANAGER_HPP_
+#include "scene_intersection.hpp"
+#include "scene_merge_from_private_road.hpp"
+
+#include
+#include
+#include
#include
-#include
-#include
-#include
#include
#include
@@ -74,6 +77,15 @@ class MergeFromPrivateModuleManager : public SceneModuleManagerInterface
bool hasSameParentLaneletAndTurnDirectionWithRegistered(const lanelet::ConstLanelet & lane) const;
};
+
+class IntersectionModulePlugin : public PluginWrapper
+{
+};
+
+class MergeFromPrivateModulePlugin : public PluginWrapper
+{
+};
+
} // namespace behavior_velocity_planner
-#endif // SCENE_MODULE__INTERSECTION__MANAGER_HPP_
+#endif // MANAGER_HPP_
diff --git a/planning/behavior_velocity_planner/src/scene_module/intersection/scene_intersection.cpp b/planning/behavior_velocity_intersection_module/src/scene_intersection.cpp
similarity index 99%
rename from planning/behavior_velocity_planner/src/scene_module/intersection/scene_intersection.cpp
rename to planning/behavior_velocity_intersection_module/src/scene_intersection.cpp
index 6d6233c3b16e6..9f6eee5829946 100644
--- a/planning/behavior_velocity_planner/src/scene_module/intersection/scene_intersection.cpp
+++ b/planning/behavior_velocity_intersection_module/src/scene_intersection.cpp
@@ -22,20 +22,23 @@
#include
// #include
// #include
+#include "scene_intersection.hpp"
+#include "util.hpp"
+
+#include
+#include
+#include
+#include
#include
#include
-#include
-#include
-#include
-#include
-#include
-#include
#include
#include
#include
+#include
#include
+#include
#include
namespace behavior_velocity_planner
diff --git a/planning/behavior_velocity_planner/include/scene_module/intersection/scene_intersection.hpp b/planning/behavior_velocity_intersection_module/src/scene_intersection.hpp
similarity index 97%
rename from planning/behavior_velocity_planner/include/scene_module/intersection/scene_intersection.hpp
rename to planning/behavior_velocity_intersection_module/src/scene_intersection.hpp
index a08a073bb5036..3f8253ab26157 100644
--- a/planning/behavior_velocity_planner/include/scene_module/intersection/scene_intersection.hpp
+++ b/planning/behavior_velocity_intersection_module/src/scene_intersection.hpp
@@ -12,17 +12,18 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#ifndef SCENE_MODULE__INTERSECTION__SCENE_INTERSECTION_HPP_
-#define SCENE_MODULE__INTERSECTION__SCENE_INTERSECTION_HPP_
+#ifndef SCENE_INTERSECTION_HPP_
+#define SCENE_INTERSECTION_HPP_
+#include "util_type.hpp"
+
+#include
+#include
+#include
#include
#include
#include
-#include
-#include
#include
-#include
-#include
#include
#include
@@ -332,4 +333,4 @@ class IntersectionModule : public SceneModuleInterface
};
} // namespace behavior_velocity_planner
-#endif // SCENE_MODULE__INTERSECTION__SCENE_INTERSECTION_HPP_
+#endif // SCENE_INTERSECTION_HPP_
diff --git a/planning/behavior_velocity_planner/src/scene_module/intersection/scene_merge_from_private_road.cpp b/planning/behavior_velocity_intersection_module/src/scene_merge_from_private_road.cpp
similarity index 95%
rename from planning/behavior_velocity_planner/src/scene_module/intersection/scene_merge_from_private_road.cpp
rename to planning/behavior_velocity_intersection_module/src/scene_merge_from_private_road.cpp
index 58040fc18a626..9e2a3b9535c2a 100644
--- a/planning/behavior_velocity_planner/src/scene_module/intersection/scene_merge_from_private_road.cpp
+++ b/planning/behavior_velocity_intersection_module/src/scene_merge_from_private_road.cpp
@@ -12,18 +12,21 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+#include "scene_merge_from_private_road.hpp"
+
+#include "util.hpp"
+
+#include
+#include
+#include
#include
#include
#include
-#include
-#include
-#include
-#include
-#include
#include
#include
+#include
#include
#include
#include