SMACC2
Loading...
Searching...
No Matches
cl_rgb::ClRgb Class Reference

#include <cl_rgb.hpp>

Inheritance diagram for cl_rgb::ClRgb:
Inheritance graph
Collaboration diagram for cl_rgb::ClRgb:
Collaboration graph

Public Member Functions

 ClRgb (const RgbParams &params)
 
 ~ClRgb () override
 
template<typename TOrthogonal , typename TClient >
void onComponentInitialization ()
 
- Public Member Functions inherited from smacc2::ISmaccClient
 ISmaccClient ()
 
virtual ~ISmaccClient ()
 
 ISmaccClient (const ISmaccClient &)=delete
 
ISmaccClient & operator= (const ISmaccClient &)=delete
 
 ISmaccClient (ISmaccClient &&)=delete
 
ISmaccClient & operator= (ISmaccClient &&)=delete
 
virtual void onInitialize ()
 
virtual std::string getName () const
 
template<typename TComponent >
TComponent * getComponent ()
 
template<typename TComponent >
TComponent * getComponent (const std::string &name)
 
template<typename TComponent >
TComponent * getComponent (int index)
 
virtual smacc2::introspection::TypeInfo::Ptr getType ()
 
ISmaccStateMachine * getStateMachine ()
 
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)
 
const std::vector< std::shared_ptr< ISmaccComponent > > & iterateComponents () const
 
template<typename EventType >
void postEvent (const EventType &ev)
 
template<typename EventType >
void postEvent ()
 

Private Attributes

RgbParams params_
 

Additional Inherited Members

- Protected Member Functions inherited from smacc2::ISmaccClient
template<typename TOrthogonal , typename TClient >
void onComponentInitialization ()
 
template<typename TOrthogonal , typename TSourceObject >
void onStateOrthogonalAllocation ()
 
template<typename SmaccComponentType , typename TOrthogonal , typename TClient , typename... TArgs>
SmaccComponentType * createComponent (const TArgs &... targs)
 
template<typename SmaccComponentType , typename TOrthogonal , typename TClient , typename... TArgs>
SmaccComponentType * createNamedComponent (const std::string &name, const 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 39 of file cl_rgb.hpp.

Constructor & Destructor Documentation

◆ ClRgb()

cl_rgb::ClRgb::ClRgb ( const RgbParams & params)
explicit

Definition at line 20 of file cl_rgb.cpp.

20: params_(params) {}
RgbParams params_
Definition cl_rgb.hpp:60

◆ ~ClRgb()

cl_rgb::ClRgb::~ClRgb ( )
override

Definition at line 22 of file cl_rgb.cpp.

22{}

Member Function Documentation

◆ onComponentInitialization()

template<typename TOrthogonal , typename TClient >
void cl_rgb::ClRgb::onComponentInitialization ( )
inline

Definition at line 46 of file cl_rgb.hpp.

47 {
48 // the transform tree first: every camera resolves it in onInitialize
50 for (const auto & camera : params_.cameras)
51 {
53 }
57 }
SmaccComponentType * createComponent(const TArgs &... targs)
SmaccComponentType * createNamedComponent(const std::string &name, const TArgs &... targs)
SegmenterParams segmenter
Definition cl_rgb.hpp:34
TableParams table
Definition cl_rgb.hpp:33
std::vector< CameraParams > cameras
Definition cl_rgb.hpp:32

References cl_rgb::RgbParams::cameras, smacc2::ISmaccClient::createComponent(), smacc2::ISmaccClient::createNamedComponent(), params_, cl_rgb::RgbParams::segmenter, and cl_rgb::RgbParams::table.

Here is the call graph for this function:

Member Data Documentation

◆ params_

RgbParams cl_rgb::ClRgb::params_
private

Definition at line 60 of file cl_rgb.hpp.

Referenced by onComponentInitialization().


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