WPILibC++
2019.2.1-27-gd55ca19
|
A wrapper to make video sources sendable and usable from Shuffleboard. More...
#include <SendableCameraWrapper.h>
Public Member Functions | |
SendableCameraWrapper (CS_Source source, const private_init &) | |
Creates a new sendable wrapper. More... | |
void | InitSendable (SendableBuilder &builder) override |
Initializes this Sendable object. More... | |
![]() | |
SendableBase (bool addLiveWindow=true) | |
Creates an instance of the sensor base. More... | |
SendableBase (SendableBase &&rhs) | |
SendableBase & | operator= (SendableBase &&rhs) |
std::string | GetName () const final |
Gets the name of this Sendable object. More... | |
void | SetName (const wpi::Twine &name) final |
Sets the name of this Sendable object. More... | |
std::string | GetSubsystem () const final |
Gets the subsystem name of this Sendable object. More... | |
void | SetSubsystem (const wpi::Twine &subsystem) final |
Sets the subsystem name of this Sendable object. More... | |
![]() | |
Sendable (Sendable &&)=default | |
Sendable & | operator= (Sendable &&)=default |
void | SetName (const wpi::Twine &subsystem, const wpi::Twine &name) |
Sets both the subsystem name and device name of this Sendable object. More... | |
Static Public Member Functions | |
static SendableCameraWrapper & | Wrap (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 SendableCameraWrapper & | Wrap (CS_Source source) |
Additional Inherited Members | |
![]() | |
void | AddChild (std::shared_ptr< Sendable > child) |
Add a child component. More... | |
void | AddChild (void *child) |
Add a child component. More... | |
void | SetName (const wpi::Twine &moduleType, int channel) |
Sets the name of the sensor with a channel number. More... | |
void | SetName (const wpi::Twine &moduleType, int moduleNumber, int channel) |
Sets the name of the sensor with a module and channel number. More... | |
A wrapper to make video sources sendable and usable from Shuffleboard.
frc::SendableCameraWrapper::SendableCameraWrapper | ( | CS_Source | source, |
const private_init & | |||
) |
Creates a new sendable wrapper.
Private constructor to avoid direct instantiation with multiple wrappers floating around for the same camera.
source | the source to wrap |
|
overridevirtual |
|
static |
Gets a sendable wrapper object for the given video source, creating the wrapper if one does not already exist for the source.
source | the video source to wrap |