fake

package
v0.2.24 Latest Latest
Warning

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

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

Documentation

Overview

Package fake implements a fake slam service.

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) GetInternalStateStream added in v0.2.20

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

GetInternalStateStream returns a callback function which will return the next chunk of the current internal state of the slam algo.

func (*SLAM) GetPointCloudMapStream added in v0.2.20

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

GetPointCloudMapStream returns a callback function which will return the next chunk of the current pointcloud map.

func (*SLAM) GetPosition added in v0.2.23

func (slamSvc *SLAM) GetPosition(ctx context.Context, name string) (spatialmath.Pose, string, error)

GetPosition returns a Pose and a component reference string 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