Skip to content

Commit 2b14bd2

Browse files
satoshi-otaa-maumau
authored andcommitted
chore(static_obstacle_avoidance, dynamic_obstacle_avoidance): rename avoidance package (autowarefoundation#7168)
* chore(autoware_behavior_path_static_obstacle_avoidance_module): rename package and namespace Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com> * chore(autoware_behavior_path_dynamic_obstacle_avoidance_module): rename package and namespace Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com> * chore(tier4_planning_launch): update module name Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com> * chore(rtc_interface): update module name Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com> * chore(avoidance): update module param file name Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com> * chore(avoidance): update schema file name Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com> * fix(AbLC): fix file name Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com> * docs: update module name Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com> --------- Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
1 parent 215ae50 commit 2b14bd2

File tree

81 files changed

+375
-335
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+375
-335
lines changed

launch/tier4_planning_launch/launch/scenario_planning/lane_driving/behavior_planning/behavior_planning.launch.xml

+8-8
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
<arg name="enable_all_modules_auto_mode"/>
88
<arg name="is_simulation"/>
99

10-
<arg name="launch_avoidance_module" default="true"/>
10+
<arg name="launch_static_obstacle_avoidance" default="true"/>
1111
<arg name="launch_avoidance_by_lane_change_module" default="true"/>
12-
<arg name="launch_dynamic_avoidance_module" default="true"/>
12+
<arg name="launch_dynamic_obstacle_avoidance" default="true"/>
1313
<arg name="launch_lane_change_right_module" default="true"/>
1414
<arg name="launch_lane_change_left_module" default="true"/>
1515
<arg name="launch_external_request_lane_change_right_module" default="true"/>
@@ -42,13 +42,13 @@
4242
<arg name="behavior_path_planner_launch_modules" default="["/>
4343
<let
4444
name="behavior_path_planner_launch_modules"
45-
value="$(eval &quot;'$(var behavior_path_planner_launch_modules)' + 'behavior_path_planner::AvoidanceModuleManager, '&quot;)"
46-
if="$(var launch_avoidance_module)"
45+
value="$(eval &quot;'$(var behavior_path_planner_launch_modules)' + 'behavior_path_planner::StaticObstacleAvoidanceModuleManager, '&quot;)"
46+
if="$(var launch_static_obstacle_avoidance)"
4747
/>
4848
<let
4949
name="behavior_path_planner_launch_modules"
50-
value="$(eval &quot;'$(var behavior_path_planner_launch_modules)' + 'behavior_path_planner::DynamicAvoidanceModuleManager, '&quot;)"
51-
if="$(var launch_dynamic_avoidance_module)"
50+
value="$(eval &quot;'$(var behavior_path_planner_launch_modules)' + 'behavior_path_planner::DynamicObstacleAvoidanceModuleManager, '&quot;)"
51+
if="$(var launch_dynamic_obstacle_avoidance)"
5252
/>
5353
<let
5454
name="behavior_path_planner_launch_modules"
@@ -206,9 +206,9 @@
206206
<param name="enable_all_modules_auto_mode" value="$(var enable_all_modules_auto_mode)"/>
207207
<param name="is_simulation" value="$(var is_simulation)"/>
208208
<param from="$(var behavior_path_planner_side_shift_module_param_path)"/>
209-
<param from="$(var behavior_path_planner_avoidance_module_param_path)"/>
209+
<param from="$(var behavior_path_planner_static_obstacle_avoidance_module_param_path)"/>
210210
<param from="$(var behavior_path_planner_avoidance_by_lc_module_param_path)"/>
211-
<param from="$(var behavior_path_planner_dynamic_avoidance_module_param_path)"/>
211+
<param from="$(var behavior_path_planner_dynamic_obstacle_avoidance_module_param_path)"/>
212212
<param from="$(var behavior_path_planner_lane_change_module_param_path)"/>
213213
<param from="$(var behavior_path_planner_goal_planner_module_param_path)"/>
214214
<param from="$(var behavior_path_planner_start_planner_module_param_path)"/>

planning/behavior_path_dynamic_avoidance_module/CMakeLists.txt planning/autoware_behavior_path_dynamic_obstacle_avoidance_module/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
cmake_minimum_required(VERSION 3.14)
2-
project(behavior_path_dynamic_avoidance_module)
2+
project(autoware_behavior_path_dynamic_obstacle_avoidance_module)
33

44
find_package(autoware_cmake REQUIRED)
55
autoware_package()

planning/behavior_path_dynamic_avoidance_module/README.md planning/autoware_behavior_path_dynamic_obstacle_avoidance_module/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Dynamic avoidance design
1+
# Avoidance module for dynamic objects
22

33
This module is under development.
44

planning/behavior_path_dynamic_avoidance_module/include/behavior_path_dynamic_avoidance_module/manager.hpp planning/autoware_behavior_path_dynamic_obstacle_avoidance_module/include/autoware_behavior_path_dynamic_obstacle_avoidance_module/manager.hpp

+10-7
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
#ifndef BEHAVIOR_PATH_DYNAMIC_AVOIDANCE_MODULE__MANAGER_HPP_
16-
#define BEHAVIOR_PATH_DYNAMIC_AVOIDANCE_MODULE__MANAGER_HPP_
15+
#ifndef AUTOWARE_BEHAVIOR_PATH_DYNAMIC_OBSTACLE_AVOIDANCE_MODULE__MANAGER_HPP_
16+
#define AUTOWARE_BEHAVIOR_PATH_DYNAMIC_OBSTACLE_AVOIDANCE_MODULE__MANAGER_HPP_
1717

18-
#include "behavior_path_dynamic_avoidance_module/scene.hpp"
18+
#include "autoware_behavior_path_dynamic_obstacle_avoidance_module/scene.hpp"
1919
#include "behavior_path_planner_common/interface/scene_module_manager_interface.hpp"
2020

2121
#include <rclcpp/rclcpp.hpp>
@@ -28,16 +28,19 @@
2828
namespace behavior_path_planner
2929
{
3030

31-
class DynamicAvoidanceModuleManager : public SceneModuleManagerInterface
31+
class DynamicObstacleAvoidanceModuleManager : public SceneModuleManagerInterface
3232
{
3333
public:
34-
DynamicAvoidanceModuleManager() : SceneModuleManagerInterface{"dynamic_avoidance"} {}
34+
DynamicObstacleAvoidanceModuleManager()
35+
: SceneModuleManagerInterface{"dynamic_obstacle_avoidance"}
36+
{
37+
}
3538

3639
void init(rclcpp::Node * node) override;
3740

3841
std::unique_ptr<SceneModuleInterface> createNewSceneModuleInstance() override
3942
{
40-
return std::make_unique<DynamicAvoidanceModule>(
43+
return std::make_unique<DynamicObstacleAvoidanceModule>(
4144
name_, *node_, parameters_, rtc_interface_ptr_map_,
4245
objects_of_interest_marker_interface_ptr_map_);
4346
}
@@ -52,4 +55,4 @@ class DynamicAvoidanceModuleManager : public SceneModuleManagerInterface
5255

5356
} // namespace behavior_path_planner
5457

55-
#endif // BEHAVIOR_PATH_DYNAMIC_AVOIDANCE_MODULE__MANAGER_HPP_
58+
#endif // AUTOWARE_BEHAVIOR_PATH_DYNAMIC_OBSTACLE_AVOIDANCE_MODULE__MANAGER_HPP_

planning/behavior_path_dynamic_avoidance_module/include/behavior_path_dynamic_avoidance_module/scene.hpp planning/autoware_behavior_path_dynamic_obstacle_avoidance_module/include/autoware_behavior_path_dynamic_obstacle_avoidance_module/scene.hpp

+7-7
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
#ifndef BEHAVIOR_PATH_DYNAMIC_AVOIDANCE_MODULE__SCENE_HPP_
16-
#define BEHAVIOR_PATH_DYNAMIC_AVOIDANCE_MODULE__SCENE_HPP_
15+
#ifndef AUTOWARE_BEHAVIOR_PATH_DYNAMIC_OBSTACLE_AVOIDANCE_MODULE__SCENE_HPP_
16+
#define AUTOWARE_BEHAVIOR_PATH_DYNAMIC_OBSTACLE_AVOIDANCE_MODULE__SCENE_HPP_
1717

1818
#include "behavior_path_planner_common/interface/scene_module_interface.hpp"
1919
#include "tier4_autoware_utils/system/stop_watch.hpp"
@@ -164,7 +164,7 @@ struct LatFeasiblePaths
164164
std::vector<geometry_msgs::msg::Point> left_path;
165165
std::vector<geometry_msgs::msg::Point> right_path;
166166
};
167-
class DynamicAvoidanceModule : public SceneModuleInterface
167+
class DynamicObstacleAvoidanceModule : public SceneModuleInterface
168168
{
169169
public:
170170
struct DynamicAvoidanceObject
@@ -336,7 +336,7 @@ class DynamicAvoidanceModule : public SceneModuleInterface
336336
std::string reason{""};
337337
};
338338

339-
DynamicAvoidanceModule(
339+
DynamicObstacleAvoidanceModule(
340340
const std::string & name, rclcpp::Node & node,
341341
std::shared_ptr<DynamicAvoidanceParameters> parameters,
342342
const std::unordered_map<std::string, std::shared_ptr<RTCInterface>> & rtc_interface_ptr_map,
@@ -444,8 +444,8 @@ class DynamicAvoidanceModule : public SceneModuleInterface
444444
getLogger(), parameters_->enable_debug_info, reason_text.c_str(), obj_uuid.c_str());
445445
}
446446

447-
std::vector<DynamicAvoidanceModule::DynamicAvoidanceObject> target_objects_;
448-
// std::vector<DynamicAvoidanceModule::DynamicAvoidanceObject> prev_target_objects_;
447+
std::vector<DynamicObstacleAvoidanceModule::DynamicAvoidanceObject> target_objects_;
448+
// std::vector<DynamicObstacleAvoidanceModule::DynamicAvoidanceObject> prev_target_objects_;
449449
std::optional<std::vector<PathPointWithLaneId>> prev_input_ref_path_points_{std::nullopt};
450450
std::optional<std::vector<PathPointWithLaneId>> ref_path_before_lane_change_{std::nullopt};
451451
std::shared_ptr<DynamicAvoidanceParameters> parameters_;
@@ -458,4 +458,4 @@ class DynamicAvoidanceModule : public SceneModuleInterface
458458
};
459459
} // namespace behavior_path_planner
460460

