52 if (transport->connect(host, port))
58 m[
"service"] = mapped_name;
62 transport->write((uint8_t*)&size,
sizeof(size));
63 transport->write(buffer.get(), size);
70 if (print_failure_reason)
72 ROS_INFO(
"waitForService: Service [%s] could not connect to host [%s:%d], waiting...", mapped_name.c_str(), host.c_str(), port);
78 if (print_failure_reason)
80 ROS_INFO(
"waitForService: Service [%s] has not been advertised, waiting...", mapped_name.c_str());
98 if (
exists(service_name, !printed))
111 if ((current_time - start_time) >= wall_timeout)
123 ROS_INFO(
"waitForService: Service [%s] is now available.", mapped_name.c_str());