Skip to content

Commit 2032dcf

Browse files
committed
fix(avoidance): add missing parameter declaration (autowarefoundation#6908)
Signed-off-by: satoshi-ota <[email protected]>
1 parent 939877f commit 2032dcf

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

planning/behavior_path_avoidance_module/include/behavior_path_avoidance_module/parameter_helper.hpp

+5
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,11 @@ AvoidanceParameters getParameter(rclcpp::Node * node)
131131
getOrDeclareParameter<double>(*node, ns + "min_road_shoulder_width");
132132
}
133133

134+
{
135+
const std::string ns = "avoidance.target_filtering.merging_vehicle.";
136+
p.th_overhang_distance = getOrDeclareParameter<double>(*node, ns + "th_overhang_distance");
137+
}
138+
134139
{
135140
const std::string ns = "avoidance.target_filtering.avoidance_for_ambiguous_vehicle.";
136141
p.enable_avoidance_for_ambiguous_vehicle = getOrDeclareParameter<bool>(*node, ns + "enable");

planning/behavior_path_avoidance_module/schema/avoidance.schema.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@
686686
"properties": {
687687
"th_overhang_distance": {
688688
"type": "number",
689-
"description": "Distance threshold between overhang point and ego lane's centerline. If the nearest overhang point of merging/deviating vehicle is less than this param, the module never avoid it. (Basically, the ego stops behind of it.)",
689+
"description": "Distance threshold to ignore merging/deviating vehicle to/from ego driving lane. The distance represents how the object polygon overlaps ego lane, and it's calculated from polygon overhang point and lane centerline. If the distance is more than this param, the module never avoid the object. (Basically, the ego stops behind of it.)",
690690
"default": 0.5
691691
}
692692
},

planning/behavior_path_avoidance_module/src/manager.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,11 @@ void AvoidanceModuleManager::updateModuleParams(const std::vector<rclcpp::Parame
124124
updateParam<double>(parameters, ns + "backward_distance", p->object_check_backward_distance);
125125
}
126126

127+
{
128+
const std::string ns = "avoidance.target_filtering.merging_vehicle.";
129+
updateParam<double>(parameters, ns + "th_overhang_distance", p->th_overhang_distance);
130+
}
131+
127132
{
128133
const std::string ns = "avoidance.avoidance.lateral.avoidance_for_ambiguous_vehicle.";
129134
updateParam<bool>(parameters, ns + "enable", p->enable_avoidance_for_ambiguous_vehicle);

0 commit comments

Comments
 (0)