Skip to content

Commit 3d782f2

Browse files
author
beyza
committed
add&get use_predicted_path
Signed-off-by: beyza <bnk@leodrive.ai>
1 parent 04a7b09 commit 3d782f2

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

planning/behavior_velocity_dynamic_obstacle_stop_module/config/dynamic_obstacle_stop.param.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@
1414
ignore_unavoidable_collisions : true # if true, ignore collisions that cannot be avoided by stopping (assuming the obstacle continues going straight)
1515
ignore_objects_behind_ego: false # if true, ignore objects that are behind the ego vehicle
1616
behind_object_distance_threshold: 5.0 # [m] distance behind the ego vehicle to ignore objects
17+
use_predicted_path: false # if true, use the predicted path of the object to calculate the collision point

planning/behavior_velocity_dynamic_obstacle_stop_module/src/manager.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ DynamicObstacleStopModuleManager::DynamicObstacleStopModuleManager(rclcpp::Node
4949
getOrDeclareParameter<bool>(node, ns + ".ignore_unavoidable_collisions");
5050
pp.ignore_objects_behind_ego =
5151
getOrDeclareParameter<bool>(node, ns + ".ignore_objects_behind_ego");
52-
52+
pp.use_predicted_path =
53+
getOrDeclareParameter<bool>(node, ns + ".use_predicted_path");
5354
const auto vehicle_info = vehicle_info_util::VehicleInfoUtil(node).getVehicleInfo();
5455
pp.ego_lateral_offset =
5556
std::max(std::abs(vehicle_info.min_lateral_offset_m), vehicle_info.max_lateral_offset_m);

planning/behavior_velocity_dynamic_obstacle_stop_module/src/types.hpp

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ struct PlannerParam
5252
double behind_object_distance_threshold;
5353
bool ignore_unavoidable_collisions;
5454
bool ignore_objects_behind_ego;
55+
bool use_predicted_path;
5556
};
5657

5758
struct EgoData

0 commit comments

Comments
 (0)