Arm API | Component APIs

Arm API

The arm API allows you to give commands to your arm components for linear motion planning with self-collision prevention. If you want the arm to avoid obstacles, or you want to plan complex motion in an automated way, use the motion API.

The arm component supports the following methods:

Method Name Description
GetEndPosition Get the current position of the arm as a pose.
MoveToPosition Move the end of the arm in a straight line to the desired pose, relative to the base of the arm.
MoveToJointPositions Move each joint on the arm to the position specified in positions.
MoveThroughJointPositions Move the arm’s joints through the given positions in the order they are specified.
GetJointPositions Get the current position of each joint on the arm.
Get3DModels Get the 3D models of the arm.
GetKinematics Get the kinematics information associated with the arm as the format and byte contents of the kinematics file.
IsMoving Get if the arm is currently moving.
Stop Stop all motion of the arm.
GetGeometries Get all the geometries associated with the arm in its current configuration, in the frame of the arm.
Reconfigure Reconfigure this resource.
DoCommand Execute model-specific commands that are not otherwise defined by the component API.
GetResourceName Get the ResourceName for this arm.
Close Safely shut down the resource and prevent further use.

API

GetEndPosition

Get the current position of the arm as a pose.

Parameters:

Returns:

Example:


For more information, see the Python SDK Docs.

MoveToPosition

Move the end of the arm in a straight line to the desired pose, relative to the base of the arm.

All arms have a Home position, which corresponds to setting all joint angles to 0.

Parameters:

Returns:

Example:


For more information, see the Python SDK Docs.

MoveToJointPositions

Move each joint on the arm to the position specified in positions.

Caution

Collision checks are not enabled when doing direct joint control with MoveToJointPositions().

Parameters:

Returns:

Example:


For more information, see the Python SDK Docs.

MoveThroughJointPositions

Move the arm’s joints through the given positions in the order they are specified. This will block until done or a new operation cancels this one.

Parameters:


For more information, see the Go SDK Docs.

GetJointPositions

Get the current position of each joint on the arm.

Parameters:

Returns:

Example:


For more information, see the Python SDK Docs.

Get3DModels

Get the 3D models of the arm.

Parameters:

Returns:

For more information, see the Go SDK Docs.

GetKinematics

Get the kinematics information associated with the arm as the format and byte contents of the kinematics file.

Returns:

Example:


For more information, see the Python SDK Docs.

IsMoving

Get if the arm is currently moving.

Parameters:

Returns:

Example:


For more information, see the Python SDK Docs.

Stop

Stop all motion of the arm.

Returns:

Example:


For more information, see the Python SDK Docs.

GetGeometries

Get all the geometries associated with the arm in its current configuration, in the frame of the arm. The motion and navigation services use the relative position of inherent geometries to configured geometries representing obstacles for collision detection and obstacle avoidance while motion planning.

Returns:

Example:


For more information, see the Python SDK Docs.

Reconfigure

Reconfigure this resource. Reconfigure must reconfigure the resource atomically and in place.

Parameters:

Returns:

For more information, see the Go SDK Docs.

DoCommand

Execute model-specific commands that are not otherwise defined by the component API. Most models do not implement DoCommand. Any available model-specific commands should be covered in the model’s documentation. If you are implementing your own arm and want to add features that have no corresponding built-in API method, you can implement them with DoCommand.

Parameters:

Returns:

Raises:

Example:


For more information, see the Python SDK Docs.

GetResourceName

Get the ResourceName for this arm.

Parameters:

Returns:

Example:


For more information, see the Python SDK Docs.

Close

Safely shut down the resource and prevent further use.

Parameters:

Returns:

Example:


For more information, see the Python SDK Docs.