#include <smacc_updatable.hpp>
Definition at line 32 of file smacc_updatable.hpp.
◆ ISmaccUpdatable() [1/4]
| smacc2::ISmaccUpdatable::ISmaccUpdatable |
( |
| ) |
|
◆ ISmaccUpdatable() [2/4]
| smacc2::ISmaccUpdatable::ISmaccUpdatable |
( |
rclcpp::Duration | duration | ) |
|
|
explicit |
◆ ~ISmaccUpdatable()
| virtual smacc2::ISmaccUpdatable::~ISmaccUpdatable |
( |
| ) |
|
|
virtualdefault |
◆ ISmaccUpdatable() [3/4]
◆ ISmaccUpdatable() [4/4]
◆ executeUpdate()
| void smacc2::ISmaccUpdatable::executeUpdate |
( |
rclcpp::Node::SharedPtr | node | ) |
|
Definition at line 31 of file smacc_updatable.cpp.
32{
33 bool triggerUpdateMethod = true;
35 {
36 auto now = node->get_clock()->now();
37
39 {
41 }
42
45 if (triggerUpdateMethod)
46 {
47 this->lastUpdate_ = now;
48 }
49 }
50
51 if (triggerUpdateMethod)
52 {
54 }
55}
std::optional< rclcpp::Time > lastUpdate_
References lastUpdate_, periodDuration_, and update().
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ setUpdatePeriod()
| void smacc2::ISmaccUpdatable::setUpdatePeriod |
( |
rclcpp::Duration | duration | ) |
|
◆ update()
| virtual void smacc2::ISmaccUpdatable::update |
( |
| ) |
|
|
protectedpure virtual |
Implemented in cl_foundation_pose::CbTrackObjectPose, cl_foundation_pose::CpObjectTrackerTf, cl_gcalcli::CpCalendarEventListener, cl_gcalcli::CpCalendarPoller, cl_gcalcli::CpGcalcliConnection, cl_isaac_apriltag::CpAprilTagVisualization, cl_keyboard::CbKeyboardTwistTeleop, cl_modbus_tcp_relay::CpModbusConnection, cl_moveit2z::CpTrajectoryVisualizer, cl_nav2z::CpPose, cl_nav2z::CpWaypointsVisualizer, cl_px4_mr::CbFigureEight, cl_px4_mr::CbHoldPosition, cl_px4_mr::CbOrbitLocation, cl_px4_mr::CbPx4ClientBehaviorBase, cl_px4_mr::CbPx4PathFollowerBase, cl_px4_mr::CbSineAltitudeCruise, cl_px4_mr::CbSpiralPattern, cl_px4_mr::CbSpiralUp, cl_px4_mr::CbYawRotate, cl_px4_mr::CbYawScan, cl_px4_mr::CpGoalChecker, cl_px4_mr::CpOffboardKeepAlive, cl_rgb::CbRgbClientBehaviorBase, smacc2::event_generators::EgConditionalGenerator, and smacc2::state_reactors::EgRandomGenerator.
Referenced by executeUpdate().
◆ lastUpdate_
| std::optional<rclcpp::Time> smacc2::ISmaccUpdatable::lastUpdate_ |
|
private |
◆ periodDuration_
| std::optional<rclcpp::Duration> smacc2::ISmaccUpdatable::periodDuration_ |
|
private |
The documentation for this class was generated from the following files: