VisionServer  v2.1.1-1-g21dc5465
FRC vision library
vs2::SequentialPipeline< pipelines_t > Class Template Reference

#include <visionserver2.h>

+ Inheritance diagram for vs2::SequentialPipeline< pipelines_t >:
+ Collaboration diagram for vs2::SequentialPipeline< pipelines_t >:

Public Member Functions

 SequentialPipeline ()
 
void addPipeline (VisionServer::BasePipe *)
 
void addPipelines (std::vector< VisionServer::BasePipe * > &&)
 
void addPipelines (std::initializer_list< VisionServer::BasePipe * >)
 
virtual void process (cv::Mat &io_frame) override
 
- Public Member Functions inherited from vs2::VisionServer::BasePipe
const std::string & getName () const
 
const std::shared_ptr< nt::NetworkTable > & getTable () const
 
virtual void init ()
 
virtual void close ()
 

Static Protected Member Functions

static std::string Construct (std::vector< std::unique_ptr< VisionServer::BasePipe > > &)
 

Protected Attributes

std::vector< VisionServer::BasePipe * > pipelines
 
std::vector< std::unique_ptr< VisionServer::BasePipe > > heap_ptrs
 

Private Types

typedef struct SequentialPipeline< pipelines_t... > This_t
 

Additional Inherited Members

- Static Public Member Functions inherited from vs2::VisionServer::BasePipe
static const std::shared_ptr< nt::NetworkTable > & ntable ()
 
- Protected Member Functions inherited from vs2::VPipeline< SequentialPipeline< pipelines_t... > >
 VPipeline ()=delete
 
 VPipeline (const VPipeline &)=delete
 
 VPipeline (const char *name)
 
 VPipeline (const std::string &name)
 
 VPipeline (std::string &&name)
 
virtual ~VPipeline ()=default
 
- Protected Member Functions inherited from vs2::VisionServer::BasePipe
 BasePipe (const char *name)
 
 BasePipe (const std::string &name)
 
 BasePipe (std::string &&name)
 
 BasePipe ()=delete
 
void setCamera (const VisionCamera &)
 
void setPipeline (const BasePipe &)
 
void setSource (const cs::VideoSource &)
 
void getFrame (cv::Mat &)
 
const cv::Mat1f & getSrcMatrix () const
 
const cv::Mat1f & getSrcDistort () const
 

Detailed Description

template<class... pipelines_t>
class vs2::SequentialPipeline< pipelines_t >

Definition at line 217 of file visionserver2.h.

Member Typedef Documentation

◆ This_t

template<class... pipelines_t>
typedef struct SequentialPipeline< pipelines_t... > vs2::SequentialPipeline< pipelines_t >::This_t
private

Definition at line 218 of file visionserver2.h.

Constructor & Destructor Documentation

◆ SequentialPipeline()

template<class... pipelines_t>
vs2::SequentialPipeline< pipelines_t >::SequentialPipeline ( )
inline

Definition at line 220 of file visionserver2.h.

Member Function Documentation

◆ addPipeline()

template<class... pipelines_t>
void vs2::SequentialPipeline< pipelines_t >::addPipeline ( VisionServer::BasePipe p)

Definition at line 344 of file visionserver2.h.

◆ addPipelines() [1/2]

template<class... pipelines_t>
void vs2::SequentialPipeline< pipelines_t >::addPipelines ( std::vector< VisionServer::BasePipe * > &&  ps)

Definition at line 348 of file visionserver2.h.

◆ addPipelines() [2/2]

template<class... pipelines_t>
void vs2::SequentialPipeline< pipelines_t >::addPipelines ( std::initializer_list< VisionServer::BasePipe * >  ps)

Definition at line 352 of file visionserver2.h.

◆ process()

template<class... pipelines_t>
void vs2::SequentialPipeline< pipelines_t >::process ( cv::Mat &  io_frame)
overridevirtual

Reimplemented from vs2::VPipeline< SequentialPipeline< pipelines_t... > >.

Definition at line 356 of file visionserver2.h.

◆ Construct()

template<class... pipelines_t>
std::string vs2::SequentialPipeline< pipelines_t >::Construct ( std::vector< std::unique_ptr< VisionServer::BasePipe > > &  pipes)
inlinestaticprotected

Definition at line 331 of file visionserver2.h.

Member Data Documentation

◆ pipelines

template<class... pipelines_t>
std::vector<VisionServer::BasePipe*> vs2::SequentialPipeline< pipelines_t >::pipelines
protected

Definition at line 237 of file visionserver2.h.

◆ heap_ptrs

template<class... pipelines_t>
std::vector<std::unique_ptr<VisionServer::BasePipe> > vs2::SequentialPipeline< pipelines_t >::heap_ptrs
protected

Definition at line 238 of file visionserver2.h.


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