fake

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: AGPL-3.0 Imports: 17 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 {
	resource.Named
	resource.TriviallyReconfigurable
	resource.TriviallyCloseable
	// contains filtered or unexported fields
}

SLAM is a fake slam that returns generic data.

func NewSLAM added in v0.2.28

func NewSLAM(name resource.Name, logger logging.Logger) *SLAM

NewSLAM is a constructor for a fake slam service.

func (*SLAM) InternalState added in v0.8.0

func (slamSvc *SLAM) InternalState(ctx context.Context) (func() ([]byte, error), error)

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

func (*SLAM) Limits added in v0.8.0

func (slamSvc *SLAM) Limits(ctx context.Context, useEditedMap bool) ([]referenceframe.Limit, error)

Limits returns the bounds of the slam map as a list of referenceframe.Limits.

func (*SLAM) PointCloudMap added in v0.8.0

func (slamSvc *SLAM) PointCloudMap(ctx context.Context, returnEditedMap bool) (func() ([]byte, error), error)

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

func (*SLAM) Position

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

Position returns a Pose and a component reference string of the robot's current location according to SLAM.

func (*SLAM) Properties added in v0.18.0

func (slamSvc *SLAM) Properties(ctx context.Context) (slam.Properties, error)

Properties returns the mapping mode of the slam service as well as a boolean indicating if it is running in the cloud or locally. In the case of fake slam, it will return that the service is being run locally and is creating a new map.

Jump to

Keyboard shortcuts

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