4#ifndef AUBO_SDK_GRIPPER_INTERFACE_H
5#define AUBO_SDK_GRIPPER_INTERFACE_H
44 const std::string &device_name);
64 int gripperAdd(
const std::string &name,
const std::string &model);
87 int gripperRename(
const std::string &name,
const std::string &new_name);
158 const std::vector<double> &pose,
159 bool enable_collision);
208 const double velocity_percent);
212 const double r_velocity_percent);
double gripperGetVoltage(const std::string &name)
double gripperGetAngle(const std::string &name)
double gripperGetVelocity(const std::string &name)
int gripperSetRVelocity(const std::string &name, const double r_velocity_percent)
std::string gripperGetSoftwareVersion(const std::string &name)
std::vector< double > gripperGetMountPose(const std::string &name)
获取夹爪安装偏移
double gripperGetTorque(const std::string &name)
int gripperSetAngle(const std::string &name, const double angle)
virtual ~GripperInterface()
bool gripperGetObjectDetection(const std::string &name)
double gripperGetForce(const std::string &name)
double gripperGetRVelocity(const std::string &name)
int gripperSetTorque(const std::string &name, const double torque_percent)
int gripperSetVelocity(const std::string &name, const double velocity_percent)
double gripperGetTemperature(const std::string &name)
int gripperSetForce(const std::string &name, const double force)
bool gripperGetMotionState(const std::string &name)
double gripperGetPosition(const std::string &name)
std::vector< std::string > gripperGetSupportedModels()
获取支持的所有夹爪
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 gripperGetWorkMode(const std::string &name)
获取工作模式
int gripperStop(const std::string &name)
停止运动
int gripperSetMountPose(const std::string &name, const std::vector< double > &pose, bool enable_collision)
设置夹爪安装偏移
bool gripperIsConnected(const std::string &name)
夹爪是否连接
int gripperGetStatusCode(const std::string &name)
获取夹爪状态
int gripperAdd(const std::string &name, const std::string &model)
添加夹爪
int gripperMove(const std::string &name)
开始运动
std::vector< std::string > gripperGetNames()
获取已添加的夹爪
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)
设置运动参数
std::string gripperGetHardwareVersion(const std::string &name)
获取夹爪状态
int gripperDelete(const std::string &name)
删除夹爪
bool gripperIsEnabled(const std::string &name)
夹爪是否使能
int gripperDisconnect(const std::string &name)
夹爪断开连接
std::tuple< std::vector< std::string >, int > ResultWithErrno2
std::shared_ptr< GripperInterface > GripperInterfacePtr