Class PublishVideoOperation
- java.lang.Object
-
- edu.wpi.grip.core.operations.composite.PublishVideoOperation
-
- All Implemented Interfaces:
Operation
public class PublishVideoOperation extends java.lang.Object implements Operation
Publish an M-JPEG stream with the protocol used by SmartDashboard and the FRC Dashboard. This allows FRC teams to view video streams on their dashboard during competition even when GRIP has exclusive access to the camera. In addition, an intermediate processed image in the pipeline could be published instead. Based on WPILib's CameraServer class: https://github.com/robotpy/allwpilib/blob/master/wpilibj/src/athena/java/edu/wpi/first/wpilibj /CameraServer.java
-
-
Constructor Summary
Constructors Constructor Description PublishVideoOperation(InputSocket.Factory inputSocketFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanUp()Allows the step to clean itself up when removed from the pipeline.java.util.List<InputSocket>getInputSockets()java.util.List<OutputSocket>getOutputSockets()voidperform()Performs thisOperation.
-
-
-
Constructor Detail
-
PublishVideoOperation
@Inject public PublishVideoOperation(InputSocket.Factory inputSocketFactory)
-
-
Method Detail
-
getInputSockets
public java.util.List<InputSocket> getInputSockets()
- Specified by:
getInputSocketsin interfaceOperation- Returns:
- A list of sockets for the inputs that the operation expects.
-
getOutputSockets
public java.util.List<OutputSocket> getOutputSockets()
- Specified by:
getOutputSocketsin interfaceOperation- Returns:
- A list of sockets for the outputs that the operation produces.
-
perform
public void perform()
Description copied from interface:OperationPerforms thisOperation.
-
cleanUp
public void cleanUp()
Description copied from interface:OperationAllows the step to clean itself up when removed from the pipeline. This should only be called byStep.setRemoved()to ensure correct synchronization.
-
-