SMACC2
|
#include <cl_ros_timer.hpp>
Public Member Functions | |
ClRosTimer (rclcpp::Duration duration, bool oneshot=false) | |
virtual | ~ClRosTimer () |
virtual void | initialize () |
template<typename T > | |
boost::signals2::connection | onTimerTick (void(T::*callback)(), T *object) |
template<typename TOrthogonal , typename TSourceObject > | |
void | onOrthogonalAllocation () |
ClRosTimer (rclcpp::Duration duration, bool oneshot=false) | |
virtual | ~ClRosTimer () |
virtual void | onInitialize () override |
template<typename T > | |
boost::signals2::connection | onTimerTick (void(T::*callback)(), T *object) |
template<typename TOrthogonal , typename TSourceObject > | |
void | onOrthogonalAllocation () |
Public Member Functions inherited from smacc2::ISmaccClient | |
ISmaccClient () | |
virtual | ~ISmaccClient () |
virtual void | onInitialize () |
virtual std::string | getName () const |
template<typename TComponent > | |
TComponent * | getComponent () |
template<typename TComponent > | |
TComponent * | getComponent (std::string name) |
template<typename TComponent > | |
TComponent * | getComponent (int index) |
virtual smacc2::introspection::TypeInfo::Ptr | getType () |
ISmaccStateMachine * | getStateMachine () |
template<typename TSmaccSignal , typename T > | |
void | connectSignal (TSmaccSignal &signal, void(T::*callback)(), T *object) |
template<typename SmaccClientType > | |
void | requiresClient (SmaccClientType *&storage) |
void | getComponents (std::vector< std::shared_ptr< ISmaccComponent > > &components) |
const std::vector< std::shared_ptr< ISmaccComponent > > & | iterateComponents () const |
template<typename EventType > | |
void | postEvent (const EventType &ev) |
template<typename EventType > | |
void | postEvent () |
Protected Member Functions | |
void | timerCallback () |
void | timerCallback () |
Protected Member Functions inherited from smacc2::ISmaccClient | |
template<typename TOrthogonal , typename TSourceObject > | |
void | onOrthogonalAllocation () |
template<typename SmaccComponentType , typename TOrthogonal , typename TClient , typename... TArgs> | |
SmaccComponentType * | createComponent (TArgs... targs) |
template<typename SmaccComponentType , typename TOrthogonal , typename TClient , typename... TArgs> | |
SmaccComponentType * | createNamedComponent (std::string name, TArgs... targs) |
rclcpp::Node::SharedPtr | getNode () |
rclcpp::Logger | getLogger () |
Protected Attributes | |
rclcpp::TimerBase::SharedPtr | timer_ |
rclcpp::Duration | duration_ |
bool | oneshot_ |
std::function< void()> | postTimerEvent_ |
smacc2::SmaccSignal< void()> | onTimerTick_ |
Protected Attributes inherited from smacc2::ISmaccClient | |
std::map< ComponentKey, std::shared_ptr< smacc2::ISmaccComponent > > | components_ |
Definition at line 39 of file cl_ros_timer.hpp.
cl_ros_timer::ClRosTimer::ClRosTimer | ( | rclcpp::Duration | duration, |
bool | oneshot = false |
||
) |
Definition at line 19 of file timer_client.cpp.
|
virtual |
cl_ros_timer::ClRosTimer::ClRosTimer | ( | rclcpp::Duration | duration, |
bool | oneshot = false |
||
) |
|
virtual |
|
virtual |
|
overridevirtual |
Reimplemented from smacc2::ISmaccClient.
Definition at line 26 of file timer_client.cpp.
References duration_, smacc2::ISmaccClient::getNode(), timer_, and timerCallback().
|
inline |
Definition at line 55 of file cl_ros_timer.hpp.
References postTimerEvent_.
|
inline |
|
inline |
Definition at line 49 of file cl_ros_timer.hpp.
References smacc2::ISmaccStateMachine::createSignalConnection(), smacc2::ISmaccClient::getStateMachine(), and onTimerTick_.
Referenced by cl_ros_timer::CbTimer::onEntry(), cl_ros_timer::CbTimerCountdownLoop::onEntry(), and cl_ros_timer::CbTimerCountdownOnce::onEntry().
|
inline |
Definition at line 49 of file cl_ros_timer.hpp.
References smacc2::ISmaccStateMachine::createSignalConnection(), smacc2::ISmaccClient::getStateMachine(), and onTimerTick_.
|
protected |
Definition at line 34 of file timer_client.cpp.
References oneshot_, onTimerTick_, postTimerEvent_, and timer_.
Referenced by onInitialize().
|
protected |
|
protected |
Definition at line 62 of file cl_ros_timer.hpp.
Referenced by onInitialize().
|
protected |
Definition at line 63 of file cl_ros_timer.hpp.
Referenced by timerCallback().
|
protected |
Definition at line 67 of file cl_ros_timer.hpp.
Referenced by onTimerTick(), and timerCallback().
|
protected |
Definition at line 66 of file cl_ros_timer.hpp.
Referenced by onOrthogonalAllocation(), and timerCallback().
|
protected |
Definition at line 61 of file cl_ros_timer.hpp.
Referenced by onInitialize(), timerCallback(), and ~ClRosTimer().