Class 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 Detail

      • PublishVideoOperation

        @Inject
        public PublishVideoOperation​(InputSocket.Factory inputSocketFactory)
    • Method Detail

      • getInputSockets

        public java.util.List<InputSocket> getInputSockets()
        Specified by:
        getInputSockets in interface Operation
        Returns:
        A list of sockets for the inputs that the operation expects.
      • getOutputSockets

        public java.util.List<OutputSocket> getOutputSockets()
        Specified by:
        getOutputSockets in interface Operation
        Returns:
        A list of sockets for the outputs that the operation produces.
      • perform

        public void perform()
        Description copied from interface: Operation
        Performs this Operation.
        Specified by:
        perform in interface Operation
      • cleanUp

        public void cleanUp()
        Description copied from interface: Operation
        Allows the step to clean itself up when removed from the pipeline. This should only be called by Step.setRemoved() to ensure correct synchronization.
        Specified by:
        cleanUp in interface Operation