Merge pull request #70 from ros2/fix_busy_loop
fix busy loop in spin_node_until_future_complete()
This commit is contained in:
commit
38bbcdac79
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ spin_node_until_future_complete(
|
||||||
// TODO(wjwwood): does not work recursively right, can't call spin_node_until_future_complete
|
// TODO(wjwwood): does not work recursively right, can't call spin_node_until_future_complete
|
||||||
// inside a callback executed by an executor.
|
// inside a callback executed by an executor.
|
||||||
do {
|
do {
|
||||||
executor.spin_node_some(node_ptr);
|
executor.spin_node_once(node_ptr);
|
||||||
status = future.wait_for(std::chrono::seconds(0));
|
status = future.wait_for(std::chrono::seconds(0));
|
||||||
} while (status != std::future_status::ready && rclcpp::utilities::ok());
|
} while (status != std::future_status::ready && rclcpp::utilities::ok());
|
||||||
return future;
|
return future;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue