depth

package
v0.1.35 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package depth implements the Depth sensor. Warning: The code in this package might be transient. Stability is not guaranteed.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Depth

type Depth struct {
	Name string
	// contains filtered or unexported fields
}

Depth represents a depth sensor.

func New

func New(deps resource.Dependencies, sensors []string, sensorIndex int) (Depth, error)

New creates a new Depth sensor based on the sensor definition and the service config.

func (Depth) GetData

func (depth Depth) GetData(ctx context.Context) ([]byte, func(), error)

GetData returns data from the depth sensor. The returned function is a release function that must be called once the caller of GetData is done using the image.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL