Skip to content

Commit

Permalink
style(pre-commit): autofix
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Mar 15, 2023
1 parent c1cc0de commit 2d84b9b
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions common/autoware_node/src/autoware_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,16 @@ AutowareNode::AutowareNode(

RCLCPP_INFO(get_logger(), "Sent request");

// const auto & response = fut_and_id_response.get();
// RCLCPP_INFO(get_logger(), "response: %d", response->status.status);

if (rclcpp::spin_until_future_complete(this->get_node_base_interface(), fut_and_id_response)
==
rclcpp::FutureReturnCode::SUCCESS)
{
RCLCPP_INFO(get_logger(), "response: %d", fut_and_id_response.get()->status.status);
} else {
RCLCPP_ERROR(get_logger(), "Failed to call service");
}
// const auto & response = fut_and_id_response.get();
// RCLCPP_INFO(get_logger(), "response: %d", response->status.status);

if (
rclcpp::spin_until_future_complete(this->get_node_base_interface(), fut_and_id_response) ==
rclcpp::FutureReturnCode::SUCCESS) {
RCLCPP_INFO(get_logger(), "response: %d", fut_and_id_response.get()->status.status);
} else {
RCLCPP_ERROR(get_logger(), "Failed to call service");
}
}

} // namespace autoware_node

0 comments on commit 2d84b9b

Please sign in to comment.