SMACC2
Public Types | Public Member Functions | Static Public Member Functions | List of all members
sm_test_moveit_ur5_sim::StMoveLastTrajectoryInitialState Struct Reference

#include <st_move_last_trajectory_initial_state.hpp>

Inheritance diagram for sm_test_moveit_ur5_sim::StMoveLastTrajectoryInitialState:
Inheritance graph
Collaboration diagram for sm_test_moveit_ur5_sim::StMoveLastTrajectoryInitialState:
Collaboration graph

Public Types

typedef boost::mpl::list< Transition< EvCbSuccess< CbMoveLastTrajectoryInitialState, OrArm >, StMoveLastTrajectoryInitialState, SUCCESS > > reactions
 
- Public Types inherited from smacc2::SmaccState< StMoveLastTrajectoryInitialState, SmTestMoveitUr5Sim >
typedef SmTestMoveitUr5Sim TContext
 
typedef Context::inner_context_type context_type
 
typedef context_type::state_iterator state_iterator
 
typedef mpl::list<> LastDeepState
 
typedef base_type::outermost_context_base_type outermost_context_base_type
 
typedef base_type::inner_context_ptr_type inner_context_ptr_type
 
typedef base_type::context_ptr_type context_ptr_type
 
typedef base_type::inner_initial_list inner_initial_list
 

Public Member Functions

void runtimeConfigure ()
 
void onEntry ()
 
void onExit ()
 
 SmaccState ()=delete
 
 SmaccState (my_context ctx)
 
- Public Member Functions inherited from smacc2::SmaccState< StMoveLastTrajectoryInitialState, SmTestMoveitUr5Sim >
 SmaccState ()=delete
 
 SmaccState (my_context ctx)
 
virtual ~SmaccState ()
 
const smacc2::introspection::SmaccStateInfogetStateInfo ()
 
std::string getName () override
 
std::string getFullName ()
 
std::string getShortName ()
 
virtual ISmaccStategetParentState ()
 
void exit ()
 
void runtimeConfigure ()
 
void onEntry ()
 
void onExit ()
 
bool getGlobalSMData (std::string name, T &ret)
 
void setGlobalSMData (std::string name, T value)
 
void requiresComponent (SmaccComponentType *&storage)
 
virtual ISmaccStateMachinegetStateMachine ()
 
void checkWhileLoopConditionAndThrowEvent (bool(MostDerived::*conditionFn)())
 
void throwSequenceFinishedEvent ()
 
- Public Member Functions inherited from smacc2::ISmaccState
virtual ISmaccStateMachinegetStateMachine ()=0
 
virtual std::string getName ()=0
 
ISmaccStategetParentState ()
 
rclcpp::Node::SharedPtr & getNode ()
 
rclcpp::Logger getLogger ()
 
virtual std::string getClassName ()
 
template<typename TOrthogonal , typename TBehavior , typename... Args>
std::shared_ptr< TBehavior > configure (Args &&... args)
 
template<typename SmaccComponentType >
void requiresComponent (SmaccComponentType *&storage)
 
template<typename SmaccClientType >
void requiresClient (SmaccClientType *&storage)
 
template<typename T >
bool getGlobalSMData (std::string name, T &ret)
 
template<typename T >
void setGlobalSMData (std::string name, T value)
 
template<typename TStateReactor , typename TTriggerEvent , typename TEventList , typename... TEvArgs>
std::shared_ptr< TStateReactor > createStateReactor (TEvArgs... args)
 
template<typename TStateReactor , typename... TEvArgs>
std::shared_ptr< TStateReactor > createStateReactor (TEvArgs... args)
 
template<typename TEventGenerator , typename... TEvArgs>
std::shared_ptr< TEventGenerator > createEventGenerator (TEvArgs... args)
 
template<typename EventType >
void postEvent (const EventType &ev)
 
template<typename EventType >
void postEvent ()
 
template<typename TransitionType >
void notifyTransition ()
 
void notifyTransitionFromTransitionTypeInfo (std::shared_ptr< smacc2::introspection::TypeInfo > &transitionTypeInfo)
 
std::vector< std::shared_ptr< StateReactor > > & getStateReactors ()
 
std::vector< std::shared_ptr< SmaccEventGenerator > > & getEventGenerators ()
 
template<typename TOrthogonal >
TOrthogonal * getOrthogonal ()
 
template<typename TEventGenerator >
TEventGenerator * getEventGenerator ()
 
template<typename TStateReactor >
TStateReactor * getStateReactor ()
 

Static Public Member Functions

static void staticConfigure ()
 
- Static Public Member Functions inherited from smacc2::SmaccState< StMoveLastTrajectoryInitialState, SmTestMoveitUr5Sim >
static void configure_orthogonal_runtime (std::function< void(TBehavior &bh, StMoveLastTrajectoryInitialState &)> initializationFunction)
 
static void configure_orthogonal_runtime (std::function< void(TBehavior &bh)> initializationFunction)
 
static void configure_orthogonal (Args &&... args)
 
