Documentation ¶
Overview ¶
Package fake implements a fake gantry.
Index ¶
- func NewGantry(name resource.Name) gantry.Gantry
- type Gantry
- func (g *Gantry) CurrentInputs(ctx context.Context) ([]referenceframe.Input, error)
- func (g *Gantry) GoToInputs(ctx context.Context, goal []referenceframe.Input) error
- func (g *Gantry) IsMoving(ctx context.Context) (bool, error)
- func (g *Gantry) Lengths(ctx context.Context, extra map[string]interface{}) ([]float64, error)
- func (g *Gantry) ModelFrame() referenceframe.Model
- func (g *Gantry) MoveToPosition(ctx context.Context, positionsMm []float64, extra map[string]interface{}) error
- func (g *Gantry) Position(ctx context.Context, extra map[string]interface{}) ([]float64, error)
- func (g *Gantry) Stop(ctx context.Context, extra map[string]interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Gantry ¶
type Gantry struct { resource.Named resource.TriviallyReconfigurable resource.TriviallyCloseable // contains filtered or unexported fields }
Gantry is a fake gantry that can simply read and set properties.
func (*Gantry) CurrentInputs ¶
CurrentInputs returns positions in the Gantry frame model..
func (*Gantry) GoToInputs ¶
GoToInputs moves using the Gantry frames..
func (*Gantry) ModelFrame ¶
func (g *Gantry) ModelFrame() referenceframe.Model
ModelFrame returns a Gantry frame.
func (*Gantry) MoveToPosition ¶
func (g *Gantry) MoveToPosition(ctx context.Context, positionsMm []float64, extra map[string]interface{}) error
MoveToPosition is in meters.
Click to show internal directories.
Click to hide internal directories.