56 virtual std::string
getName()
const;
58 template <
typename SmaccComponentType>
61 template <
typename SmaccClientType>
64 inline const std::vector<std::shared_ptr<smacc2::ISmaccClient>> &
getClients();
66 inline const std::vector<std::vector<std::shared_ptr<smacc2::ISmaccClientBehavior>>> &
77 template <
typename TClientBehavior>
80 rclcpp::Node::SharedPtr
getNode();
88 template <
typename TOrthogonal,
typename TClient>
91 std::vector<std::shared_ptr<smacc2::ISmaccClient>>
clients_;
97 std::vector<std::vector<std::shared_ptr<smacc2::ISmaccClientBehavior>>>
clientBehaviors_;
std::vector< std::shared_ptr< smacc2::ISmaccClientBehavior > > currentClientBehaviors()
virtual ~ISmaccOrthogonal()=default
void addClientBehavior(std::shared_ptr< smacc2::ISmaccClientBehavior > clBehavior)
ISmaccOrthogonal(ISmaccOrthogonal &&)=delete
ISmaccStateMachine * getStateMachine()
ISmaccOrthogonal & operator=(const ISmaccOrthogonal &)=delete
ISmaccOrthogonal & operator=(ISmaccOrthogonal &&)=delete
void setStateMachine(ISmaccStateMachine *value)
bool getGlobalSMData(const std::string &name, T &ret)
rclcpp::Logger getLogger()
virtual void onInitialize()
void setGlobalSMData(const std::string &name, T value)
void requiresComponent(SmaccComponentType *&storage)
std::vector< std::shared_ptr< smacc2::ISmaccClient > > clients_
void initState(ISmaccState *state)
ISmaccOrthogonal(const ISmaccOrthogonal &)=delete
ISmaccStateMachine * stateMachine_
bool requiresClient(SmaccClientType *&storage)
void assignClientToOrthogonal(TClient *client)
std::vector< std::vector< std::shared_ptr< smacc2::ISmaccClientBehavior > > > clientBehaviors_
virtual std::string getName() const
ISmaccOrthogonal()=default
rclcpp::Node::SharedPtr getNode()
const std::vector< std::vector< std::shared_ptr< smacc2::ISmaccClientBehavior > > > & getClientBehaviors() const
TClientBehavior * getClientBehavior(int index=0)
const std::vector< std::shared_ptr< smacc2::ISmaccClient > > & getClients()