Skip to content

Commit

Permalink
Refactor rclcpp::executor::FutureReturnCode deprecation (ros-navigati…
Browse files Browse the repository at this point in the history
…on#1702)

* Refactor deprecated code

* Add ompl repo (for test)

* Fix indent

* Remove OMPL
  • Loading branch information
shivaang12 authored and AlexeyMerzlyakov committed May 12, 2020
1 parent bcc8ba9 commit cf6acf8
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,13 @@ class BtServiceNode : public BT::SyncActionNode
virtual BT::NodeStatus check_future(
std::shared_future<typename ServiceT::Response::SharedPtr> future_result)
{
rclcpp::executor::FutureReturnCode rc;
rclcpp::FutureReturnCode rc;
rc = rclcpp::spin_until_future_complete(
node_,
future_result, server_timeout_);
if (rc == rclcpp::executor::FutureReturnCode::SUCCESS) {
if (rc == rclcpp::FutureReturnCode::SUCCESS) {
return BT::NodeStatus::SUCCESS;
} else if (rc == rclcpp::executor::FutureReturnCode::TIMEOUT) {
} else if (rc == rclcpp::FutureReturnCode::TIMEOUT) {
RCLCPP_WARN(
node_->get_logger(),
"Node timed out while executing service call to %s.", service_name_.c_str());
Expand Down

0 comments on commit cf6acf8

Please sign in to comment.