Documentation ¶
Overview ¶
Package fake implements a fake arm.
Index ¶
- Constants
- func NewArm(cfg config.Component, logger golog.Logger) (arm.LocalArm, error)
- type Arm
- func (a *Arm) Close()
- func (a *Arm) CurrentInputs(ctx context.Context) ([]referenceframe.Input, error)
- func (a *Arm) EndPosition(ctx context.Context, extra map[string]interface{}) (*commonpb.Pose, error)
- func (a *Arm) GoToInputs(ctx context.Context, goal []referenceframe.Input) error
- func (a *Arm) IsMoving(ctx context.Context) (bool, error)
- func (a *Arm) JointPositions(ctx context.Context, extra map[string]interface{}) (*pb.JointPositions, error)
- func (a *Arm) ModelFrame() referenceframe.Model
- func (a *Arm) MoveToJointPositions(ctx context.Context, joints *pb.JointPositions, extra map[string]interface{}) error
- func (a *Arm) MoveToPosition(ctx context.Context, pos *commonpb.Pose, worldState *commonpb.WorldState, ...) error
- func (a *Arm) Stop(ctx context.Context, extra map[string]interface{}) error
- type AttrConfig
Constants ¶
View Source
const ModelName = "fake"
ModelName is the string used to refer to the fake arm model.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Arm ¶
type Arm struct { generic.Echo Name string CloseCount int // contains filtered or unexported fields }
Arm is a fake arm that can simply read and set properties.
func (*Arm) CurrentInputs ¶
CurrentInputs TODO.
func (*Arm) EndPosition ¶
func (a *Arm) EndPosition(ctx context.Context, extra map[string]interface{}) (*commonpb.Pose, error)
EndPosition returns the set position.
func (*Arm) GoToInputs ¶
GoToInputs TODO.
func (*Arm) JointPositions ¶
func (a *Arm) JointPositions(ctx context.Context, extra map[string]interface{}) (*pb.JointPositions, error)
JointPositions returns joints.
func (*Arm) ModelFrame ¶
func (a *Arm) ModelFrame() referenceframe.Model
ModelFrame returns the dynamic frame of the model.
func (*Arm) MoveToJointPositions ¶
func (a *Arm) MoveToJointPositions(ctx context.Context, joints *pb.JointPositions, extra map[string]interface{}) error
MoveToJointPositions sets the joints.
type AttrConfig ¶ added in v0.1.2
type AttrConfig struct { FailNew bool `json:"fail_new"` FailValidate bool `json:"fail_validate"` ArmModel string `json:"arm-model"` }
AttrConfig is used for converting config attributes.
func (*AttrConfig) Validate ¶ added in v0.1.2
func (config *AttrConfig) Validate(path string) error
Validate ensures all parts of the config are valid.
Click to show internal directories.
Click to hide internal directories.