WPILibC++ 2024.3.2
frc::SendableCameraWrapper Class Reference

A wrapper to make video sources sendable and usable from Shuffleboard. More...

#include <frc/shuffleboard/SendableCameraWrapper.h>

Inheritance diagram for frc::SendableCameraWrapper:
wpi::Sendable wpi::SendableHelper< SendableCameraWrapper >

Public Member Functions

 SendableCameraWrapper (std::string_view cameraName, const private_init &)
 Creates a new sendable wrapper. More...
 
 SendableCameraWrapper (std::string_view cameraName, std::span< const std::string > cameraUrls, const private_init &)
 Creates a new sendable wrapper. More...
 
void InitSendable (wpi::SendableBuilder &builder) override
 Initializes this Sendable object. More...
 
- Public Member Functions inherited from wpi::Sendable
virtual ~Sendable ()=default
 
virtual void InitSendable (SendableBuilder &builder)=0
 Initializes this Sendable object. More...
 
- Public Member Functions inherited from wpi::SendableHelper< SendableCameraWrapper >
 SendableHelper (const SendableHelper &rhs)=default
 
 SendableHelper (SendableHelper &&rhs)
 
SendableHelperoperator= (const SendableHelper &rhs)=default
 
SendableHelperoperator= (SendableHelper &&rhs)
 

Static Public Member Functions

static SendableCameraWrapperWrap (const cs::VideoSource &source)
 Gets a sendable wrapper object for the given video source, creating the wrapper if one does not already exist for the source. More...
 
static SendableCameraWrapperWrap (CS_Source source)
 
static SendableCameraWrapperWrap (std::string_view cameraName, std::span< const std::string > cameraUrls)
 

Additional Inherited Members

- Protected Member Functions inherited from wpi::SendableHelper< SendableCameraWrapper >
 SendableHelper ()=default
 
 ~SendableHelper ()
 

Detailed Description

A wrapper to make video sources sendable and usable from Shuffleboard.

Constructor & Destructor Documentation

◆ SendableCameraWrapper() [1/2]

frc::SendableCameraWrapper::SendableCameraWrapper ( std::string_view  cameraName,
const private_init &   
)
inline

Creates a new sendable wrapper.

Private constructor to avoid direct instantiation with multiple wrappers floating around for the same camera.

Parameters
cameraNamethe name of the camera to wrap

◆ SendableCameraWrapper() [2/2]

frc::SendableCameraWrapper::SendableCameraWrapper ( std::string_view  cameraName,
std::span< const std::string >  cameraUrls,
const private_init &   
)
inline

Creates a new sendable wrapper.

Private constructor to avoid direct instantiation with multiple wrappers floating around for the same camera.

Parameters
cameraNamethe name of the camera to wrap
cameraUrlscamera URLs

Member Function Documentation

◆ InitSendable()

void frc::SendableCameraWrapper::InitSendable ( wpi::SendableBuilder builder)
overridevirtual

Initializes this Sendable object.

Parameters
buildersendable builder

Implements wpi::Sendable.

◆ Wrap() [1/3]

SendableCameraWrapper & frc::SendableCameraWrapper::Wrap ( const cs::VideoSource source)
inlinestatic

Gets a sendable wrapper object for the given video source, creating the wrapper if one does not already exist for the source.

Parameters
sourcethe video source to wrap
Returns
a sendable wrapper object for the video source, usable in Shuffleboard via ShuffleboardTab::Add() and ShuffleboardLayout::Add()

◆ Wrap() [2/3]

SendableCameraWrapper & frc::SendableCameraWrapper::Wrap ( CS_Source  source)
inlinestatic

◆ Wrap() [3/3]

SendableCameraWrapper & frc::SendableCameraWrapper::Wrap ( std::string_view  cameraName,
std::span< const std::string >  cameraUrls 
)
inlinestatic

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