![]() |
AUBO SDK
0.26.0
|
通用夹爪API接口 更多...
#include <gripper_interface.h>
Public 成员函数 | |
| GripperInterface () | |
| virtual | ~GripperInterface () |
| std::vector< std::string > | gripperGetSupportedModels () |
| 获取支持的所有夹爪 | |
| ResultWithErrno2 | gripperScanDevices (const std::string &model, const std::string &device_name) |
| 扫描该型号下的所有设备 | |
| int | gripperAdd (const std::string &name, const std::string &model) |
| 添加夹爪 | |
| int | gripperDelete (const std::string &name) |
| 删除夹爪 | |
| int | gripperRename (const std::string &name, const std::string &new_name) |
| 修改夹爪名 | |
| int | gripperConnect (const std::string &name, const std::string &device_name) |
| 夹爪连接 | |
| int | gripperDisconnect (const std::string &name) |
| 夹爪断开连接 | |
| bool | gripperIsConnected (const std::string &name) |
| 夹爪是否连接 | |
| int | gripperSetWorkMode (const std::string &name, int work_mode) |
| 设置工作模式 | |
| int | gripperGetWorkMode (const std::string &name) |
| 获取工作模式 | |
| int | gripperSetMountPose (const std::string &name, const std::vector< double > &pose, bool enable_collision) |
| 设置夹爪安装偏移 | |
| std::vector< double > | gripperGetMountPose (const std::string &name) |
| 获取夹爪安装偏移 | |
| int | gripperEnable (const std::string &name, bool enable) |
| 使能夹爪 | |
| bool | gripperIsEnabled (const std::string &name) |
| 夹爪是否使能 | |
| int | gripperSetPosition (const std::string &name, const double position) |
| 设置运动参数 | |
| int | gripperSetVelocity (const std::string &name, const double velocity) |
| int | gripperSetForce (const std::string &name, const double force) |
| int | gripperSetAngle (const std::string &name, const double angle) |
| int | gripperSetRVelocity (const std::string &name, const double r_velocity) |
| int | gripperSetTorque (const std::string &name, const double torque) |
| int | gripperMove (const std::string &name) |
| 开始运动 | |
| int | gripperStop (const std::string &name) |
| 停止运动 | |
| std::string | gripperGetHardwareVersion (const std::string &name) |
| 获取夹爪状态 | |
| std::string | gripperGetSoftwareVersion (const std::string &name) |
| double | gripperGetPosition (const std::string &name) |
| double | gripperGetVelocity (const std::string &name) |
| double | gripperGetForce (const std::string &name) |
| double | gripperGetAngle (const std::string &name) |
| double | gripperGetRVelocity (const std::string &name) |
| double | gripperGetTorque (const std::string &name) |
| bool | gripperGetObjectDetection (const std::string &name) |
| bool | gripperGetMotionState (const std::string &name) |
| double | gripperGetVoltage (const std::string &name) |
| double | gripperGetTemperature (const std::string &name) |
| int | gripperResetSlaveId (const std::string &name, const int slave_id) |
| 重置modbus从站ID | |
Protected 属性 | |
| void * | d_ |
通用夹爪API接口
在文件 gripper_interface.h 第 16 行定义.
| arcs::common_interface::GripperInterface::GripperInterface | ( | ) |
|
virtual |
| int arcs::common_interface::GripperInterface::gripperAdd | ( | const std::string & | name, |
| const std::string & | model | ||
| ) |
添加夹爪
| name | 用户自定义名字,唯一 |
| model | 夹爪品牌及型号 |
| int arcs::common_interface::GripperInterface::gripperConnect | ( | const std::string & | name, |
| const std::string & | device_name | ||
| ) |
夹爪连接
| name | |
| device_name | 设备名 |
| int arcs::common_interface::GripperInterface::gripperDelete | ( | const std::string & | name | ) |
删除夹爪
| name | 用户自定义名字 |
| int arcs::common_interface::GripperInterface::gripperDisconnect | ( | const std::string & | name | ) |
夹爪断开连接
| name |
| int arcs::common_interface::GripperInterface::gripperEnable | ( | const std::string & | name, |
| bool | enable | ||
| ) |
使能夹爪
| name |
| double arcs::common_interface::GripperInterface::gripperGetAngle | ( | const std::string & | name | ) |
| double arcs::common_interface::GripperInterface::gripperGetForce | ( | const std::string & | name | ) |
| std::string arcs::common_interface::GripperInterface::gripperGetHardwareVersion | ( | const std::string & | name | ) |
获取夹爪状态
| name |
| bool arcs::common_interface::GripperInterface::gripperGetMotionState | ( | const std::string & | name | ) |
| std::vector< double > arcs::common_interface::GripperInterface::gripperGetMountPose | ( | const std::string & | name | ) |
获取夹爪安装偏移
| name |
| bool arcs::common_interface::GripperInterface::gripperGetObjectDetection | ( | const std::string & | name | ) |
| double arcs::common_interface::GripperInterface::gripperGetPosition | ( | const std::string & | name | ) |
| double arcs::common_interface::GripperInterface::gripperGetRVelocity | ( | const std::string & | name | ) |
| std::string arcs::common_interface::GripperInterface::gripperGetSoftwareVersion | ( | const std::string & | name | ) |
| std::vector< std::string > arcs::common_interface::GripperInterface::gripperGetSupportedModels | ( | ) |
获取支持的所有夹爪
| double arcs::common_interface::GripperInterface::gripperGetTemperature | ( | const std::string & | name | ) |
| double arcs::common_interface::GripperInterface::gripperGetTorque | ( | const std::string & | name | ) |
| double arcs::common_interface::GripperInterface::gripperGetVelocity | ( | const std::string & | name | ) |
| double arcs::common_interface::GripperInterface::gripperGetVoltage | ( | const std::string & | name | ) |
| int arcs::common_interface::GripperInterface::gripperGetWorkMode | ( | const std::string & | name | ) |
获取工作模式
| name |
| bool arcs::common_interface::GripperInterface::gripperIsConnected | ( | const std::string & | name | ) |
夹爪是否连接
| name |
| bool arcs::common_interface::GripperInterface::gripperIsEnabled | ( | const std::string & | name | ) |
夹爪是否使能
| name |
| int arcs::common_interface::GripperInterface::gripperMove | ( | const std::string & | name | ) |
开始运动
| name |
| int arcs::common_interface::GripperInterface::gripperRename | ( | const std::string & | name, |
| const std::string & | new_name | ||
| ) |
修改夹爪名
| name | |
| new_name | 新名字 |
| int arcs::common_interface::GripperInterface::gripperResetSlaveId | ( | const std::string & | name, |
| const int | slave_id | ||
| ) |
重置modbus从站ID
| name | |
| slave_id | 从站Id |
| ResultWithErrno2 arcs::common_interface::GripperInterface::gripperScanDevices | ( | const std::string & | model, |
| const std::string & | device_name | ||
| ) |
扫描该型号下的所有设备
| model | 夹爪品牌型号 |
| device_name | 设备名 |
| int arcs::common_interface::GripperInterface::gripperSetAngle | ( | const std::string & | name, |
| const double | angle | ||
| ) |
| int arcs::common_interface::GripperInterface::gripperSetForce | ( | const std::string & | name, |
| const double | force | ||
| ) |
| int arcs::common_interface::GripperInterface::gripperSetMountPose | ( | const std::string & | name, |
| const std::vector< double > & | pose, | ||
| bool | enable_collision | ||
| ) |
设置夹爪安装偏移
| name | |
| isVisibled | 是否显示 |
| pose | 末端(不包括手指)相对法兰的位姿 |
| int arcs::common_interface::GripperInterface::gripperSetPosition | ( | const std::string & | name, |
| const double | position | ||
| ) |
设置运动参数
| name |
| int arcs::common_interface::GripperInterface::gripperSetRVelocity | ( | const std::string & | name, |
| const double | r_velocity | ||
| ) |
| int arcs::common_interface::GripperInterface::gripperSetTorque | ( | const std::string & | name, |
| const double | torque | ||
| ) |
| int arcs::common_interface::GripperInterface::gripperSetVelocity | ( | const std::string & | name, |
| const double | velocity | ||
| ) |
| int arcs::common_interface::GripperInterface::gripperSetWorkMode | ( | const std::string & | name, |
| int | work_mode | ||
| ) |
设置工作模式
| name | |
| work_mode | 工作模式 |
| int arcs::common_interface::GripperInterface::gripperStop | ( | const std::string & | name | ) |
停止运动
| name |
|
protected |
在文件 gripper_interface.h 第 236 行定义.