AUBO SDK  0.26.0
arcs::common_interface Namespace Reference

Classes

class  AuboApi
class  AxisInterface
class  GripperInterface
class  Math
class  RegisterControl
class  ForceControl
class  IoControl
class  MotionControl
class  RobotAlgorithm
class  RobotConfig
class  RobotManage
class  RobotState
class  RobotInterface
class  RuntimeMachine
class  Serial
class  Socket
class  SyncMove
class  SystemInfo
class  Trace
struct  RobotSafetyParameterRange
struct  WObjectData
struct  VibrationRecalibrationParameter
struct  CircleParameters
 Circular motion parameters definition. More...
struct  SpiralParameters
struct  Enveloping
struct  TrajConfig
 Trajectory configuration for payload identification. More...
struct  RobotMsg
struct  GripperStatus
struct  RtdeRecipe
 RTDE menu. More...
class  AuboException
 Custom exception class AuboException. More...

Typedefs

using AuboApiPtr = std::shared_ptr<AuboApi>
using AxisInterfacePtr = std::shared_ptr<AxisInterface>
using GripperInterfacePtr = std::shared_ptr<GripperInterface>
using MathPtr = std::shared_ptr<Math>
using RegisterControlPtr = std::shared_ptr<RegisterControl>
using ForceControlPtr = std::shared_ptr<ForceControl>
using IoControlPtr = std::shared_ptr<IoControl>
using MotionControlPtr = std::shared_ptr<MotionControl>
using RobotAlgorithmPtr = std::shared_ptr<RobotAlgorithm>
using RobotConfigPtr = std::shared_ptr<RobotConfig>
using RobotManagePtr = std::shared_ptr<RobotManage>
using RobotStatePtr = std::shared_ptr<RobotState>
using RobotInterfacePtr = std::shared_ptr<RobotInterface>
using RuntimeMachinePtr = std::shared_ptr<RuntimeMachine>
using SerialPtr = std::shared_ptr<Serial>
using SocketPtr = std::shared_ptr<Socket>
typedef std::unordered_set< std::string > TaskSet
using SyncMovePtr = std::shared_ptr<SyncMove>
using SystemInfoPtr = std::shared_ptr<SystemInfo>
using TracePtr = std::shared_ptr<Trace>
using Vector3d = std::array<double, 3>
using Vector4d = std::array<double, 4>
using Vector3f = std::array<float, 3>
using Vector4f = std::array<float, 4>
using Vector6f = std::array<float, 6>
using ResultWithErrno = std::tuple<std::vector<double>, int>
using ResultWithErrno1 = std::tuple<std::vector<std::vector<double>>, int>
using ResultWithErrno2 = std::tuple<std::vector<std::string>, int>
using ResultWithErrno3 = std::tuple<int, int>
using Payload
using ForceSensorCalibResult
using ForceSensorCalibResultWithError
using DynamicsModel
using Box = std::vector<double>
using Cylinder = std::vector<double>
using Sphere = std::vector<double>
using RobotMsgVector = std::vector<RobotMsg>
using GripperStatusVector = std::vector<GripperStatus>

Enumerations

enum  PathBufferType {
  PathBuffer_TOPPRA = 1 , PathBuffer_CubicSpline , PathBuffer_JointSpline = 3 , PathBuffer_JointSplineC = 4 ,
  PathBuffer_JointBSpline = 5 , PathBuffer_JointBSplineC = 6
}
 pathBuffer Type More...
enum  AuboErrorCodes : int { ENUM_AuboErrorCodes_DECLARES }
enum class  RuntimeState : int { ENUM_RuntimeState_DECLARES }
enum class  RobotModeType : int { ENUM_RobotModeType_DECLARES }
enum class  AxisModeType : int { ENUM_AxisModeType_DECLARES }
enum class  SafetyModeType : int { ENUM_SafetyModeType_DECLARES }
 Safety Mode. More...
enum class  OperationalModeType : int { ENUM_OperationalModeType_DECLARES }
 Operational Mode. More...
enum class  RobotControlModeType : int { ENUM_RobotControlModeType_DECLARES }
 Robot Control Mode. More...
enum class  JointServoModeType : int { ENUM_JointServoModeType_DECLARES }
 Joint Servo Mode. More...
enum class  JointStateType : int { ENUM_JointStateType_DECLARES }
 Joint State. More...
enum class  StandardOutputRunState : int { ENUM_StandardOutputRunState_DECLARES }
 Standard Output Run State. More...
enum class  StandardInputAction : int { ENUM_StandardInputAction_DECLARES }
 The StandardInputAction enum. More...
