VisionServer  v2.1.1-1-g21dc5465
FRC vision library
vs2::VisionServer::BasePipe Class Referenceabstract

#include <visionserver2.h>

+ Inheritance diagram for vs2::VisionServer::BasePipe:
+ Collaboration diagram for vs2::VisionServer::BasePipe:

Public Member Functions

const std::string & getName () const
 
const std::shared_ptr< nt::NetworkTable > & getTable () const
 
virtual void process (cv::Mat &io_frame)=0
 
virtual void init ()
 
virtual void close ()
 

Static Public Member Functions

static const std::shared_ptr< nt::NetworkTable > & ntable ()
 

Protected Member Functions

 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
 

Private Attributes

std::string name
 
cs::CvSink input
 
const cv::Mat_< float > * src_matrix {&VisionCamera::default_matrix}
 
const cv::Mat_< float > * src_distort {&VisionCamera::default_distort}
 
const std::shared_ptr< nt::NetworkTable > table
 

Friends

class VisionServer
 

Detailed Description

Definition at line 38 of file visionserver2.h.

Constructor & Destructor Documentation

◆ BasePipe() [1/4]

vs2::VisionServer::BasePipe::BasePipe ( const char *  name)
inlineprotected

Definition at line 54 of file visionserver2.h.

◆ BasePipe() [2/4]

vs2::VisionServer::BasePipe::BasePipe ( const std::string &  name)
inlineprotected

Definition at line 57 of file visionserver2.h.

◆ BasePipe() [3/4]

vs2::VisionServer::BasePipe::BasePipe ( std::string &&  name)
inlineprotected

Definition at line 60 of file visionserver2.h.

◆ BasePipe() [4/4]

vs2::VisionServer::BasePipe::BasePipe ( )
protecteddelete

Member Function Documentation

◆ ntable()

static const std::shared_ptr< nt::NetworkTable > & vs2::VisionServer::BasePipe::ntable ( )
inlinestatic

Definition at line 41 of file visionserver2.h.

◆ getName()

const std::string & vs2::VisionServer::BasePipe::getName ( ) const
inline

Definition at line 46 of file visionserver2.h.

◆ getTable()

const std::shared_ptr< nt::NetworkTable > & vs2::VisionServer::BasePipe::getTable ( ) const
inline

Definition at line 47 of file visionserver2.h.

◆ process()

◆ init()

virtual void vs2::VisionServer::BasePipe::init ( )
inlinevirtual

Definition at line 50 of file visionserver2.h.

◆ close()

virtual void vs2::VisionServer::BasePipe::close ( )
inlinevirtual

Definition at line 51 of file visionserver2.h.

◆ setCamera()

void VisionServer::BasePipe::setCamera ( const VisionCamera cam)
protected

Definition at line 21 of file visionserver2.cpp.

◆ setPipeline()

void VisionServer::BasePipe::setPipeline ( const BasePipe pipe)
protected

Definition at line 27 of file visionserver2.cpp.

◆ setSource()

void VisionServer::BasePipe::setSource ( const cs::VideoSource &  src)
protected

Definition at line 33 of file visionserver2.cpp.

◆ getFrame()

void VisionServer::BasePipe::getFrame ( cv::Mat &  io_frame)
protected

Definition at line 39 of file visionserver2.cpp.

◆ getSrcMatrix()

const cv::Mat1f & vs2::VisionServer::BasePipe::getSrcMatrix ( ) const
inlineprotected

Definition at line 71 of file visionserver2.h.

◆ getSrcDistort()

const cv::Mat1f & vs2::VisionServer::BasePipe::getSrcDistort ( ) const
inlineprotected

Definition at line 72 of file visionserver2.h.

Friends And Related Function Documentation

◆ VisionServer

friend class VisionServer
friend

Definition at line 39 of file visionserver2.h.

Member Data Documentation

◆ name

std::string vs2::VisionServer::BasePipe::name
private

Definition at line 75 of file visionserver2.h.

◆ input

cs::CvSink vs2::VisionServer::BasePipe::input
private

Definition at line 76 of file visionserver2.h.

◆ src_matrix

const cv::Mat_<float>* vs2::VisionServer::BasePipe::src_matrix {&VisionCamera::default_matrix}
private

Definition at line 78 of file visionserver2.h.

◆ src_distort

const cv::Mat_<float> * vs2::VisionServer::BasePipe::src_distort {&VisionCamera::default_distort}
private

Definition at line 79 of file visionserver2.h.

◆ table

const std::shared_ptr<nt::NetworkTable> vs2::VisionServer::BasePipe::table
private

Definition at line 81 of file visionserver2.h.


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