Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add vehicle margin parameter to freespace planner. #1189

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
th_stopped_time_sec: 1.0
th_stopped_velocity_mps: 0.01
th_course_out_distance_m: 1.0
margin: 1.0
replan_when_obstacle_found: true
replan_when_course_out: true

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -463,10 +463,9 @@ void FreespacePlannerNode::planTrajectory()
// Extend robot shape
freespace_planning_algorithms::VehicleShape extended_vehicle_shape =
planner_common_param_.vehicle_shape;
constexpr double margin = 1.0;
extended_vehicle_shape.length += margin;
extended_vehicle_shape.width += margin;
extended_vehicle_shape.base2back += margin / 2;
extended_vehicle_shape.length += node_param_.margin;
extended_vehicle_shape.width += node_param_.margin;
extended_vehicle_shape.base2back += node_param_.margin / 2;

// Provide robot shape and map for the planner
algo_->setVehicleShape(extended_vehicle_shape);
Expand Down