fake

package
v0.10.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2023 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 golog.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) LatestMapInfo added in v0.8.0

func (slamSvc *SLAM) LatestMapInfo(ctx context.Context) (time.Time, error)

LatestMapInfo returns information used to determine whether the slam mode is localizing. Fake Slam is always in mapping mode, so it always returns a new timestamp.

func (*SLAM) Limits added in v0.8.0

func (slamSvc *SLAM) Limits(ctx context.Context) ([]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) (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.

Jump to

Keyboard shortcuts

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