33 bool triggerUpdateMethod =
true;
36 auto now = node->get_clock()->now();
45 if (triggerUpdateMethod)
47 this->lastUpdate_ = now;
51 if (triggerUpdateMethod)
std::optional< rclcpp::Time > lastUpdate_
std::optional< rclcpp::Duration > periodDuration_
void executeUpdate(rclcpp::Node::SharedPtr node)
void setUpdatePeriod(rclcpp::Duration duration)