Event type for services, ros::ServiceEvent<MReq, MRes>& can be used in your callback instead of MReq&, MRes&. More...
#include <service_callback_helper.h>
Public Types | |
typedef boost::function< bool(ServiceEvent< RequestType, ResponseType > &)> | CallbackType |
typedef boost::shared_ptr< RequestType > | RequestPtr |
typedef MReq | RequestType |
typedef boost::shared_ptr< ResponseType > | ResponsePtr |
typedef MRes | ResponseType |
Public Member Functions | |
const std::string & | getCallerName () const |
Returns the name of the node which called this service. More... | |
M_string & | getConnectionHeader () const |
Returns a reference to the connection header. More... | |
const RequestType & | getRequest () const |
Returns a const-reference to the request. More... | |
ResponseType & | getResponse () const |
Returns a non-const reference to the response. More... | |
ServiceEvent (const boost::shared_ptr< MReq const > &req, const boost::shared_ptr< MRes > &res, const boost::shared_ptr< M_string > &connection_header) | |
Static Public Member Functions | |
static bool | call (const CallbackType &cb, ServiceSpecCallParams< RequestType, ResponseType > ¶ms) |
Private Attributes | |
boost::shared_ptr< M_string > | connection_header_ |
boost::shared_ptr< RequestType const > | request_ |
boost::shared_ptr< ResponseType > | response_ |
Event type for services, ros::ServiceEvent<MReq, MRes>& can be used in your callback instead of MReq&, MRes&.
Useful if you need to retrieve meta-data about the call, such as the full connection header, or the caller's node name
Definition at line 70 of file service_callback_helper.h.
typedef boost::function<bool(ServiceEvent<RequestType, ResponseType>&)> ros::ServiceEvent< MReq, MRes >::CallbackType |
Definition at line 77 of file service_callback_helper.h.
typedef boost::shared_ptr<RequestType> ros::ServiceEvent< MReq, MRes >::RequestPtr |
Definition at line 75 of file service_callback_helper.h.
typedef MReq ros::ServiceEvent< MReq, MRes >::RequestType |
Definition at line 73 of file service_callback_helper.h.
typedef boost::shared_ptr<ResponseType> ros::ServiceEvent< MReq, MRes >::ResponsePtr |
Definition at line 76 of file service_callback_helper.h.
typedef MRes ros::ServiceEvent< MReq, MRes >::ResponseType |
Definition at line 74 of file service_callback_helper.h.
|
inline |
Definition at line 85 of file service_callback_helper.h.
|
inlinestatic |
Definition at line 79 of file service_callback_helper.h.
|
inline |
Returns the name of the node which called this service.
Definition at line 107 of file service_callback_helper.h.
|
inline |
Returns a reference to the connection header.
Definition at line 102 of file service_callback_helper.h.
|
inline |
Returns a const-reference to the request.
Definition at line 94 of file service_callback_helper.h.
|
inline |
Returns a non-const reference to the response.
Definition at line 98 of file service_callback_helper.h.
|
private |
Definition at line 111 of file service_callback_helper.h.
|
private |
Definition at line 109 of file service_callback_helper.h.
|
private |
Definition at line 110 of file service_callback_helper.h.