Interface Arm

Represents a physical robot arm that exists in three-dimensional space.

interface Arm {
    getEndPosition: ((extra?) => Promise<PlainMessage<commonApi.Pose>>);
    getJointPositions: ((extra?) => Promise<PlainMessage<JointPositions>>);
    isMoving: (() => Promise<boolean>);
    moveToJointPositions: ((jointPositionsList, extra?) => Promise<void>);
    moveToPosition: ((pose, extra?) => Promise<void>);
    stop: ((extra?) => Promise<void>);
    doCommand(command): Promise<JsonValue>;
}

Hierarchy (view full)

Implemented by

Properties

getEndPosition: ((extra?) => Promise<PlainMessage<commonApi.Pose>>)

Get the position of the end of the arm expressed as a pose

Type declaration

getJointPositions: ((extra?) => Promise<PlainMessage<JointPositions>>)

Gets the current position of each joint.

Type declaration

isMoving: (() => Promise<boolean>)

Get if the arm is currently moving.

Type declaration

    • (): Promise<boolean>
    • Returns Promise<boolean>

moveToJointPositions: ((jointPositionsList, extra?) => Promise<void>)

Move each joint of the arm based on the angles on the joint poisitons. parameter

Type declaration

    • (jointPositionsList, extra?): Promise<void>
    • Parameters

      • jointPositionsList: number[]

        List of angles (0-360) to move each joint to.

      • Optional extra: Struct

      Returns Promise<void>

moveToPosition: ((pose, extra?) => Promise<void>)

Move the end of the arm to the pose.

Type declaration

stop: ((extra?) => Promise<void>)

Stops the motion of the arm.

Type declaration

    • (extra?): Promise<void>
    • Parameters

      Returns Promise<void>

Methods

Generated using TypeDoc