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

feat(mission_planner): add param of check_footprint_inside_lanes #5097

Merged
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
1 change: 1 addition & 0 deletions planning/mission_planner/config/mission_planner.param.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@
reroute_time_threshold: 10.0
minimum_reroute_length: 30.0
consider_no_drivable_lanes: false # This flag is for considering no_drivable_lanes in planning or not.
check_footprint_inside_lanes: true
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ void DefaultPlanner::initialize_common(rclcpp::Node * node)
param_.goal_angle_threshold_deg = node_->declare_parameter<double>("goal_angle_threshold_deg");
param_.enable_correct_goal_pose = node_->declare_parameter<bool>("enable_correct_goal_pose");
param_.consider_no_drivable_lanes = node_->declare_parameter<bool>("consider_no_drivable_lanes");
param_.check_footprint_inside_lanes =
node_->declare_parameter<bool>("check_footprint_inside_lanes");
}

void DefaultPlanner::initialize(rclcpp::Node * node)
Expand Down Expand Up @@ -349,6 +351,7 @@ bool DefaultPlanner::is_goal_valid(

// check if goal footprint exceeds lane when the goal isn't in parking_lot
if (
param_.check_footprint_inside_lanes &&
!check_goal_footprint(
closest_lanelet, combined_prev_lanelet, polygon_footprint, next_lane_length) &&
!is_in_parking_lot(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ struct DefaultPlannerParameters
double goal_angle_threshold_deg;
bool enable_correct_goal_pose;
bool consider_no_drivable_lanes;
bool check_footprint_inside_lanes;
};

class DefaultPlanner : public mission_planner::PlannerPlugin
Expand Down