Class SendableCameraWrapper

    • Method Detail

      • wrap

        public static SendableCameraWrapper wrap​(String cameraName,
                                                 String... cameraUrls)
        Creates a wrapper for an arbitrary camera stream. The stream URLs must be specified using a host resolvable by a program running on a different host (such as a dashboard); prefer using static IP addresses (if known) or DHCP identifiers such as "raspberrypi.local".

        If a wrapper already exists for the given camera, that wrapper is returned and the specified URLs are ignored.

        Parameters:
        cameraName - the name of the camera. Cannot be null or empty
        cameraUrls - the URLs with which the camera stream may be accessed. At least one URL must be specified
        Returns:
        a sendable wrapper object for the video source, usable in Shuffleboard via ShuffleboardTab.add(Sendable) and ShuffleboardLayout.add(Sendable)