SMACC2
|
#include <smacc_updatable.hpp>
Public Member Functions | |
ISmaccUpdatable () | |
ISmaccUpdatable (rclcpp::Duration duration) | |
void | executeUpdate (rclcpp::Node::SharedPtr node) |
void | setUpdatePeriod (rclcpp::Duration duration) |
Protected Member Functions | |
virtual void | update ()=0 |
Private Attributes | |
std::optional< rclcpp::Duration > | periodDuration_ |
std::optional< rclcpp::Time > | lastUpdate_ |
Definition at line 32 of file smacc_updatable.hpp.
smacc2::ISmaccUpdatable::ISmaccUpdatable | ( | ) |
Definition at line 25 of file smacc_updatable.cpp.
|
explicit |
Definition at line 27 of file smacc_updatable.cpp.
void smacc2::ISmaccUpdatable::executeUpdate | ( | rclcpp::Node::SharedPtr | node | ) |
Definition at line 31 of file smacc_updatable.cpp.
References lastUpdate_, periodDuration_, and update().
void smacc2::ISmaccUpdatable::setUpdatePeriod | ( | rclcpp::Duration | duration | ) |
Definition at line 29 of file smacc_updatable.cpp.
References periodDuration_.
|
protectedpure virtual |
Implemented in cl_ros_publisher::CbDefaultPublishLoop, smacc2::event_generators::EgConditionalGenerator, and smacc2::state_reactors::EgRandomGenerator.
Referenced by executeUpdate().
|
private |
Definition at line 46 of file smacc_updatable.hpp.
Referenced by executeUpdate().
|
private |
Definition at line 45 of file smacc_updatable.hpp.
Referenced by executeUpdate(), and setUpdatePeriod().