Interface Camera

Represents any physical hardware that can capture frames.

interface Camera {
    doCommand: ((command) => Promise<StructType>);
    getImage: ((mimeType?) => Promise<Uint8Array>);
    getPointCloud: (() => Promise<Uint8Array>);
    getProperties: (() => Promise<Properties>);
    renderFrame: ((mimeType?) => Promise<Blob>);
}

Hierarchy (view full)

Implemented by

Properties

doCommand: ((command) => Promise<StructType>)

Send/Receive arbitrary commands to the resource.

Type declaration

getImage: ((mimeType?) => Promise<Uint8Array>)

Return a frame from a camera.

Type declaration

    • (mimeType?): Promise<Uint8Array>
    • Parameters

      • Optional mimeType: MimeType

        A specific MIME type to request. This is not necessarily the same type that will be returned.

      Returns Promise<Uint8Array>

getPointCloud: (() => Promise<Uint8Array>)

Return a point cloud from a camera.

Type declaration

    • (): Promise<Uint8Array>
    • Returns Promise<Uint8Array>

getProperties: (() => Promise<Properties>)

Return the camera properties.

Type declaration

    • (): Promise<Properties>
    • Returns Promise<Properties>

renderFrame: ((mimeType?) => Promise<Blob>)

Render a frame from a camera to an HTTP response.

Type declaration

    • (mimeType?): Promise<Blob>
    • Parameters

      • Optional mimeType: MimeType

        A specific MIME type to request. This is not necessarily the same type that will be returned.

      Returns Promise<Blob>

Generated using TypeDoc