Skip to content

Commit

Permalink
refactor(behavior_velocity_planner_common): rename function
Browse files Browse the repository at this point in the history
Signed-off-by: Fumiya Watanabe <[email protected]>
  • Loading branch information
rej55 committed Dec 14, 2023
1 parent f3a594f commit 3cb3bde
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ bool NoStoppingAreaModule::checkStuckVehiclesInNoStoppingArea(
}
const auto obj_v = std::fabs(object.kinematics.initial_twist_with_covariance.twist.linear.x);
if (obj_v > planner_param_.stuck_vehicle_vel_thr) {
insertObjectData(
setObjectsOfInterestData(
object.kinematics.initial_pose_with_covariance.pose, object.shape, ColorName::GREEN);

Check warning on line 234 in planning/behavior_velocity_no_stopping_area_module/src/scene_no_stopping_area.cpp

View check run for this annotation

Codecov / codecov/patch

planning/behavior_velocity_no_stopping_area_module/src/scene_no_stopping_area.cpp#L234

Added line #L234 was not covered by tests
continue; // not stop vehicle
}
Expand All @@ -239,7 +239,7 @@ bool NoStoppingAreaModule::checkStuckVehiclesInNoStoppingArea(
const bool is_in_stuck_area = !bg::disjoint(obj_footprint, poly);
if (is_in_stuck_area) {
RCLCPP_DEBUG(logger_, "stuck vehicle found.");
insertObjectData(
setObjectsOfInterestData(
object.kinematics.initial_pose_with_covariance.pose, object.shape, ColorName::RED);
for (const auto & p : obj_footprint.outer()) {
geometry_msgs::msg::Point point;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ class SceneModuleInterface
void setDistance(const double distance) { distance_ = distance; }
void syncActivation() { setActivation(isSafe()); }

void insertObjectData(
void setObjectsOfInterestData(
const geometry_msgs::msg::Pose & pose, const autoware_auto_perception_msgs::msg::Shape & shape,
const ColorName & color_name)
{
Expand Down

0 comments on commit 3cb3bde

Please sign in to comment.