Skip to content

Commit

Permalink
fixes to get services compiling
Browse files Browse the repository at this point in the history
  • Loading branch information
wjwwood committed Mar 5, 2015
1 parent 209a31c commit 25c8c56
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
5 changes: 3 additions & 2 deletions rclcpp/include/rclcpp/client.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,9 @@ class Client : public ClientBase
typename ServiceT::Request::Ptr &request,
CallbackType cb)
{
int64_t sequence_number =
rmw_send_request(get_client_handle(), request.get());
int64_t sequence_number;
// TODO(wjwwood): Check the return code.
rmw_send_request(get_client_handle(), request.get(), &sequence_number);

SharedPromise call_promise = std::make_shared<Promise>();
SharedFuture f(call_promise->get_future());
Expand Down
9 changes: 5 additions & 4 deletions rclcpp/include/rclcpp/executor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,7 @@ class Executor
// Now wait on the waitable subscriptions and timers
rmw_wait(&subscriber_handles,
&guard_condition_handles,
&service_handles,
&client_handles,
nonblocking);
// If ctrl-c guard condition, return directly
Expand Down Expand Up @@ -397,7 +398,7 @@ class Executor
// Then the services
for (size_t i = 0; i < number_of_services; ++i)
{
void *handle = service_handles.services_[i];
void *handle = service_handles.services[i];
if (handle)
{
service_handles_.push_back(handle);
Expand All @@ -406,7 +407,7 @@ class Executor
// Then the clients
for (size_t i = 0; i < number_of_clients; ++i)
{
void *handle = client_handles.clients_[i];
void *handle = client_handles.clients[i];
if (handle)
{
client_handles_.push_back(handle);
Expand Down Expand Up @@ -500,7 +501,7 @@ class Executor
}
for (auto service : group->service_ptrs_)
{
if (service->service_handle_.data_ == service_handle)
if (service->service_handle_->data == service_handle)
{
return service;
}
Expand Down Expand Up @@ -529,7 +530,7 @@ class Executor
}
for (auto client : group->client_ptrs_)
{
if (client->client_handle_.data_ == client_handle)
if (client->client_handle_->data == client_handle)
{
return client;
}
Expand Down

0 comments on commit 25c8c56

Please sign in to comment.