Class SendableCameraWrapper
- java.lang.Object
-
- edu.wpi.first.wpilibj.shuffleboard.SendableCameraWrapper
-
- All Implemented Interfaces:
Sendable,AutoCloseable
public final class SendableCameraWrapper extends Object implements Sendable, AutoCloseable
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 voidclose()voidinitSendable(SendableBuilder builder)Initializes thisSendableobject.static SendableCameraWrapperwrap(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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface edu.wpi.first.wpilibj.Sendable
addChild, getName, getSubsystem, setName, setName, setName, setName, setSubsystem
-
-
-
-
Method Detail
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable
-
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:SendableInitializes thisSendableobject.- Specified by:
initSendablein interfaceSendable- Parameters:
builder- sendable builder
-
-