Documentation ¶
Overview ¶
Package fake implements a fake slam service
Index ¶
- type SLAM
- func (slamSvc *SLAM) InternalState(ctx context.Context) (func() ([]byte, error), error)
- func (slamSvc *SLAM) LatestMapInfo(ctx context.Context) (time.Time, error)
- func (slamSvc *SLAM) Limits(ctx context.Context) ([]referenceframe.Limit, error)
- func (slamSvc *SLAM) PointCloudMap(ctx context.Context) (func() ([]byte, error), error)
- func (slamSvc *SLAM) Position(ctx context.Context) (spatialmath.Pose, string, error)
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 (*SLAM) InternalState ¶ added in v0.8.0
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
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
Limits returns the bounds of the slam map as a list of referenceframe.Limits.
func (*SLAM) PointCloudMap ¶ added in v0.8.0
PointCloudMap returns a callback function which will return the next chunk of the current pointcloud map.
Click to show internal directories.
Click to hide internal directories.