4#ifndef AUBO_SDK_GRIPPER_INTERFACE_H
5#define AUBO_SDK_GRIPPER_INTERFACE_H
11namespace common_interface {
41 const std::string &device_name);
52 int gripperAdd(
const std::string &name,
const std::string &model);
73 int gripperRename(
const std::string &name,
const std::string &new_name);
138 const std::vector<double> &pose,
139 bool enable_collision);
double gripperGetVoltage(const std::string &name)
int gripperSetVelocity(const std::string &name, const double velocity)
double gripperGetAngle(const std::string &name)
double gripperGetVelocity(const std::string &name)
std::vector< std::string > gripperGetSupportedModels()
获取支持的所有夹爪
std::string gripperGetSoftwareVersion(const std::string &name)
std::vector< double > gripperGetMountPose(const std::string &name)
获取夹爪安装偏移
double gripperGetTorque(const std::string &name)
int gripperSetWorkMode(const std::string &name, int work_mode)
设置工作模式
int gripperEnable(const std::string &name, bool enable)
使能夹爪
int gripperResetSlaveId(const std::string &name, const int slave_id)
重置modbus从站ID
int gripperSetAngle(const std::string &name, const double angle)
int gripperGetWorkMode(const std::string &name)
获取工作模式
virtual ~GripperInterface()
bool gripperGetObjectDetection(const std::string &name)
int gripperStop(const std::string &name)
停止运动
int gripperSetTorque(const std::string &name, const double torque)
int gripperSetMountPose(const std::string &name, const std::vector< double > &pose, bool enable_collision)
设置夹爪安装偏移
bool gripperIsConnected(const std::string &name)
夹爪是否连接
double gripperGetForce(const std::string &name)
double gripperGetRVelocity(const std::string &name)
int gripperAdd(const std::string &name, const std::string &model)
添加夹爪
int gripperMove(const std::string &name)
开始运动
double gripperGetTemperature(const std::string &name)
int gripperConnect(const std::string &name, const std::string &device_name)
夹爪连接
ResultWithErrno2 gripperScanDevices(const std::string &model, const std::string &device_name)
扫描该型号下的所有设备
int gripperRename(const std::string &name, const std::string &new_name)
修改夹爪名
int gripperSetPosition(const std::string &name, const double position)
设置运动参数
int gripperSetForce(const std::string &name, const double force)
int gripperSetRVelocity(const std::string &name, const double r_velocity)
std::string gripperGetHardwareVersion(const std::string &name)
获取夹爪状态
int gripperDelete(const std::string &name)
删除夹爪
bool gripperIsEnabled(const std::string &name)
夹爪是否使能
bool gripperGetMotionState(const std::string &name)
int gripperDisconnect(const std::string &name)
夹爪断开连接
double gripperGetPosition(const std::string &name)
std::tuple< std::vector< std::string >, int > ResultWithErrno2
std::shared_ptr< GripperInterface > GripperInterfacePtr