diff --git a/planning/autoware_route_client/scripts/route_client.py b/planning/autoware_route_client/scripts/route_client.py index e0b350c3..98199b9e 100755 --- a/planning/autoware_route_client/scripts/route_client.py +++ b/planning/autoware_route_client/scripts/route_client.py @@ -93,7 +93,11 @@ def main(args=None): rclpy.spin_once(client) if client.future.done(): try: - client.get_logger().info("Service requested.") + response = client.future.result() + if response.status.success: + client.get_logger().info("Service succeeded: %s" % response.status.message) + else: + client.get_logger().info("Service failed: %s" % response.status.message) except Exception as e: client.get_logger().info("Error: %r" % (e,)) break