static std::shared_ptr< smacc2::introspection::StateReactorHandlerstatic_createStateReactor (TArgs... args)
 
static std::shared_ptr< smacc2::introspection::EventGeneratorHandlerstatic_createEventGenerator (TUArgs... args)
 
static std::shared_ptr< smacc2::introspection::StateReactorHandlerstatic_createStateReactor_aux (TUArgs... args)
 
static void initial_deep_construct (outermost_context_base_type &outermostContextBase)
 
static void deep_construct (const context_ptr_type &pContext, outermost_context_base_type &outermostContextBase)
 
static inner_context_ptr_type shallow_construct (const context_ptr_type &pContext, outermost_context_base_type &outermostContextBase)
 

Additional Inherited Members

- Public Attributes inherited from smacc2::SmaccState< StMoveLastTrajectoryInitialState, SmTestMoveitUr5Sim >
bool finishStateThrown
 
mpl::list<> * smacc_inner_type
 
- Protected Attributes inherited from smacc2::ISmaccState
rclcpp::Node::SharedPtr node_
 
std::shared_ptr< rclcpp::Logger > logger_
 
std::vector< std::shared_ptr< StateReactor > > stateReactors_
 
std::vector< std::shared_ptr< smacc2::SmaccEventGenerator > > eventGenerators_
 
ISmaccStateparentState_
 
const smacc2::introspection::SmaccStateInfostateInfo_
 

Detailed Description

Definition at line 35 of file st_move_last_trajectory_initial_state.hpp.

Member Typedef Documentation

◆ reactions

Definition at line 43 of file st_move_last_trajectory_initial_state.hpp.

Member Function Documentation

◆ onEntry()

void sm_test_moveit_ur5_sim::StMoveLastTrajectoryInitialState::onEntry ( )
inline

Definition at line 53 of file st_move_last_trajectory_initial_state.hpp.

53{ RCLCPP_INFO(getLogger(), "On Entry!"); }
rclcpp::Logger getLogger()
Definition: smacc_state.hpp:36

References smacc2::ISmaccState::getLogger().

Here is the call graph for this function:

◆ onExit()

void sm_test_moveit_ur5_sim::StMoveLastTrajectoryInitialState::onExit ( )
inline

Definition at line 55 of file st_move_last_trajectory_initial_state.hpp.

55{ RCLCPP_INFO(getLogger(), "On Exit!"); }

References smacc2::ISmaccState::getLogger().

Here is the call graph for this function:

◆ runtimeConfigure()

void sm_test_moveit_ur5_sim::StMoveLastTrajectoryInitialState::runtimeConfigure ( )
inline

Definition at line 51 of file st_move_last_trajectory_initial_state.hpp.

51{ RCLCPP_INFO(getLogger(), "Entering StMoveLastTrajectoryInitialState"); }

References smacc2::ISmaccState::getLogger().

Here is the call graph for this function:

◆ SmaccState() [1/2]

smacc2::SmaccState< MostDerived, Context, InnerInitial, historyMode >::SmaccState ( )
delete

◆ SmaccState() [2/2]

smacc2::SmaccState< MostDerived, Context, InnerInitial, historyMode >::SmaccState ( my_context  ctx)
inline

Definition at line 65 of file smacc_state_base.hpp.

66 {
67 static_assert(
68 std::is_base_of<ISmaccState, Context>::value ||
69 std::is_base_of<ISmaccStateMachine, Context>::value,
70 "The context class must be a SmaccState or a SmaccStateMachine");
71 static_assert(
72 !std::is_same<MostDerived, Context>::value,
73 "The context must be a different state or state machine "
74 "than the current state");
75
76 logger_.reset(new rclcpp::Logger(
77 rclcpp::get_logger(smacc2::utils::cleanShortTypeName(typeid(MostDerived)))));
78
79 RCLCPP_INFO(getLogger(), "[%s] creating state ", STATE_NAME);
80 this->set_context(ctx.pContext_);
81
82 node_ = this->getStateMachine().getNode();
83
84 this->stateInfo_ = getStateInfo();
85
86 // storing a reference to the parent state
87 auto & ps = this->template context<Context>();
88 parentState_ = dynamic_cast<ISmaccState *>(&ps);
89 finishStateThrown = false;
90 }
rclcpp::Node::SharedPtr getNode()
std::shared_ptr< rclcpp::Logger > logger_
Definition: smacc_state.hpp:98
rclcpp::Node::SharedPtr node_
Definition: smacc_state.hpp:97
ISmaccState * parentState_
const smacc2::introspection::SmaccStateInfo * stateInfo_
std::string cleanShortTypeName(const std::type_info &tinfo)
Definition: common.cpp:28
#define STATE_NAME

◆ staticConfigure()

static void sm_test_moveit_ur5_sim::StMoveLastTrajectoryInitialState::staticConfigure ( )
inlinestatic

Definition at line 46 of file st_move_last_trajectory_initial_state.hpp.

47 {
48 configure_orthogonal<OrArm, CbMoveLastTrajectoryInitialState>();
49 }

The documentation for this struct was generated from the following file: