File tree 1 file changed +4
-3
lines changed
planning/obstacle_cruise_planner/include/obstacle_cruise_planner
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -355,10 +355,11 @@ class PlannerInterface
355
355
longitudinal_info.limit_min_accel , std::numeric_limits<double >::max (), false };
356
356
type_specified_param_list.emplace (" default" , default_param);
357
357
for (const auto & [type_uint, type_str] : types_maps) {
358
- if (node.declare_parameter <bool >(
359
- param_prefix + " use_type_specified_params." + type_str)) {
358
+ if (node.declare_parameter <bool >(param_prefix + " use_type_specified_params." + type_str)) {
360
359
const ObstacleSpecificParams param{
361
- node.declare_parameter <double >(param_prefix + " limit_min_acc." + type_str),
360
+ std::min (
361
+ node.declare_parameter <double >(param_prefix + " limit_min_acc." + type_str),
362
+ longitudinal_info.min_accel ),
362
363
node.declare_parameter <double >(param_prefix + " limit_max_dist." + type_str),
363
364
node.declare_parameter <bool >(param_prefix + " abandon_to_stop." + type_str)};
364
365
type_specified_param_list.emplace (type_str, param);
You can’t perform that action at this time.
0 commit comments