Skip to content

Commit

Permalink
chore: set log level of debug printing in rviz plugin to DEBUG (#5996)
Browse files Browse the repository at this point in the history
Signed-off-by: Takayuki Murooka <[email protected]>
  • Loading branch information
takayuki5168 authored Jan 5, 2024
1 parent 67080aa commit 2ca9a6b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,20 +41,20 @@ class Client
const typename ServiceT::Request::SharedPtr & request,
const std::chrono::nanoseconds & timeout = std::chrono::seconds(2))
{
RCLCPP_INFO(logger_, "client request");
RCLCPP_DEBUG(logger_, "client request");

if (!client_->service_is_ready()) {
RCLCPP_INFO(logger_, "client available");
RCLCPP_DEBUG(logger_, "client available");
return {response_error("Internal service is not available."), nullptr};
}

auto future = client_->async_send_request(request);
if (future.wait_for(timeout) != std::future_status::ready) {
RCLCPP_INFO(logger_, "client timeout");
RCLCPP_DEBUG(logger_, "client timeout");
return {response_error("Internal service has timed out."), nullptr};
}

RCLCPP_INFO(logger_, "client response");
RCLCPP_DEBUG(logger_, "client response");
return {response_success(), future.get()};
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -263,9 +263,9 @@ void ManualController::onClickEnableButton()
{
auto req = std::make_shared<EngageSrv::Request>();
req->engage = true;
RCLCPP_INFO(raw_node_->get_logger(), "client request");
RCLCPP_DEBUG(raw_node_->get_logger(), "client request");
if (!client_engage_->service_is_ready()) {
RCLCPP_INFO(raw_node_->get_logger(), "client is unavailable");
RCLCPP_DEBUG(raw_node_->get_logger(), "client is unavailable");
return;
}
client_engage_->async_send_request(
Expand Down
6 changes: 3 additions & 3 deletions common/tier4_state_rviz_plugin/src/autoware_state_panel.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,15 +171,15 @@ public Q_SLOTS: // NOLINT for Qt
{
auto req = std::make_shared<typename T::Request>();

RCLCPP_INFO(raw_node_->get_logger(), "client request");
RCLCPP_DEBUG(raw_node_->get_logger(), "client request");

if (!client->service_is_ready()) {
RCLCPP_INFO(raw_node_->get_logger(), "client is unavailable");
RCLCPP_DEBUG(raw_node_->get_logger(), "client is unavailable");
return;
}

client->async_send_request(req, [this](typename rclcpp::Client<T>::SharedFuture result) {
RCLCPP_INFO(
RCLCPP_DEBUG(
raw_node_->get_logger(), "Status: %d, %s", result.get()->status.code,
result.get()->status.message.c_str());
});
Expand Down

0 comments on commit 2ca9a6b

Please sign in to comment.