SMACC2
|
#include <smacc_client_behavior_base.hpp>
Public Member Functions | |
ISmaccClientBehavior () | |
virtual | ~ISmaccClientBehavior () |
ISmaccStateMachine * | getStateMachine () |
std::string | getName () const |
template<typename SmaccClientType > | |
void | requiresClient (SmaccClientType *&storage) |
template<typename SmaccComponentType > | |
void | requiresComponent (SmaccComponentType *&storage) |
Protected Member Functions | |
virtual void | runtimeConfigure () |
virtual void | onEntry () |
virtual void | onExit () |
template<typename EventType > | |
void | postEvent (const EventType &ev) |
template<typename EventType > | |
void | postEvent () |
ISmaccState * | getCurrentState () |
virtual void | dispose () |
virtual rclcpp::Node::SharedPtr | getNode () |
virtual rclcpp::Logger | getLogger () |
Private Member Functions | |
virtual void | executeOnEntry () |
virtual void | executeOnExit () |
template<typename TOrthogonal , typename TSourceObject > | |
void | onOrthogonalAllocation () |
Private Attributes | |
ISmaccStateMachine * | stateMachine_ |
ISmaccState * | currentState |
smacc2::ISmaccOrthogonal * | currentOrthogonal |
Friends | |
class | ISmaccState |
class | ISmaccOrthogonal |
class | ISmaccAsynchronousClientBehavior |
Definition at line 29 of file smacc_client_behavior_base.hpp.
smacc2::ISmaccClientBehavior::ISmaccClientBehavior | ( | ) |
Definition at line 25 of file smacc_client_behavior_base.cpp.
References currentState, and stateMachine_.
|
virtual |
Definition at line 31 of file smacc_client_behavior_base.cpp.
References getLogger().
|
protectedvirtual |
Reimplemented in smacc2::SmaccAsyncClientBehavior.
Definition at line 74 of file smacc_client_behavior_base.cpp.
|
privatevirtual |
Reimplemented in smacc2::SmaccAsyncClientBehavior.
Definition at line 60 of file smacc_client_behavior_base.cpp.
References getLogger(), getName(), and onEntry().
|
privatevirtual |
Reimplemented in smacc2::SmaccAsyncClientBehavior.
Definition at line 67 of file smacc_client_behavior_base.cpp.
References getLogger(), getName(), and onExit().
|
inlineprotected |
|
protectedvirtual |
Definition at line 40 of file smacc_client_behavior_base.cpp.
References getNode().
Referenced by smacc2::SmaccAsyncClientBehavior::dispose(), executeOnEntry(), smacc2::SmaccAsyncClientBehavior::executeOnEntry(), executeOnExit(), smacc2::SmaccAsyncClientBehavior::executeOnExit(), smacc2::client_behaviors::CbServiceCall< ServiceType >::onEntry(), smacc2::client_behaviors::CbRosLaunch::onEntry(), smacc2::client_behaviors::CbWaitActionServer::onEntry(), smacc2::client_behaviors::CbWaitNode::onEntry(), smacc2::client_behaviors::CbWaitTopicMessage< TMessage >::onEntry(), smacc2::SmaccClientBehavior::onEntry(), cl_multirole_sensor::CbDefaultMultiRoleSensorBehavior< ClientType >::onEntry(), smacc2::SmaccClientBehavior::onExit(), smacc2::client_behaviors::CbWaitTopicMessage< TMessage >::onMessageReceived(), cl_multirole_sensor::CbDefaultMultiRoleSensorBehavior< ClientType >::onOrthogonalAllocation(), postEvent(), cl_keyboard::CbDefaultKeyboardBehavior::postKeyEvent(), requiresComponent(), runtimeConfigure(), smacc2::SmaccAsyncClientBehavior::waitFutureIfNotFinished(), and ~ISmaccClientBehavior().
std::string smacc2::ISmaccClientBehavior::getName | ( | ) | const |
Definition at line 36 of file smacc_client_behavior_base.cpp.
References smacc2::introspection::demangleSymbol().
Referenced by smacc2::SmaccAsyncClientBehavior::dispose(), executeOnEntry(), smacc2::SmaccAsyncClientBehavior::executeOnEntry(), executeOnExit(), smacc2::SmaccAsyncClientBehavior::executeOnExit(), smacc2::client_behaviors::CbServiceCall< ServiceType >::onEntry(), smacc2::client_behaviors::CbWaitNode::onEntry(), smacc2::SmaccClientBehavior::onEntry(), smacc2::SmaccClientBehavior::onExit(), and runtimeConfigure().
|
protectedvirtual |
Definition at line 38 of file smacc_client_behavior_base.cpp.
References smacc2::ISmaccStateMachine::getNode(), and stateMachine_.
Referenced by getLogger(), smacc2::client_behaviors::CbServiceCall< ServiceType >::onEntry(), smacc2::client_behaviors::CbWaitNode::onEntry(), smacc2::client_behaviors::CbWaitTopicMessage< TMessage >::onEntry(), and smacc2::SmaccAsyncClientBehavior::waitFutureIfNotFinished().
|
inline |
Definition at line 61 of file smacc_client_behavior_impl.hpp.
References stateMachine_.
Referenced by smacc2::SmaccAsyncClientBehavior::onFailure(), smacc2::SmaccAsyncClientBehavior::onFinished(), smacc2::SmaccAsyncClientBehavior::onSuccess(), cl_ros_timer::CbTimerCountdownLoop::onTimerTick(), and cl_ros_timer::CbTimerCountdownOnce::onTimerTick().
|
inlineprotectedvirtual |
Reimplemented in cl_keyboard::CbDefaultKeyboardBehavior, smacc2::client_behaviors::CbServiceCall< ServiceType >, smacc2::client_behaviors::CbRosLaunch, smacc2::client_behaviors::CbSubscriptionCallbackBase< TMsg >, smacc2::client_behaviors::CbWaitActionServer, smacc2::client_behaviors::CbWaitNode, smacc2::client_behaviors::CbWaitTopicMessage< TMessage >, smacc2::SmaccClientBehavior, cl_multirole_sensor::CbDefaultMultiRoleSensorBehavior< ClientType >, cl_ros_publisher::CbDefaultPublishLoop, cl_ros_publisher::CbMutedBehavior< RosMsgType >, cl_ros_publisher::CbPublishOnce< RosMsgType >, cl_ros_timer::CbTimer, cl_ros_timer::CbTimer, cl_ros_timer::CbTimerCountdownLoop, cl_ros_timer::CbTimerCountdownLoop, cl_ros_timer::CbTimerCountdownOnce, cl_ros_timer::CbTimerCountdownOnce, cl_ros_timer::CbTimer, cl_ros_timer::CbTimerCountdownLoop, and cl_ros_timer::CbTimerCountdownOnce.
Definition at line 49 of file smacc_client_behavior_base.hpp.
Referenced by executeOnEntry(), and smacc2::SmaccAsyncClientBehavior::executeOnEntry().
|
inlineprotectedvirtual |
Reimplemented in cl_multirole_sensor::CbDefaultMultiRoleSensorBehavior< ClientType >, smacc2::SmaccClientBehavior, cl_ros_publisher::CbDefaultPublishLoop, cl_ros_publisher::CbMutedBehavior< RosMsgType >, cl_ros_publisher::CbPublishOnce< RosMsgType >, cl_ros_timer::CbTimer, cl_ros_timer::CbTimerCountdownLoop, and cl_ros_timer::CbTimerCountdownOnce.
Definition at line 51 of file smacc_client_behavior_base.hpp.
Referenced by executeOnExit(), and smacc2::SmaccAsyncClientBehavior::executeOnExit().
|
private |
Definition at line 89 of file smacc_client_behavior_impl.hpp.
|
protected |
Definition at line 45 of file smacc_client_behavior_impl.hpp.
References smacc2::CURRENT_STATE, getLogger(), and stateMachine_.
Referenced by cl_keyboard::CbDefaultKeyboardBehavior::postKeyEvent().
|
protected |
Definition at line 29 of file smacc_client_behavior_impl.hpp.
References smacc2::CURRENT_STATE, getLogger(), smacc2::ISmaccStateMachine::postEvent(), and stateMachine_.
void smacc2::ISmaccClientBehavior::requiresClient | ( | SmaccClientType *& | storage | ) |
Definition at line 67 of file smacc_client_behavior_impl.hpp.
References currentOrthogonal, and smacc2::ISmaccOrthogonal::requiresClient().
Referenced by cl_keyboard::CbDefaultKeyboardBehavior::onEntry(), smacc2::client_behaviors::CbRosLaunch::onEntry(), smacc2::client_behaviors::CbSubscriptionCallbackBase< TMsg >::onEntry(), cl_multirole_sensor::CbDefaultMultiRoleSensorBehavior< ClientType >::onEntry(), cl_ros_publisher::CbDefaultPublishLoop::onEntry(), cl_ros_publisher::CbPublishOnce< RosMsgType >::onEntry(), cl_ros_timer::CbTimer::onEntry(), cl_ros_timer::CbTimerCountdownLoop::onEntry(), cl_ros_timer::CbTimerCountdownOnce::onEntry(), and smacc2::client_behaviors::CbWaitActionServer::onOrthogonalAllocation().
void smacc2::ISmaccClientBehavior::requiresComponent | ( | SmaccComponentType *& | storage | ) |
Definition at line 73 of file smacc_client_behavior_impl.hpp.
References getLogger(), smacc2::ISmaccStateMachine::requiresComponent(), and stateMachine_.
|
protectedvirtual |
Definition at line 53 of file smacc_client_behavior_base.cpp.
References getLogger(), and getName().
|
friend |
Definition at line 86 of file smacc_client_behavior_base.hpp.
|
friend |
Definition at line 85 of file smacc_client_behavior_base.hpp.
|
friend |
Definition at line 84 of file smacc_client_behavior_base.hpp.
|
private |
Definition at line 82 of file smacc_client_behavior_base.hpp.
Referenced by requiresClient().
|
private |
Definition at line 81 of file smacc_client_behavior_base.hpp.
Referenced by getCurrentState(), and ISmaccClientBehavior().
|
private |
Definition at line 78 of file smacc_client_behavior_base.hpp.
Referenced by getNode(), getStateMachine(), ISmaccClientBehavior(), postEvent(), and requiresComponent().