Documentation ¶
Overview ¶
Package fake implements a fake slam service.
Index ¶
- type SLAM
- func (slamSvc *SLAM) GetInternalState(ctx context.Context, name string) (func() ([]byte, error), error)
- func (slamSvc *SLAM) GetPointCloudMap(ctx context.Context, name string) (func() ([]byte, error), error)
- func (slamSvc *SLAM) GetPosition(ctx context.Context, name string) (spatialmath.Pose, string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SLAM ¶
SLAM is a fake slam that returns generic data.
func (*SLAM) GetInternalState ¶
func (slamSvc *SLAM) GetInternalState(ctx context.Context, name string) (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) GetPointCloudMap ¶ added in v0.2.32
func (slamSvc *SLAM) GetPointCloudMap(ctx context.Context, name string) (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, name string) (spatialmath.Pose, string, error)
GetPosition returns a Pose and a component reference string of the robot's current location according to SLAM.
Click to show internal directories.
Click to hide internal directories.