Documentation
¶
Overview ¶
Package fake implements a fake base.
Index ¶
- func NewBase(ctx context.Context, cfg config.Component, logger golog.Logger) (base.LocalBase, error)
- type Base
- func (b *Base) Close()
- func (b *Base) IsMoving(ctx context.Context) (bool, error)
- func (b *Base) MoveStraight(ctx context.Context, distanceMm int, mmPerSec float64, ...) error
- func (b *Base) SetPower(ctx context.Context, linear, angular r3.Vector, extra map[string]interface{}) error
- func (b *Base) SetVelocity(ctx context.Context, linear, angular r3.Vector, extra map[string]interface{}) error
- func (b *Base) Spin(ctx context.Context, angleDeg, degsPerSec float64, ...) error
- func (b *Base) Stop(ctx context.Context, extra map[string]interface{}) error
- func (b *Base) Width(ctx context.Context) (int, error)
- func (b *Base) WrapWithKinematics(ctx context.Context, slamSvc slam.Service) (base.KinematicBase, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Base ¶
type Base struct { generic.Echo Name string CloseCount int // contains filtered or unexported fields }
Base is a fake base that returns what it was provided in each method.
func (*Base) MoveStraight ¶
func (b *Base) MoveStraight(ctx context.Context, distanceMm int, mmPerSec float64, extra map[string]interface{}) error
MoveStraight does nothing.
func (*Base) SetPower ¶
func (b *Base) SetPower(ctx context.Context, linear, angular r3.Vector, extra map[string]interface{}) error
SetPower does nothing.
func (*Base) SetVelocity ¶
func (b *Base) SetVelocity(ctx context.Context, linear, angular r3.Vector, extra map[string]interface{}) error
SetVelocity does nothing.
func (*Base) Spin ¶
func (b *Base) Spin(ctx context.Context, angleDeg, degsPerSec float64, extra map[string]interface{}) error
Spin does nothing.
func (*Base) WrapWithKinematics ¶ added in v0.2.35
func (b *Base) WrapWithKinematics(ctx context.Context, slamSvc slam.Service) (base.KinematicBase, error)
WrapWithKinematics creates a KinematicBase from the fake Base so that it satisfies the ModelFramer and InputEnabled interfaces.
Click to show internal directories.
Click to hide internal directories.