This commit is contained in:
Esteve Fernandez 2015-04-22 12:28:30 -07:00
parent 35b2c106a1
commit c3791fcab1

View file

@ -86,13 +86,15 @@ class Service : public ServiceBase
{ {
public: public:
typedef std::function< typedef std::function<
void (const std::shared_ptr<typename ServiceT::Request> &, void (
std::shared_ptr<typename ServiceT::Response> &)> CallbackType; const std::shared_ptr<typename ServiceT::Request> &,
std::shared_ptr<typename ServiceT::Response> &)> CallbackType;
typedef std::function< typedef std::function<
void (const std::shared_ptr<rmw_request_id_t> &, void (
const std::shared_ptr<typename ServiceT::Request> &, const std::shared_ptr<rmw_request_id_t> &,
std::shared_ptr<typename ServiceT::Response> &)> CallbackWithHeaderType; const std::shared_ptr<typename ServiceT::Request> &,
std::shared_ptr<typename ServiceT::Response> &)> CallbackWithHeaderType;
RCLCPP_MAKE_SHARED_DEFINITIONS(Service); RCLCPP_MAKE_SHARED_DEFINITIONS(Service);
Service( Service(