SMACC
|
#include <cl_ros_timer.h>
Public Member Functions | |
ClRosTimer (ros::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 () |
Public Member Functions inherited from smacc::ISmaccClient | |
ISmaccClient () | |
virtual | ~ISmaccClient () |
virtual void | initialize () |
virtual std::string | getName () const |
template<typename EventType > | |
void | postEvent (const EventType &ev) |
template<typename EventType > | |
void | postEvent () |
template<typename TComponent > | |
TComponent * | getComponent () |
template<typename TComponent > | |
TComponent * | getComponent (std::string name) |
virtual smacc::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) |
Protected Member Functions | |
void | timerCallback (const ros::TimerEvent &timedata) |
Protected Member Functions inherited from smacc::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) |
void | setStateMachine (ISmaccStateMachine *stateMachine) |
void | setOrthogonal (ISmaccOrthogonal *orthogonal) |
Protected Attributes | |
ros::NodeHandle | nh_ |
ros::Timer | timer |
ros::Duration | duration |
bool | oneshot |
std::function< void()> | postTimerEvent_ |
smacc::SmaccSignal< void()> | onTimerTick_ |
Protected Attributes inherited from smacc::ISmaccClient | |
std::map< ComponentKey, std::shared_ptr< smacc::ISmaccComponent > > | components_ |
Definition at line 24 of file cl_ros_timer.h.
cl_ros_timer::ClRosTimer::ClRosTimer | ( | ros::Duration | duration, |
bool | oneshot = false |
||
) |
Definition at line 6 of file timer_client.cpp.
|
virtual |
|
virtual |
Reimplemented from smacc::ISmaccClient.
Definition at line 17 of file timer_client.cpp.
References duration, nh_, oneshot, timer, and timerCallback().
|
inline |
Definition at line 40 of file cl_ros_timer.h.
References postTimerEvent_.
|
inline |
Definition at line 34 of file cl_ros_timer.h.
References smacc::ISmaccStateMachine::createSignalConnection(), smacc::ISmaccClient::getStateMachine(), and onTimerTick_.
Referenced by cl_ros_timer::CbTimer::onEntry(), cl_ros_timer::CbTimerCountdownLoop::onEntry(), and cl_ros_timer::CbTimerCountdownOnce::onEntry().
|
protected |
Definition at line 22 of file timer_client.cpp.
References onTimerTick_, and postTimerEvent_.
Referenced by initialize().
|
protected |
Definition at line 51 of file cl_ros_timer.h.
Referenced by ClRosTimer(), and initialize().
|
protected |
Definition at line 48 of file cl_ros_timer.h.
Referenced by initialize().
|
protected |
Definition at line 52 of file cl_ros_timer.h.
Referenced by ClRosTimer(), and initialize().
|
protected |
Definition at line 56 of file cl_ros_timer.h.
Referenced by onTimerTick(), and timerCallback().
|
protected |
Definition at line 55 of file cl_ros_timer.h.
Referenced by onOrthogonalAllocation(), and timerCallback().
|
protected |
Definition at line 50 of file cl_ros_timer.h.
Referenced by initialize(), and ~ClRosTimer().