30template <
typename EventType>
36template <
typename EventType>
42template <
typename TComponent>
51 this->
getLogger(), std::string(
"Required component ") +
53 " not found. Available components:");
55 std::vector<std::shared_ptr<ISmaccComponent>> components;
58 for (
auto c : components)
60 RCLCPP_DEBUG(this->
getLogger(),
"- Component %s", c->getName().c_str());
63 throw std::runtime_error(
64 std::string(
"Component ") +
demangleSymbol(
typeid(TComponent).name()) +
" not found");
68template <
typename TComponent>
70 const std::string & name, TComponent *& requiredComponentStorage,
78 this->
getLogger(), std::string(
"Required component with name: '") + name +
"'" +
80 " not found. Available components:");
82 std::vector<std::shared_ptr<ISmaccComponent>> components;
85 for (
auto c : components)
87 RCLCPP_DEBUG(this->
getLogger(),
" - Component %s", c->getName().c_str());
90 throw std::runtime_error(
91 std::string(
"Component ") +
demangleSymbol(
typeid(TComponent).name()) +
92 std::string(
" not found"));
96template <
typename TClient>
102template <
typename SmaccComponentType,
typename TOrthogonal,
typename TClient,
typename... TArgs>
108template <
typename SmaccComponentType,
typename TOrthogonal,
typename TClient,
typename... TArgs>
110 const std::string & name,
const TArgs &... targs)
116template <
typename TOrthogonal,
typename TClient>
SmaccComponentType * createComponent(const TArgs &... targs)
SmaccComponentType * createNamedComponent(const std::string &name, const TArgs &... targs)
void requiresClient(SmaccClientType *&storage)
void getComponents(std::vector< std::shared_ptr< ISmaccComponent > > &components)
TComponent * getComponent()
void requiresClient(TClient *&requiredClientStorage)
SmaccComponentType * createSiblingNamedComponent(const std::string &name, const TArgs &... targs)
SmaccComponentType * createSiblingComponent(const TArgs &... targs)
rclcpp::Logger getLogger() const
void onComponentInitialization()
ISmaccStateMachine * stateMachine_
void requiresComponent(TComponent *&requiredComponentStorage, ComponentRequirement requirementType=ComponentRequirement::SOFT)
void postEvent(EventType *ev, EventLifeTime evlifetime=EventLifeTime::ABSOLUTE)
std::string demangleSymbol()
boost::intrusive_ptr< EventType > makeEvent(Args &&... args)