fake

package
v0.2.19 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: AGPL-3.0 Imports: 23 Imported by: 0

Documentation

Overview

Package fake implements a fake base.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SLAM

type SLAM struct {
	generic.Echo
	Name string
	// contains filtered or unexported fields
}

SLAM is a fake slam that returns generic data.

func (*SLAM) GetInternalState

func (slamSvc *SLAM) GetInternalState(ctx context.Context, name string) ([]byte, error)

GetInternalState returns the internal state of a slam algo. Currently the internal state of cartogropher.

func (*SLAM) GetMap

func (slamSvc *SLAM) GetMap(ctx context.Context, name, mimeType string, cp *referenceframe.PoseInFrame,
	include bool, extra map[string]interface{},
) (string, image.Image, *vision.Object, error)

GetMap returns either a vision.Object or image.Image based on request mimeType.

func (*SLAM) Position

func (slamSvc *SLAM) Position(ctx context.Context, name string, extra map[string]interface{}) (*referenceframe.PoseInFrame, error)

Position returns a PoseInFrame of the robot's current location according to SLAM.

Jump to

Keyboard shortcuts

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