@@ -54,12 +54,19 @@ std::shared_ptr<BehaviorVelocityPlannerNode> generateNode()
54
54
const auto velocity_smoother_dir =
55
55
ament_index_cpp::get_package_share_directory (" autoware_velocity_smoother" );
56
56
57
- const auto get_behavior_velocity_module_config = [](const std::string & module) {
57
+ // TODO(esteve): delete when all the modules are migrated to autoware_behavior_velocity_*
58
+ const auto get_behavior_velocity_module_config_no_prefix = [](const std::string & module) {
58
59
const auto package_name = " behavior_velocity_" + module + " _module" ;
59
60
const auto package_path = ament_index_cpp::get_package_share_directory (package_name);
60
61
return package_path + " /config/" + module + " .param.yaml" ;
61
62
};
62
63
64
+ const auto get_behavior_velocity_module_config = [](const std::string & module) {
65
+ const auto package_name = " autoware_behavior_velocity_" + module + " _module" ;
66
+ const auto package_path = ament_index_cpp::get_package_share_directory (package_name);
67
+ return package_path + " /config/" + module + " .param.yaml" ;
68
+ };
69
+
63
70
std::vector<std::string> module_names;
64
71
module_names.emplace_back (" behavior_velocity_planner::CrosswalkModulePlugin" );
65
72
module_names.emplace_back (" behavior_velocity_planner::WalkwayModulePlugin" );
@@ -68,7 +75,7 @@ std::shared_ptr<BehaviorVelocityPlannerNode> generateNode()
68
75
module_names.emplace_back (" behavior_velocity_planner::MergeFromPrivateModulePlugin" );
69
76
module_names.emplace_back (" behavior_velocity_planner::BlindSpotModulePlugin" );
70
77
module_names.emplace_back (" behavior_velocity_planner::DetectionAreaModulePlugin" );
71
- module_names.emplace_back (" behavior_velocity_planner::VirtualTrafficLightModulePlugin" );
78
+ module_names.emplace_back (" autoware:: behavior_velocity_planner::VirtualTrafficLightModulePlugin" );
72
79
module_names.emplace_back (" behavior_velocity_planner::NoStoppingAreaModulePlugin" );
73
80
module_names.emplace_back (" behavior_velocity_planner::StopLineModulePlugin" );
74
81
module_names.emplace_back (" behavior_velocity_planner::OcclusionSpotModulePlugin" );
@@ -89,20 +96,20 @@ std::shared_ptr<BehaviorVelocityPlannerNode> generateNode()
89
96
velocity_smoother_dir + " /config/default_velocity_smoother.param.yaml" ,
90
97
velocity_smoother_dir + " /config/Analytical.param.yaml" ,
91
98
behavior_velocity_planner_dir + " /config/behavior_velocity_planner.param.yaml" ,
92
- get_behavior_velocity_module_config (" blind_spot" ),
93
- get_behavior_velocity_module_config (" crosswalk" ),
94
- get_behavior_velocity_module_config (" walkway" ),
95
- get_behavior_velocity_module_config (" detection_area" ),
96
- get_behavior_velocity_module_config (" intersection" ),
97
- get_behavior_velocity_module_config (" no_stopping_area" ),
98
- get_behavior_velocity_module_config (" occlusion_spot" ),
99
- get_behavior_velocity_module_config (" run_out" ),
100
- get_behavior_velocity_module_config (" speed_bump" ),
101
- get_behavior_velocity_module_config (" stop_line" ),
102
- get_behavior_velocity_module_config (" traffic_light" ),
99
+ get_behavior_velocity_module_config_no_prefix (" blind_spot" ),
100
+ get_behavior_velocity_module_config_no_prefix (" crosswalk" ),
101
+ get_behavior_velocity_module_config_no_prefix (" walkway" ),
102
+ get_behavior_velocity_module_config_no_prefix (" detection_area" ),
103
+ get_behavior_velocity_module_config_no_prefix (" intersection" ),
104
+ get_behavior_velocity_module_config_no_prefix (" no_stopping_area" ),
105
+ get_behavior_velocity_module_config_no_prefix (" occlusion_spot" ),
106
+ get_behavior_velocity_module_config_no_prefix (" run_out" ),
107
+ get_behavior_velocity_module_config_no_prefix (" speed_bump" ),
108
+ get_behavior_velocity_module_config_no_prefix (" stop_line" ),
109
+ get_behavior_velocity_module_config_no_prefix (" traffic_light" ),
103
110
get_behavior_velocity_module_config (" virtual_traffic_light" ),
104
- get_behavior_velocity_module_config (" out_of_lane" ),
105
- get_behavior_velocity_module_config (" no_drivable_lane" )});
111
+ get_behavior_velocity_module_config_no_prefix (" out_of_lane" ),
112
+ get_behavior_velocity_module_config_no_prefix (" no_drivable_lane" )});
106
113
107
114
// TODO(Takagi, Isamu): set launch_modules
108
115
// TODO(Kyoichi Sugahara) set to true launch_virtual_traffic_light
0 commit comments