Skip to content

Commit

Permalink
chore(crosswalk)!: delete wide crosswalk corresponding function (#9329)
Browse files Browse the repository at this point in the history
Signed-off-by: Yuki Takagi <[email protected]>
  • Loading branch information
yuki-takagi-66 authored Nov 15, 2024
1 parent e54020e commit fbf297a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ CrosswalkModuleManager::CrosswalkModuleManager(rclcpp::Node & node)
getOrDeclareParameter<double>(node, ns + ".stop_position.stop_distance_from_object_preferred");
cp.stop_distance_from_object_limit =
getOrDeclareParameter<double>(node, ns + ".stop_position.stop_distance_from_object_limit");
cp.far_object_threshold =
getOrDeclareParameter<double>(node, ns + ".stop_position.far_object_threshold");
cp.stop_position_threshold =
getOrDeclareParameter<double>(node, ns + ".stop_position.stop_position_threshold");
cp.min_acc_preferred =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -420,9 +420,7 @@ std::optional<geometry_msgs::msg::Pose> CrosswalkModule::calcStopPose(
if (!ped_stop_pref_opt.has_value()) {
RCLCPP_INFO(logger_, "Failure to calculate pref_stop.");
return std::nullopt;
} else if (
default_stop_opt.has_value() && ped_stop_pref_opt->dist > default_stop_opt->dist &&
ped_stop_pref_opt->dist < default_stop_opt->dist + planner_param_.far_object_threshold) {
} else if (default_stop_opt.has_value() && ped_stop_pref_opt->dist > default_stop_opt->dist) {
return default_stop_opt;
} else {
return ped_stop_pref_opt;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ class CrosswalkModule : public SceneModuleInterface
double stop_distance_from_object_preferred;
double stop_distance_from_object_limit;
double stop_distance_from_crosswalk;
double far_object_threshold;
double stop_position_threshold;
double min_acc_preferred;
double min_jerk_preferred;
Expand Down

0 comments on commit fbf297a

Please sign in to comment.