Skip to content

Commit

Permalink
Fix EventsExecutor timers not being properly refreshed
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexis Pojomovsky committed Jun 24, 2024
1 parent 8761982 commit c9b1830
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,8 @@ void
EventsExecutor::refresh_current_collection(
const rclcpp::executors::ExecutorEntitiesCollection & new_collection)
{
current_entities_collection_->remove_expired_entities();

current_entities_collection_->timers.update(
new_collection.timers,
[this](rclcpp::TimerBase::SharedPtr timer) {timers_manager_->add_timer(timer);},
Expand Down

0 comments on commit c9b1830

Please sign in to comment.