enum class  SafetyInputAction : int { ENUM_SafetyInputAction_DECLARES }
enum class  SafetyOutputRunState : int { ENUM_SafetyOutputRunState_DECLARES }
enum  TaskFrameType { ENUM_TaskFrameType_DECLARES }
enum  EnvelopingShape : int { ENUM_EnvelopingShape_DECLARES }
enum  PayloadIdentifyMoveAxis : int { ENUM_PayloadIdentifyMoveAxis_DECLARES }
enum  TraceLevel { ENUM_TraceLevel_DECLARES }
enum  SafeguedStopType : int { ENUM_SafeguedStopType_DECLARES }
enum  RobotEmergencyStopType : int { ENUM_RobotEmergencyStopType_DECLARES }
enum class  ForceControlState { Stopped , Starting , Stropping , Running }
enum class  RefFrameType { None , Tool , Path , Base }
enum  error_type {
  parse_error = -32700 , invalid_request = -32600 , method_not_found = -32601 , invalid_params = -32602 ,
  internal_error = -32603 , server_error = -32500 , invalid = -32400
}
 Error type. More...
enum  ExceptionCode {
  EC_DISCONNECTED = -1 , EC_NOT_LOGINED = -2 , EC_INVAL_SOCKET = -3 , EC_REQUEST_BUSY = -4 ,
  EC_SEND_FAILED = -5 , EC_RECV_TIMEOUT = -6 , EC_RECV_ERROR = -7 , EC_PARSE_ERROR = -8 ,
  EC_INVALID_REQUEST = -9 , EC_METHOD_NOT_FOUND = -10 , EC_INVALID_PARAMS = -11 , EC_INTERNAL_ERROR = -12 ,
  EC_SERVER_ERROR = -13 , EC_INVALID = -14
}
 Exception code. More...

Functions

std::ostream & operator<< (std::ostream &os, const RobotSafetyParameterRange &vd)
std::ostream & operator<< (std::ostream &os, WObjectData p)
std::ostream & operator<< (std::ostream &os, const VibrationRecalibrationParameter p)
std::ostream & operator<< (std::ostream &os, CircleParameters p)
std::ostream & operator<< (std::ostream &os, SpiralParameters p)
std::ostream & operator<< (std::ostream &os, Enveloping p)
std::ostream & operator<< (std::ostream &os, TrajConfig p)
const char * returnValue2Str (int retval)

Typedef Documentation

◆ AuboApiPtr

using arcs::common_interface::AuboApiPtr = std::shared_ptr<AuboApi>

Definition at line 390 of file aubo_api.h.

◆ AxisInterfacePtr

Definition at line 417 of file axis_interface.h.

◆ Box

using arcs::common_interface::Box = std::vector<double>

Definition at line 814 of file type_def.h.

◆ Cylinder

using arcs::common_interface::Cylinder = std::vector<double>

Definition at line 821 of file type_def.h.

◆ DynamicsModel

Initial value:
std::tuple<std::vector<double>, std::vector<double>, std::vector<double>>

Definition at line 805 of file type_def.h.

◆ ForceControlPtr

Definition at line 2618 of file force_control.h.

◆ ForceSensorCalibResult

Initial value:
std::tuple<std::vector<double>, std::vector<double>, double,
std::vector<double>>

Definition at line 795 of file type_def.h.

◆ ForceSensorCalibResultWithError

Initial value:
std::tuple<std::vector<double>, std::vector<double>, double,
std::vector<double>, double>

Definition at line 800 of file type_def.h.

◆ GripperInterfacePtr

Definition at line 287 of file gripper_interface.h.

◆ GripperStatusVector

Definition at line 864 of file type_def.h.

◆ IoControlPtr

Definition at line 4984 of file io_control.h.

◆ MathPtr

using arcs::common_interface::MathPtr = std::shared_ptr<Math>

Definition at line 1073 of file math.h.

◆ MotionControlPtr

Definition at line 6564 of file motion_control.h.

◆ Payload

Initial value:
std::tuple<double, std::vector<double>, std::vector<double>,
std::vector<double>>

Definition at line 791 of file type_def.h.

◆ RegisterControlPtr

Definition at line 3371 of file register_control.h.

◆ ResultWithErrno

using arcs::common_interface::ResultWithErrno = std::tuple<std::vector<double>, int>

Definition at line 785 of file type_def.h.

◆ ResultWithErrno1

using arcs::common_interface::ResultWithErrno1 = std::tuple<std::vector<std::vector<double>>, int>

Definition at line 786 of file type_def.h.

◆ ResultWithErrno2

using arcs::common_interface::ResultWithErrno2 = std::tuple<std::vector<std::string>, int>

Definition at line 787 of file type_def.h.

◆ ResultWithErrno3

