Skip to content

Common Data Structures

The AbcErrorCode class is a system-level error code enumeration that defines execution result statuses for the robotic system, including modules such as the robotic arm, head, torso, sensors, and algorithms.

Constant MemberValueDescription

SUCCESS

0

Success

UNKNOWN_ERROR

-1

Unknown error

General Errors

TIMEOUT

-2

Timeout

INVALID_HANDLE

-3

Invalid handle

INVALID_STATE

-4

Invalid state

NOT_INITIALIZED

-5

Not initialized

NOT_IMPLEMENTED

-6

Not implemented

INVALID_ARGUMENT

-7

Invalid argument

PARAM_ERROR

-50

Parameter error

Parameter Errors

PARAM_OUT_OF_RANGE

-51

Parameter value out of range

ARM_ERROR

-100

Robotic arm general error

Robotic Arm Errors

ARM_CTRL_FALSE

-101

Controller returned false; likely incorrect parameters or arm state error.

ARM_DATA_SEND_FAILED

-102

Failed to send data (communication error)

ARM_DATA_RECEIVE_FAILED

-103

Failed to receive data or controller timeout

ARM_RETURN_DATA_ERR

-104

Failed to parse returned data (invalid or incomplete format)

ARM_CHECK_FAILED

-105

Current position device check failed (e.g., not a joint)

ARM_TIMEOUT

-106

Timeout waiting for response

ARM_OUT_OF_RANGE

-107

Robotic arm motion out of range

TORSO_ERROR

-200

Torso general error

Torso Errors

TORSO_CANBUS_ERROR

-201

Torso CAN bus error

TORSO_ACTUATOR_ERROR

-202

Torso actuator error

TORSO_TIMEOUT

-206

Timeout waiting for response

TORSO_OUT_OF_RANGE

-207

Torso motion out of range

HEAD_ERROR

-220

Head general error

Head Errors

HEAD_CANBUS_ERROR

-221

Head CAN bus error

HEAD_ACTUATOR_ERROR

-222

Head actuator error

HEAD_TIMEOUT

-226

Timeout waiting for response

HEAD_OUT_OF_RANGE

-227

Head motion out of range

SENSOR_ERROR

-300

Sensor general error

Sensor Errors

SENSOR_NOT_CONNECTED

-301

Sensor not connected

SENSOR_DATA_ERROR

-302

Sensor data error

CHASSIS_ERROR

-400

Chassis general error

Chassis Errors

CHASSIS_INIT_ERROR

-401

Chassis initialization error

CHASSIS_TIMEOUT

-402

Timeout waiting for response

ALGO_ERROR

-900

Algorithm general error

Algorithm Errors

ALGO_NOT_CONVERGED

-901

Algorithm did not converge

The Pose class represents a 3D pose (position and orientation).

AttributeData TypeDescription
positionPositionPosition (3D coordinates: x, y, z)
quaternionQuaternionOrientation (rotation, represented as a quaternion: w, x, y, z)
  • Method:

    set_position(self, arg0: float, arg1: float, arg2: float) -> Pose
  • Parameters:

    ParameterDescription
    arg0arg1arg2XYZ-axis coordinate values
  • Return Value:

    Returns self to support method chaining.

  • Method:

    set_quaternion(self, arg0: float, arg1: float, arg2: float, arg3: float) -> Pose
  • Parameters:

    ParameterDescription
    arg0arg1arg2arg3w、x、y、z
  • Return Value:

    Returns self to support method chaining.

The Position class represents a position in 3D space.

AttributeData TypeDescription
xyzfloatXYZ-axis coordinate values

The Quaternion class represents a quaternion.

AttributeData TypeDescription
wxyzfloatQuaternion (w、x、y、z)

The Euler class represents Euler angles.

AttributeData TypeDescription
rxryrzfloatEuler angles

The ArmCurrentStatus class defines an enumeration of status codes representing the current state of the robotic arm.

Constant MemberValueDescription
IDLE0Enabled but idle state
MOVE1Moving state
MOVE_THROUGH_JOINT2Angle pass-through state
MOVE_THROUGH_POSE3Pose pass-through state
MOVE_THROUGH_FORCE_POSE4Force-Controlled pass-through state
MOVE_THROUGH_CURRENT5Current-loop pass-through state
STOP6Emergency stop state
SLOW_STOP7Slow stop state
PAUSE8Pause state
CURRENT_DRAG9Current-loop drag state
SENSOR_DRAG106-DoF force drag state
TECH_DEMONSTRATION11Teaching state

The AbcTorsoPose4D class represents the torso pose.

AttributeData TypeDescription
heightfloatVertical height, in meters (m).
forwardfloatFront-back displacement, in meters (m).
pitchfloatPitch angle, in radians (rad).
yawfloatWaist rotation angle, in radians (rad).

The SensorStatus class is an enumerator that defines the states of sensors.

Constant MemberValueDescription
DISCONNECTED0Disconnected
CONNECTED1Connected
STREAMING2Data streaming in progress
SENSOR_ERROR3Error state

The SensorType class is an enumerator that defines sensor types.

Constant MemberDescription
CAMERACamera sensor
DEPTH_CAMERADepth camera
LIDARLiDAR
IMUInertial Measurement Unit
FORCE_TORQUEForce sensor
PROXIMITYProximity sensor
OTHEROther types of sensors