Skip to content

Commit

Permalink
fix(obstacle_avoidance_planner, path_smoother): change logger level o…
Browse files Browse the repository at this point in the history
…f debug print (#6298)

Signed-off-by: Takayuki Murooka <[email protected]>
  • Loading branch information
takayuki5168 authored Feb 5, 2024
1 parent bd4b5ca commit 0d10e81
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ std::optional<size_t> updateFrontPointForFix(
const double lon_offset_to_prev_front =
motion_utils::calcSignedArcLength(points, 0, front_fix_point.pose.position);
if (0 < lon_offset_to_prev_front) {
RCLCPP_WARN(
RCLCPP_DEBUG(
rclcpp::get_logger("obstacle_avoidance_planner.trajectory_utils"),
"Fixed point will not be inserted due to the error during calculation.");
return std::nullopt;
Expand All @@ -189,7 +189,7 @@ std::optional<size_t> updateFrontPointForFix(
// check if deviation is not too large
constexpr double max_lat_error = 3.0;
if (max_lat_error < dist) {
RCLCPP_WARN(
RCLCPP_DEBUG(
rclcpp::get_logger("obstacle_avoidance_planner.trajectory_utils"),
"New Fixed point is too far from points %f [m]", dist);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ std::optional<size_t> updateFrontPointForFix(
const double lon_offset_to_prev_front =
motion_utils::calcSignedArcLength(points, 0, front_fix_point.pose.position);
if (0 < lon_offset_to_prev_front) {
RCLCPP_WARN(
RCLCPP_DEBUG(
rclcpp::get_logger("path_smoother.trajectory_utils"),
"Fixed point will not be inserted due to the error during calculation.");
return std::nullopt;
Expand All @@ -147,7 +147,7 @@ std::optional<size_t> updateFrontPointForFix(
// check if deviation is not too large
constexpr double max_lat_error = 3.0;
if (max_lat_error < dist) {
RCLCPP_WARN(
RCLCPP_DEBUG(
rclcpp::get_logger("path_smoother.trajectory_utils"),
"New Fixed point is too far from points %f [m]", dist);
}
Expand Down

0 comments on commit 0d10e81

Please sign in to comment.