using arcs::common_interface::ResultWithErrno3 = std::tuple<int, int>

Definition at line 788 of file type_def.h.

◆ RobotAlgorithmPtr

Definition at line 1693 of file robot_algorithm.h.

◆ RobotConfigPtr

Definition at line 3808 of file robot_config.h.

◆ RobotInterfacePtr

Definition at line 391 of file robot_interface.h.

◆ RobotManagePtr

Definition at line 1917 of file robot_manage.h.

◆ RobotMsgVector

Definition at line 845 of file type_def.h.

◆ RobotStatePtr

Definition at line 3069 of file robot_state.h.

◆ RuntimeMachinePtr

Definition at line 1620 of file runtime_machine.h.

◆ SerialPtr

using arcs::common_interface::SerialPtr = std::shared_ptr<Serial>

Definition at line 407 of file serial.h.

◆ SocketPtr

using arcs::common_interface::SocketPtr = std::shared_ptr<Socket>

Definition at line 642 of file socket.h.

◆ Sphere

using arcs::common_interface::Sphere = std::vector<double>

Definition at line 826 of file type_def.h.

◆ SyncMovePtr

Definition at line 1011 of file sync_move.h.

◆ SystemInfoPtr

Definition at line 349 of file system_info.h.

◆ TaskSet

typedef std::unordered_set<std::string> arcs::common_interface::TaskSet

Definition at line 36 of file sync_move.h.

◆ TracePtr

using arcs::common_interface::TracePtr = std::shared_ptr<Trace>

Definition at line 232 of file trace.h.

◆ Vector3d

using arcs::common_interface::Vector3d = std::array<double, 3>

Definition at line 31 of file type_def.h.

◆ Vector3f

using arcs::common_interface::Vector3f = std::array<float, 3>

Definition at line 33 of file type_def.h.

◆ Vector4d

using arcs::common_interface::Vector4d = std::array<double, 4>

Definition at line 32 of file type_def.h.

◆ Vector4f

using arcs::common_interface::Vector4f = std::array<float, 4>

Definition at line 34 of file type_def.h.

◆ Vector6f

using arcs::common_interface::Vector6f = std::array<float, 6>

Definition at line 35 of file type_def.h.

Enumeration Type Documentation

◆ AuboErrorCodes

Enumerator
ENUM_AuboErrorCodes_DECLARES 

Definition at line 547 of file type_def.h.

◆ AxisModeType

enum class arcs::common_interface::AxisModeType : int
strong
Enumerator
ENUM_AxisModeType_DECLARES 

Definition at line 562 of file type_def.h.

◆ EnvelopingShape

Enumerator
ENUM_EnvelopingShape_DECLARES 

Definition at line 639 of file type_def.h.

◆ error_type

Error type.

Enumerator
parse_error 

Parse error.

invalid_request 

Invalid request.

method_not_found 

Method not found.

invalid_params 

Invalid parameters.

internal_error 

Internal error.

server_error 

Server error.

invalid 

Invalid.

Definition at line 879 of file type_def.h.

◆ ExceptionCode

Exception code.

Enumerator
EC_DISCONNECTED 

Disconnected.

EC_NOT_LOGINED 

Not logged in.

EC_INVAL_SOCKET 

Invalid socket.

EC_REQUEST_BUSY 

Request busy.

EC_SEND_FAILED 

Send failed.

EC_RECV_TIMEOUT 

Receive timeout.

EC_RECV_ERROR 

Receive error.

EC_PARSE_ERROR 

Parse error.

EC_INVALID_REQUEST 

Invalid request.

EC_METHOD_NOT_FOUND 

Method not found.

EC_INVALID_PARAMS 

Invalid parameters.

EC_INTERNAL_ERROR 

Internal error.

EC_SERVER_ERROR 

Server error.

EC_INVALID 

Invalid.

Definition at line 891 of file type_def.h.

◆ ForceControlState

Enumerator
Stopped 
Starting 
Stropping 
Running 

Definition at line 702 of file type_def.h.

◆ JointServoModeType

Joint Servo Mode.

Enumerator
ENUM_JointServoModeType_DECLARES 

Definition at line 595 of file type_def.h.

◆ JointStateType

enum class arcs::common_interface::JointStateType : int
strong

Joint State.

Enumerator
ENUM_JointStateType_DECLARES 

Definition at line 603 of file type_def.h.

◆ OperationalModeType

Operational Mode.

Enumerator
ENUM_OperationalModeType_DECLARES 

Definition at line 579 of file type_def.h.

◆ PathBufferType

pathBuffer Type

The robot movements are programmed as pose-to-pose movements, that is move from the current position to a new position. The path between these two positions is then automatically calculated by the robot.

