Documentation ¶
Overview ¶
Package mybase implements a base that only supports SetPower (basic forward/back/turn controls.)
Index ¶
- Variables
- type MyBase
- func (base *MyBase) Close(ctx context.Context) error
- func (base *MyBase) DoCommand(ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error)
- func (base *MyBase) IsMoving(ctx context.Context) (bool, error)
- func (base *MyBase) MoveStraight(ctx context.Context, distanceMm int, mmPerSec float64, ...) error
- func (base *MyBase) Reconfigure(ctx context.Context, deps resource.Dependencies, conf resource.Config) error
- func (base *MyBase) SetPower(ctx context.Context, linear, angular r3.Vector, extra map[string]interface{}) error
- func (base *MyBase) SetVelocity(ctx context.Context, linear, angular r3.Vector, extra map[string]interface{}) error
- func (base *MyBase) Spin(ctx context.Context, angleDeg, degsPerSec float64, ...) error
- func (base *MyBase) Stop(ctx context.Context, extra map[string]interface{}) error
- type MyBaseConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Model = resource.NewModel("acme", "demo", "mybase")
)
Functions ¶
This section is empty.
Types ¶
type MyBase ¶
func (*MyBase) MoveStraight ¶
func (*MyBase) Reconfigure ¶
func (*MyBase) SetVelocity ¶
type MyBaseConfig ¶ added in v0.2.25
Click to show internal directories.
Click to hide internal directories.