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

View file

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