Class SendableCameraWrapper
- java.lang.Object
-
- edu.wpi.first.wpilibj.SendableBase
-
- edu.wpi.first.wpilibj.shuffleboard.SendableCameraWrapper
-
- All Implemented Interfaces:
Sendable
,AutoCloseable
public final class SendableCameraWrapper extends SendableBase
A wrapper to make video sources sendable and usable from Shuffleboard.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
initSendable(SendableBuilder builder)
Initializes thisSendable
object.static SendableCameraWrapper
wrap(VideoSource source)
Gets a sendable wrapper object for the given video source, creating the wrapper if one does not already exist for the source.-
Methods inherited from class edu.wpi.first.wpilibj.SendableBase
addChild, close, free, getName, getSubsystem, setName, setName, setName, setSubsystem
-
-
-
-
Method Detail
-
wrap
public static SendableCameraWrapper wrap(VideoSource source)
Gets a sendable wrapper object for the given video source, creating the wrapper if one does not already exist for the source.- Parameters:
source
- the video source to wrap- Returns:
- a sendable wrapper object for the video source, usable in Shuffleboard via
ShuffleboardTab.add(Sendable)
andShuffleboardLayout.add(Sendable)
-
initSendable
public void initSendable(SendableBuilder builder)
Description copied from interface:Sendable
Initializes thisSendable
object.- Parameters:
builder
- sendable builder
-
-