SMACC
|
#include <cl_multirole_sensor.h>
Public Types | |
typedef MessageType | TMessageType |
Public Types inherited from smacc::client_bases::SmaccSubscriberClient< MessageType > | |
typedef MessageType | TMessageType |
Public Member Functions | |
ClMultiroleSensor () | |
template<typename T > | |
boost::signals2::connection | onMessageTimeout (void(T::*callback)(const ros::TimerEvent &), T *object) |
template<typename TOrthogonal , typename TSourceObject > | |
void | onOrthogonalAllocation () |
virtual void | initialize () override |
Public Member Functions inherited from smacc::client_bases::SmaccSubscriberClient< MessageType > | |
SmaccSubscriberClient () | |
SmaccSubscriberClient (std::string topicname) | |
virtual | ~SmaccSubscriberClient () |
template<typename T > | |
boost::signals2::connection | onMessageReceived (void(T::*callback)(const MessageType &), T *object) |
template<typename T > | |
boost::signals2::connection | onFirstMessageReceived (void(T::*callback)(const MessageType &), T *object) |
template<typename TOrthogonal , typename TSourceObject > | |
void | onOrthogonalAllocation () |
virtual void | initialize () |
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) |
Public Attributes | |
SmaccSignal< void(const ros::TimerEvent &)> | onMessageTimeout_ |
std::function< void(const ros::TimerEvent &ev)> | postTimeoutMessageEvent |
boost::optional< ros::Duration > | timeout_ |
Public Attributes inherited from smacc::client_bases::SmaccSubscriberClient< MessageType > | |
boost::optional< std::string > | topicName |
boost::optional< int > | queueSize |
smacc::SmaccSignal< void(const MessageType &)> | onFirstMessageReceived_ |
smacc::SmaccSignal< void(const MessageType &)> | onMessageReceived_ |
std::function< void(const MessageType &)> | postMessageEvent |
std::function< void(const MessageType &)> | postInitialMessageEvent |
Protected Member Functions | |
void | resetTimer (const MessageType &msg) |
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) |
Private Member Functions | |
void | timeoutCallback (const ros::TimerEvent &timerdata) |
Private Attributes | |
ros::Timer | timeoutTimer_ |
bool | initialized_ |
Additional Inherited Members | |
Protected Attributes inherited from smacc::client_bases::SmaccSubscriberClient< MessageType > | |
ros::NodeHandle | nh_ |
Protected Attributes inherited from smacc::ISmaccClient | |
std::map< ComponentKey, std::shared_ptr< smacc::ISmaccComponent > > | components_ |
Definition at line 25 of file cl_multirole_sensor.h.
typedef MessageType cl_multirole_sensor::ClMultiroleSensor< MessageType >::TMessageType |
Definition at line 28 of file cl_multirole_sensor.h.
|
inline |
Definition at line 31 of file cl_multirole_sensor.h.
References cl_multirole_sensor::ClMultiroleSensor< MessageType >::initialized_.
|
inlineoverridevirtual |
Reimplemented from smacc::client_bases::SmaccSubscriberClient< MessageType >.
Definition at line 60 of file cl_multirole_sensor.h.
References smacc::client_bases::SmaccSubscriberClient< MessageType >::initialize(), cl_multirole_sensor::ClMultiroleSensor< MessageType >::initialized_, smacc::client_bases::SmaccSubscriberClient< MessageType >::nh_, smacc::client_bases::SmaccSubscriberClient< MessageType >::onMessageReceived(), cl_multirole_sensor::ClMultiroleSensor< MessageType >::timeout_, and cl_multirole_sensor::ClMultiroleSensor< MessageType >::timeoutTimer_.
|
inline |
Definition at line 39 of file cl_multirole_sensor.h.
References smacc::ISmaccStateMachine::createSignalConnection(), and smacc::ISmaccClient::getStateMachine().
|
inline |
Definition at line 47 of file cl_multirole_sensor.h.
References cl_multirole_sensor::ClMultiroleSensor< MessageType >::onMessageTimeout_, and smacc::ISmaccClient::postEvent().
|
inlineprotected |
Definition at line 85 of file cl_multirole_sensor.h.
References cl_multirole_sensor::ClMultiroleSensor< MessageType >::timeoutTimer_.
|
inlineprivate |
Definition at line 96 of file cl_multirole_sensor.h.
References cl_multirole_sensor::ClMultiroleSensor< MessageType >::postTimeoutMessageEvent.
|
private |
Definition at line 94 of file cl_multirole_sensor.h.
Referenced by cl_multirole_sensor::ClMultiroleSensor< MessageType >::ClMultiroleSensor(), and cl_multirole_sensor::ClMultiroleSensor< MessageType >::initialize().
SmaccSignal<void(const ros::TimerEvent &)> cl_multirole_sensor::ClMultiroleSensor< MessageType >::onMessageTimeout_ |
Definition at line 29 of file cl_multirole_sensor.h.
Referenced by cl_multirole_sensor::ClMultiroleSensor< MessageType >::onOrthogonalAllocation().
std::function<void(const ros::TimerEvent &ev)> cl_multirole_sensor::ClMultiroleSensor< MessageType >::postTimeoutMessageEvent |
Definition at line 44 of file cl_multirole_sensor.h.
Referenced by cl_multirole_sensor::ClMultiroleSensor< MessageType >::timeoutCallback().
boost::optional<ros::Duration> cl_multirole_sensor::ClMultiroleSensor< MessageType >::timeout_ |
Definition at line 82 of file cl_multirole_sensor.h.
Referenced by cl_multirole_sensor::ClMultiroleSensor< MessageType >::initialize().
|
private |
Definition at line 93 of file cl_multirole_sensor.h.
Referenced by cl_multirole_sensor::ClMultiroleSensor< MessageType >::initialize(), and cl_multirole_sensor::ClMultiroleSensor< MessageType >::resetTimer().