File tree 3 files changed +4
-1
lines changed
planning/behavior_velocity_dynamic_obstacle_stop_module
3 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 14
14
ignore_unavoidable_collisions : true # if true, ignore collisions that cannot be avoided by stopping (assuming the obstacle continues going straight)
15
15
ignore_objects_behind_ego : false # if true, ignore objects that are behind the ego vehicle
16
16
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
Original file line number Diff line number Diff line change @@ -49,7 +49,8 @@ DynamicObstacleStopModuleManager::DynamicObstacleStopModuleManager(rclcpp::Node
49
49
getOrDeclareParameter<bool >(node, ns + " .ignore_unavoidable_collisions" );
50
50
pp.ignore_objects_behind_ego =
51
51
getOrDeclareParameter<bool >(node, ns + " .ignore_objects_behind_ego" );
52
-
52
+ pp.use_predicted_path =
53
+ getOrDeclareParameter<bool >(node, ns + " .use_predicted_path" );
53
54
const auto vehicle_info = vehicle_info_util::VehicleInfoUtil (node).getVehicleInfo ();
54
55
pp.ego_lateral_offset =
55
56
std::max (std::abs (vehicle_info.min_lateral_offset_m ), vehicle_info.max_lateral_offset_m );
Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ struct PlannerParam
52
52
double behind_object_distance_threshold;
53
53
bool ignore_unavoidable_collisions;
54
54
bool ignore_objects_behind_ego;
55
+ bool use_predicted_path;
55
56
};
56
57
57
58
struct EgoData
You can’t perform that action at this time.
0 commit comments