fake

package
v0.4.0-rc0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 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) GetInternalState

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

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

func (*SLAM) GetLatestMapInfo added in v0.4.0

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

GetLatestMapInfo returns a message indicating details regarding the latest map returned to the system.

func (*SLAM) GetLimits added in v0.3.0

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

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

func (*SLAM) GetPointCloudMap added in v0.2.32

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

GetPointCloudMap 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) (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