Skip to content
This repository has been archived by the owner on Jul 3, 2023. It is now read-only.

Commit

Permalink
fix(tier4_planning_rviz_plugin): suppress warning (autowarefoundation…
Browse files Browse the repository at this point in the history
…#3578)

Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
  • Loading branch information
takayuki5168 authored Apr 28, 2023
1 parent 24bce1e commit 8f71738
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions common/tier4_planning_rviz_plugin/src/path/display.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@ void AutowarePathWithLaneIdDisplay::preProcessMessageDetail()
VehicleInfoUtil(*rviz_ros_node_.lock()->get_raw_node()).getVehicleInfo());
updateVehicleInfo();
} catch (const std::exception & e) {
RCLCPP_WARN_THROTTLE(
rviz_ros_node_.lock()->get_raw_node()->get_logger(),
*rviz_ros_node_.lock()->get_raw_node()->get_clock(), 5000, "Failed to get vehicle_info: %s",
RCLCPP_WARN_ONCE(
rviz_ros_node_.lock()->get_raw_node()->get_logger(), "Failed to get vehicle_info: %s",
e.what());
}
}
Expand Down Expand Up @@ -113,9 +112,8 @@ void AutowarePathDisplay::preProcessMessageDetail()
VehicleInfoUtil(*rviz_ros_node_.lock()->get_raw_node()).getVehicleInfo());
updateVehicleInfo();
} catch (const std::exception & e) {
RCLCPP_WARN_THROTTLE(
rviz_ros_node_.lock()->get_raw_node()->get_logger(),
*rviz_ros_node_.lock()->get_raw_node()->get_clock(), 5000, "Failed to get vehicle_info: %s",
RCLCPP_WARN_ONCE(
rviz_ros_node_.lock()->get_raw_node()->get_logger(), "Failed to get vehicle_info: %s",
e.what());
}
}
Expand All @@ -131,9 +129,8 @@ void AutowareTrajectoryDisplay::preProcessMessageDetail()
VehicleInfoUtil(*rviz_ros_node_.lock()->get_raw_node()).getVehicleInfo());
updateVehicleInfo();
} catch (const std::exception & e) {
RCLCPP_WARN_THROTTLE(
rviz_ros_node_.lock()->get_raw_node()->get_logger(),
*rviz_ros_node_.lock()->get_raw_node()->get_clock(), 5000, "Failed to get vehicle_info: %s",
RCLCPP_WARN_ONCE(
rviz_ros_node_.lock()->get_raw_node()->get_logger(), "Failed to get vehicle_info: %s",
e.what());
}
}
Expand Down

0 comments on commit 8f71738

Please sign in to comment.