diff --git a/common/autoware_node/src/autoware_node.cpp b/common/autoware_node/src/autoware_node.cpp index e36fe195..d401d25e 100644 --- a/common/autoware_node/src/autoware_node.cpp +++ b/common/autoware_node/src/autoware_node.cpp @@ -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