fake

package
v0.2.31 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Overview

Package fake implements a fake camera which always returns the same image with a user specified resolution.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attrs added in v0.2.13

type Attrs struct {
	Width  int `json:"width,omitempty"`
	Height int `json:"height,omitempty"`
}

Attrs are the attributes of the fake camera config.

type Camera

type Camera struct {
	generic.Echo
	Name   string
	Model  *transform.PinholeCameraModel
	Width  int
	Height int
}

Camera is a fake camera that always returns the same image.

func (*Camera) NextPointCloud

func (c *Camera) NextPointCloud(ctx context.Context) (pointcloud.PointCloud, error)

NextPointCloud always returns a pointcloud of the chess board.

func (*Camera) Read

func (c *Camera) Read(ctx context.Context) (image.Image, func(), error)

Read always returns the same image of a chess board.

Jump to

Keyboard shortcuts

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