fix timeout

This commit is contained in:
Kurt Wilson 2023-05-22 12:46:53 -04:00
parent e7c58ff5b3
commit ab0915c49f
2 changed files with 2 additions and 2 deletions

View file

@ -27,7 +27,7 @@ namespace timed_executor
std::shared_ptr<rclcpp::detail::MutexTwoPriorities>>
wait_mutex_set_;
static std::mutex shared_wait_mutex_;
std::chrono::nanoseconds next_exec_timeout_ = std::chrono::microseconds(100); // 0.1 ms
std::chrono::nanoseconds next_exec_timeout_ = std::chrono::nanoseconds(-1);
};
}

View file

@ -49,7 +49,7 @@ namespace timed_executor
// size_t ready = memory_strategy_->number_of_ready_subscriptions();
// std::cout << "ready:" << ready << std::endl;
if (get_next_executable(any_executable))
if (get_next_executable(any_executable, std::chrono::nanoseconds(-1)))
{
execute_any_executable(any_executable);
// make sure memory_strategy_ is an instance of PriorityMemoryStrategy