461-
#endif // BEHAVIOR_PATH_DYNAMIC_AVOIDANCE_MODULE__SCENE_HPP_
461+
#endif // AUTOWARE_BEHAVIOR_PATH_DYNAMIC_OBSTACLE_AVOIDANCE_MODULE__SCENE_HPP_

planning/behavior_path_dynamic_avoidance_module/package.xml planning/autoware_behavior_path_dynamic_obstacle_avoidance_module/package.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?xml version="1.0"?>
22
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
33
<package format="3">
4-
<name>behavior_path_dynamic_avoidance_module</name>
4+
<name>autoware_behavior_path_dynamic_obstacle_avoidance_module</name>
55
<version>0.1.0</version>
6-
<description>The behavior_path_dynamic_avoidance_module package</description>
6+
<description>The autoware_behavior_path_dynamic_obstacle_avoidance_module package</description>
77

88
<maintainer email="takayuki.murooka@tier4.jp">Takayuki Murooka</maintainer>
99
<maintainer email="yuki.takagi@tier4.jp">Yuki Takagi</maintainer>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<library path="autoware_behavior_path_dynamic_obstacle_avoidance_module">
2+
<class type="behavior_path_planner::DynamicObstacleAvoidanceModuleManager" base_class_type="behavior_path_planner::SceneModuleManagerInterface"/>
3+
</library>

planning/behavior_path_dynamic_avoidance_module/src/manager.cpp planning/autoware_behavior_path_dynamic_obstacle_avoidance_module/src/manager.cpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
#include "behavior_path_dynamic_avoidance_module/manager.hpp"
15+
#include "autoware_behavior_path_dynamic_obstacle_avoidance_module/manager.hpp"
1616

1717
#include "tier4_autoware_utils/ros/update_param.hpp"
1818

@@ -37,7 +37,7 @@ PolygonGenerationMethod convertToPolygonGenerationMethod(const std::string & str
3737
}
3838
} // namespace
3939

40-
void DynamicAvoidanceModuleManager::init(rclcpp::Node * node)
40+
void DynamicObstacleAvoidanceModuleManager::init(rclcpp::Node * node)
4141
{
4242
// init manager interface
4343
initInterface(node, {""});
@@ -149,7 +149,7 @@ void DynamicAvoidanceModuleManager::init(rclcpp::Node * node)
149149
parameters_ = std::make_shared<DynamicAvoidanceParameters>(p);
150150
}
151151

152-
void DynamicAvoidanceModuleManager::updateModuleParams(
152+
void DynamicObstacleAvoidanceModuleManager::updateModuleParams(
153153
[[maybe_unused]] const std::vector<rclcpp::Parameter> & parameters)
154154
{
155155
using tier4_autoware_utils::updateParam;
@@ -287,13 +287,13 @@ void DynamicAvoidanceModuleManager::updateModuleParams(
287287
});
288288
}
289289

290-
bool DynamicAvoidanceModuleManager::isAlwaysExecutableModule() const
290+
bool DynamicObstacleAvoidanceModuleManager::isAlwaysExecutableModule() const
291291
{
292292
return true;
293293
}
294294
} // namespace behavior_path_planner
295295

296296
#include <pluginlib/class_list_macros.hpp>
297297
PLUGINLIB_EXPORT_CLASS(
298-
behavior_path_planner::DynamicAvoidanceModuleManager,
298+
behavior_path_planner::DynamicObstacleAvoidanceModuleManager,
299299
behavior_path_planner::SceneModuleManagerInterface)

0 commit comments

Comments
 (0)