SMACC2
Public Member Functions | Public Attributes | List of all members
sm_husky_barrel_search_1::cl_led_array::ClLedArray Class Reference

#include <cl_led_array.hpp>

Inheritance diagram for sm_husky_barrel_search_1::cl_led_array::ClLedArray:
Inheritance graph
Collaboration diagram for sm_husky_barrel_search_1::cl_led_array::ClLedArray:
Collaboration graph

Public Member Functions

 ClLedArray ()
 
virtual ~ClLedArray ()
 
void onInitialize () override
 
template<typename TOrthogonal , typename TSourceObject >
void onOrthogonalAllocation ()
 
- Public Member Functions inherited from smacc2::ISmaccClient
 ISmaccClient ()
 
virtual ~ISmaccClient ()
 
virtual void onInitialize ()
 
virtual std::string getName () const
 
template<typename TComponent >
TComponent * getComponent ()
 
template<typename TComponent >
TComponent * getComponent (std::string name)
 
template<typename TComponent >
TComponent * getComponent (int index)
 
virtual smacc2::introspection::TypeInfo::Ptr getType ()
 
ISmaccStateMachinegetStateMachine ()
 
template<typename TSmaccSignal , typename T >
void connectSignal (TSmaccSignal &signal, void(T::*callback)(), T *object)
 
template<typename SmaccClientType >
void requiresClient (SmaccClientType *&storage)
 
void getComponents (std::vector< std::shared_ptr< ISmaccComponent > > &components)
 
template<typename EventType >
void postEvent (const EventType &ev)
 
template<typename EventType >
void postEvent ()
 

Public Attributes

smacc2::components::CpTopicPublisher< std_msgs::msg::Int8 > * greenLed_
 
smacc2::components::CpTopicPublisher< std_msgs::msg::Int8 > * yellowLed_
 
smacc2::components::CpTopicPublisher< std_msgs::msg::Int8 > * redLed_
 

Additional Inherited Members

- Protected Member Functions inherited from smacc2::ISmaccClient
template<typename TOrthogonal , typename TSourceObject >
void onOrthogonalAllocation ()
 
template<typename SmaccComponentType , typename TOrthogonal , typename TClient , typename... TArgs>
SmaccComponentType * createComponent (TArgs... targs)
 
template<typename SmaccComponentType , typename TOrthogonal , typename TClient , typename... TArgs>
SmaccComponentType * createNamedComponent (std::string name, TArgs... targs)
 
rclcpp::Node::SharedPtr getNode ()
 
rclcpp::Logger getLogger ()
 
- Protected Attributes inherited from smacc2::ISmaccClient
std::map< ComponentKey, std::shared_ptr< smacc2::ISmaccComponent > > components_
 

Detailed Description

Definition at line 32 of file cl_led_array.hpp.

Constructor & Destructor Documentation

◆ ClLedArray()

sm_husky_barrel_search_1::cl_led_array::ClLedArray::ClLedArray ( )
inline

Definition at line 39 of file cl_led_array.hpp.

39{}

◆ ~ClLedArray()

virtual sm_husky_barrel_search_1::cl_led_array::ClLedArray::~ClLedArray ( )
inlinevirtual

Definition at line 41 of file cl_led_array.hpp.

41{}

Member Function Documentation

◆ onInitialize()

void sm_husky_barrel_search_1::cl_led_array::ClLedArray::onInitialize ( )
inlineoverridevirtual

Reimplemented from smacc2::ISmaccClient.

Definition at line 43 of file cl_led_array.hpp.

44 {
45 greenLed_ =
46 getComponent<smacc2::components::CpTopicPublisher<std_msgs::msg::Int8>>("greenLed");
48 getComponent<smacc2::components::CpTopicPublisher<std_msgs::msg::Int8>>("yellowLed");
49 redLed_ = getComponent<smacc2::components::CpTopicPublisher<std_msgs::msg::Int8>>("redLed");
50 }
smacc2::components::CpTopicPublisher< std_msgs::msg::Int8 > * greenLed_
smacc2::components::CpTopicPublisher< std_msgs::msg::Int8 > * redLed_
smacc2::components::CpTopicPublisher< std_msgs::msg::Int8 > * yellowLed_

References greenLed_, redLed_, and yellowLed_.

◆ onOrthogonalAllocation()

template<typename TOrthogonal , typename TSourceObject >
void sm_husky_barrel_search_1::cl_led_array::ClLedArray::onOrthogonalAllocation ( )
inline

Definition at line 53 of file cl_led_array.hpp.

54 {
55 }

Member Data Documentation

◆ greenLed_

smacc2::components::CpTopicPublisher<std_msgs::msg::Int8>* sm_husky_barrel_search_1::cl_led_array::ClLedArray::greenLed_

Definition at line 35 of file cl_led_array.hpp.

Referenced by onInitialize().

◆ redLed_

smacc2::components::CpTopicPublisher<std_msgs::msg::Int8>* sm_husky_barrel_search_1::cl_led_array::ClLedArray::redLed_

Definition at line 37 of file cl_led_array.hpp.

Referenced by onInitialize().

◆ yellowLed_

smacc2::components::CpTopicPublisher<std_msgs::msg::Int8>* sm_husky_barrel_search_1::cl_led_array::ClLedArray::yellowLed_

Definition at line 36 of file cl_led_array.hpp.

Referenced by onInitialize().


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