#include <string>
#include "ros/common.h"
#include "ros/message.h"
#include "ros/forwards.h"
#include "ros/node_handle.h"
#include "ros/service_traits.h"
#include "ros/names.h"
#include <boost/shared_ptr.hpp>
Go to the source code of this file.
Namespaces | |
namespace | ros |
namespace | ros::service |
Contains functions for querying information about and calling a service. | |
Functions | |
template<class Service > | |
bool | ros::service::call (const std::string &service_name, Service &service) |
Invoke an RPC service. | |
template<class MReq , class MRes > | |
bool | ros::service::call (const std::string &service_name, MReq &req, MRes &res) |
Invoke an RPC service. | |
template<class Service > | |
ServiceClient | ros::service::createClient (const std::string &service_name, bool persistent=false, const M_string &header_values=M_string()) |
Create a client for a service. | |
template<class MReq , class MRes > | |
ServiceClient | ros::service::createClient (const std::string &service_name, bool persistent=false, const M_string &header_values=M_string()) |
Create a client for a service. | |
bool | ros::service::exists (const std::string &service_name, bool print_failure_reason) |
Checks if a service is both advertised and available. | |
bool | ros::service::waitForService (const std::string &service_name, ros::Duration timeout=ros::Duration(-1)) |
Wait for a service to be advertised and available. Blocks until it is. | |
bool | ros::service::waitForService (const std::string &service_name, int32_t timeout) |
Wait for a service to be advertised and available. Blocks until it is. |