Enumerator
PathBuffer_TOPPRA 

1: toppra time optimal path planning

PathBuffer_CubicSpline 

2: cubic_spline (recorded trajectory)

PathBuffer_JointSpline 

3: Joint B-spline interpolation, at least three points

Deprecated, use 5 instead, currently it is joint space CUBIC_SPLINE

PathBuffer_JointSplineC 

4: Joint B-spline interpolation, at least three points, but the input is Cartesian space pose 废弃,建议用6替代,现在实际是关节空间 CUBIC_SPLINE

5: Joint B-spline interpolation, at least three points

PathBuffer_JointBSpline 
PathBuffer_JointBSplineC 

6: Joint B-spline interpolation, at least three points, but the input is Cartesian space pose

Definition at line 34 of file motion_control.h.

◆ PayloadIdentifyMoveAxis

Enumerator
ENUM_PayloadIdentifyMoveAxis_DECLARES 

Definition at line 644 of file type_def.h.

◆ RefFrameType

Enumerator
None 
Tool 

Tool coordinate system.

Path 

Trajectory coordinate system.

Base 

Base coordinate system.

Definition at line 710 of file type_def.h.

◆ RobotControlModeType

Robot Control Mode.

Enumerator
ENUM_RobotControlModeType_DECLARES 

Definition at line 587 of file type_def.h.

◆ RobotEmergencyStopType

Enumerator
ENUM_RobotEmergencyStopType_DECLARES 

Definition at line 659 of file type_def.h.

◆ RobotModeType

enum class arcs::common_interface::RobotModeType : int
strong
Enumerator
ENUM_RobotModeType_DECLARES 

Definition at line 557 of file type_def.h.

◆ RuntimeState

enum class arcs::common_interface::RuntimeState : int
strong
Enumerator
ENUM_RuntimeState_DECLARES 

Definition at line 552 of file type_def.h.

◆ SafeguedStopType

Enumerator
ENUM_SafeguedStopType_DECLARES 

Definition at line 654 of file type_def.h.

◆ SafetyInputAction

Enumerator
ENUM_SafetyInputAction_DECLARES 

Definition at line 624 of file type_def.h.

◆ SafetyModeType

enum class arcs::common_interface::SafetyModeType : int
strong

Safety Mode.

Enumerator
ENUM_SafetyModeType_DECLARES 

Definition at line 571 of file type_def.h.

◆ SafetyOutputRunState

Enumerator
ENUM_SafetyOutputRunState_DECLARES 

Definition at line 629 of file type_def.h.

◆ StandardInputAction

The StandardInputAction enum.

Enumerator
ENUM_StandardInputAction_DECLARES 

Definition at line 619 of file type_def.h.

◆ StandardOutputRunState

Standard Output Run State.

Enumerator
ENUM_StandardOutputRunState_DECLARES 

Definition at line 611 of file type_def.h.

◆ TaskFrameType

Enumerator
ENUM_TaskFrameType_DECLARES 

Definition at line 634 of file type_def.h.

◆ TraceLevel

Enumerator
ENUM_TraceLevel_DECLARES 

Definition at line 649 of file type_def.h.

Function Documentation

◆ operator<<() [1/7]

std::ostream & arcs::common_interface::operator<< ( std::ostream & os,
CircleParameters p )
inline

Definition at line 733 of file type_def.h.

◆ operator<<() [2/7]

std::ostream & arcs::common_interface::operator<< ( std::ostream & os,
const RobotSafetyParameterRange & vd )
inline

Definition at line 180 of file type_def.h.

◆ operator<<() [3/7]

std::ostream & arcs::common_interface::operator<< ( std::ostream & os,
const VibrationRecalibrationParameter p )
inline

Definition at line 223 of file type_def.h.

◆ operator<<() [4/7]

std::ostream & arcs::common_interface::operator<< ( std::ostream & os,
Enveloping p )
inline

Definition at line 761 of file type_def.h.

◆ operator<<() [5/7]

std::ostream & arcs::common_interface::operator<< ( std::ostream & os,
SpiralParameters p )
inline

Definition at line 747 of file type_def.h.

◆ operator<<() [6/7]

std::ostream & arcs::common_interface::operator<< ( std::ostream & os,
TrajConfig p )
inline

Definition at line 779 of file type_def.h.

◆ operator<<() [7/7]

std::ostream & arcs::common_interface::operator<< ( std::ostream & os,
WObjectData p )
inline

Definition at line 208 of file type_def.h.

◆ returnValue2Str()

const char * arcs::common_interface::returnValue2Str ( int retval)
inline

Definition at line 945 of file type_def.h.

References ENUM_AuboErrorCodes_DECLARES.