29namespace introspection
90 std::function<void(std::shared_ptr<smacc2::StateReactor>)>
fn;
104 :
logger_(nh ? nh->get_logger() : rclcpp::get_logger(
"StateReactorHandler"))
110 template <
typename TEv>
113 template <
typename TEv>
117 std::weak_ptr<smacc2::introspection::SmaccStateReactorInfo>
srInfo_;
143 std::shared_ptr<StateReactorHandler>
srh;
149 std::function<void(std::shared_ptr<smacc2::SmaccEventGenerator>)>
fn;
160 template <
typename TEv>
164 std::weak_ptr<smacc2::introspection::SmaccEventGeneratorInfo>
egInfo_;
178 std::shared_ptr<EventGeneratorHandler>
egh;
191 typedef std::shared_ptr<SmaccStateInfo>
Ptr;
194 static std::map<const std::type_info *, std::vector<std::shared_ptr<SmaccStateReactorInfo>>>
196 static std::map<const std::type_info *, std::vector<std::shared_ptr<SmaccEventGeneratorInfo>>>
214 const std::type_info * tid, std::shared_ptr<SmaccStateInfo> parentState,
215 std::shared_ptr<SmaccStateMachineInfo> stateMachineInfo);
231 void getAncestors(std::list<const SmaccStateInfo *> & ancestorsList)
const;
235 template <
typename StateType>
238 template <
typename EvType>
240 std::shared_ptr<SmaccStateInfo> & dstState,
const std::string & transitionTag,
241 const std::string & transitionType,
bool history,
TypeInfo::Ptr transitionTypeInfo);
246 rclcpp::Node::SharedPtr
getNode();
std::weak_ptr< smacc2::introspection::SmaccEventGeneratorInfo > egInfo_
std::vector< EventGeneratorCallbackFunctor > callbacks_
void configureEventGenerator(std::shared_ptr< smacc2::SmaccEventGenerator > eg)
std::string getDemangledFullName() const
std::weak_ptr< SmaccStateInfo > parentState_
std::string demangledStateName
std::shared_ptr< SmaccStateInfo > createChildState()
void declareTransition(std::shared_ptr< SmaccStateInfo > &dstState, const std::string &transitionTag, const std::string &transitionType, bool history, TypeInfo::Ptr transitionTypeInfo)
const std::type_info * tid_
std::string fullStateName
SmaccStateInfo(const std::type_info *tid, std::shared_ptr< SmaccStateInfo > parentState, std::shared_ptr< SmaccStateMachineInfo > stateMachineInfo)
static std::map< const std::type_info *, std::vector< std::shared_ptr< SmaccStateReactorInfo > > > stateReactorsInfo
void getAncestors(std::list< const SmaccStateInfo * > &ancestorsList) const
const std::string & toShortName() const
SmaccStateType getStateLevel()
std::weak_ptr< SmaccStateMachineInfo > stateMachine_
std::shared_ptr< SmaccStateInfo > Ptr
std::vector< std::shared_ptr< SmaccStateInfo > > children_
std::shared_ptr< SmaccStateInfo > getParentState() const
std::string getFullPath()
std::shared_ptr< SmaccStateMachineInfo > getStateMachineInfo() const
rclcpp::Logger getLogger()
rclcpp::Node::SharedPtr getNode()
std::vector< SmaccTransitionInfo > transitions_
static std::map< const std::type_info *, std::vector< std::shared_ptr< SmaccEventGeneratorInfo > > > eventGeneratorsInfo
static std::map< const std::type_info *, std::vector< ClientBehaviorInfoEntry > > staticBehaviorInfo
void configureStateReactor(std::shared_ptr< smacc2::StateReactor > sr)
std::vector< StateReactorCallbackFunctor > callbacks_
StateReactorHandler(rclcpp::Node::SharedPtr nh)
std::weak_ptr< smacc2::introspection::SmaccStateReactorInfo > srInfo_
std::shared_ptr< TypeInfo > Ptr
const std::type_info * behaviorType
const std::type_info * orthogonalType
std::function< void(smacc2::ISmaccState *)> factoryFunction
std::function< void(std::shared_ptr< smacc2::SmaccEventGenerator >)> fn
std::shared_ptr< EventGeneratorHandler > egh
std::function< void(smacc2::ISmaccState *)> factoryFunction
std::shared_ptr< TypeInfo > objectTagType
std::shared_ptr< TypeInfo > eventGeneratorType
std::shared_ptr< TypeInfo > outputEventType
std::vector< std::shared_ptr< SmaccEventInfo > > sourceEventTypes
std::weak_ptr< SmaccStateInfo > ownerState
std::string getEventSourceName()
std::string getOrthogonalName()
SmaccEventInfo(std::shared_ptr< TypeInfo > eventType)
std::string getEventTypeName()
std::shared_ptr< TypeInfo > eventType
std::function< void(smacc2::ISmaccState *)> factoryFunction
std::shared_ptr< StateReactorHandler > srh
std::vector< std::shared_ptr< SmaccEventInfo > > sourceEventTypes
std::shared_ptr< TypeInfo > outputEventType
std::shared_ptr< TypeInfo > stateReactorType
std::weak_ptr< SmaccStateInfo > ownerState
std::shared_ptr< TypeInfo > objectTagType
std::weak_ptr< const SmaccStateInfo > sourceState
std::shared_ptr< SmaccEventInfo > eventInfo
std::string transitionTag
std::weak_ptr< const SmaccStateInfo > destinyState
std::string transitionType
smacc2::introspection::TypeInfo::Ptr transitionTypeInfo
std::function< void(std::shared_ptr< smacc2::StateReactor >)> fn