Documentation ¶
Overview ¶
Package wrapper is a package that defines an implementation that wraps a partially implemented arm
Index ¶
- func NewWrapperArm(ctx context.Context, deps resource.Dependencies, conf resource.Config, ...) (arm.Arm, error)
- type Arm
- func (wrapper *Arm) CurrentInputs(ctx context.Context) ([]referenceframe.Input, error)
- func (wrapper *Arm) EndPosition(ctx context.Context, extra map[string]interface{}) (spatialmath.Pose, error)
- func (wrapper *Arm) Geometries(ctx context.Context, extra map[string]interface{}) ([]spatialmath.Geometry, error)
- func (wrapper *Arm) GoToInputs(ctx context.Context, inputSteps ...[]referenceframe.Input) error
- func (wrapper *Arm) IsMoving(ctx context.Context) (bool, error)
- func (wrapper *Arm) JointPositions(ctx context.Context, extra map[string]interface{}) ([]referenceframe.Input, error)
- func (wrapper *Arm) ModelFrame() referenceframe.Model
- func (wrapper *Arm) MoveToJointPositions(ctx context.Context, joints []referenceframe.Input, ...) error
- func (wrapper *Arm) MoveToPosition(ctx context.Context, pos spatialmath.Pose, extra map[string]interface{}) error
- func (wrapper *Arm) Reconfigure(ctx context.Context, deps resource.Dependencies, conf resource.Config) error
- func (wrapper *Arm) Stop(ctx context.Context, extra map[string]interface{}) error
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Arm ¶
type Arm struct { resource.Named resource.TriviallyCloseable // contains filtered or unexported fields }
Arm wraps a partial implementation of another arm.
func (*Arm) CurrentInputs ¶
CurrentInputs returns the current inputs of the arm.
func (*Arm) EndPosition ¶
func (wrapper *Arm) EndPosition(ctx context.Context, extra map[string]interface{}) (spatialmath.Pose, error)
EndPosition returns the set position.
func (*Arm) Geometries ¶ added in v0.2.50
func (wrapper *Arm) Geometries(ctx context.Context, extra map[string]interface{}) ([]spatialmath.Geometry, error)
Geometries returns the list of geometries associated with the resource, in any order. The poses of the geometries reflect their current location relative to the frame of the resource.
func (*Arm) GoToInputs ¶
GoToInputs moves the arm to the specified goal inputs.
func (*Arm) JointPositions ¶
func (wrapper *Arm) JointPositions(ctx context.Context, extra map[string]interface{}) ([]referenceframe.Input, error)
JointPositions returns the set joints.
func (*Arm) ModelFrame ¶
func (wrapper *Arm) ModelFrame() referenceframe.Model
ModelFrame returns the dynamic frame of the model.
func (*Arm) MoveToJointPositions ¶
func (wrapper *Arm) MoveToJointPositions(ctx context.Context, joints []referenceframe.Input, extra map[string]interface{}) error
MoveToJointPositions sets the joints.
func (*Arm) MoveToPosition ¶
func (wrapper *Arm) MoveToPosition(ctx context.Context, pos spatialmath.Pose, extra map[string]interface{}) error
MoveToPosition sets the position.
func (*Arm) Reconfigure ¶ added in v0.2.36
func (wrapper *Arm) Reconfigure(ctx context.Context, deps resource.Dependencies, conf resource.Config) error
Reconfigure atomically reconfigures this arm in place based on the new config.