Skip to content

Commit

Permalink
update message API
Browse files Browse the repository at this point in the history
  • Loading branch information
dirk-thomas committed Jun 17, 2015
1 parent 5471f61 commit 5ed1604
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rclcpp/include/rclcpp/client.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ template<typename ServiceT>
class Client : public ClientBase
{
public:
typedef std::promise<typename ServiceT::Response::Ptr> Promise;
typedef std::promise<typename ServiceT::Response::SharedPtr> Promise;
typedef std::shared_ptr<Promise> SharedPromise;
typedef std::shared_future<typename ServiceT::Response::Ptr> SharedFuture;
typedef std::shared_future<typename ServiceT::Response::SharedPtr> SharedFuture;

typedef std::function<void (SharedFuture)> CallbackType;

Expand Down Expand Up @@ -123,13 +123,13 @@ class Client : public ClientBase
}

SharedFuture async_send_request(
typename ServiceT::Request::Ptr & request)
typename ServiceT::Request::SharedPtr & request)
{
return async_send_request(request, [](SharedFuture f) {});
}

SharedFuture async_send_request(
typename ServiceT::Request::Ptr & request,
typename ServiceT::Request::SharedPtr & request,
CallbackType cb)
{
int64_t sequence_number;
Expand Down

0 comments on commit 5ed1604

Please sign in to comment.