|
| int | arcs::common_interface::RobotManage::poweron () |
| | 发起机器人上电请求
|
| int | arcs::common_interface::RobotManage::startup () |
| | 发起机器人启动请求
|
| int | arcs::common_interface::RobotManage::releaseRobotBrake () |
| | 发起机器人松开刹车请求
|
| int | arcs::common_interface::RobotManage::lockRobotBrake () |
| | 发起机器人刹车请求
|
| int | arcs::common_interface::RobotManage::poweroff () |
| | 发起机器人断电请求
|
| int | arcs::common_interface::RobotManage::backdrive (bool enable) |
| | 发起机器人反向驱动请求
|
| int | arcs::common_interface::RobotManage::freedrive (bool enable) |
| | 发起机器人自由驱动请求 接口在软件版本 0.31.x 后已废弃,使用 handguideMode 接口替换 handguideMode({1,1,1,1,1}, {0,0,0,0,0,0})
|
| int | arcs::common_interface::RobotManage::setHandguideParams (const std::vector< int > &freeAxes, const std::vector< double > &feature) |
| | 设置拖动示教参数
|
| std::vector< int > | arcs::common_interface::RobotManage::getHandguideFreeAxes () |
| | 获取拖动轴
|
| std::vector< double > | arcs::common_interface::RobotManage::getHandguideFeature () |
| | 获取拖动参考坐标系
|
| int | arcs::common_interface::RobotManage::handguideMode (const std::vector< int > &freeAxes, const std::vector< double > &feature) |
| | 高阶拖动示教
|
| int | arcs::common_interface::RobotManage::exitHandguideMode () |
| | 退出拖动示教
|
| int | arcs::common_interface::RobotManage::getHandguideStatus () |
| | 获取拖动示教器的状态(是否处于奇异空间)
|
| int | arcs::common_interface::RobotManage::getHandguideTrigger () |
| | 获取拖动示教器触发源
|
| bool | arcs::common_interface::RobotManage::isHandguideEnabled () |
| | 获取拖动示教使能状态
|
| int | arcs::common_interface::RobotManage::setSim (bool enable) |
| | 发起机器人进入/退出仿真模式请求
|
| int | arcs::common_interface::RobotManage::setOperationalMode (OperationalModeType mode) |
| | 设置机器人操作模式
|
| OperationalModeType | arcs::common_interface::RobotManage::getOperationalMode () |
| | 获取机器人操作模式
|
| RobotControlModeType | arcs::common_interface::RobotManage::getRobotControlMode () |
| | 获取控制模式
|
| bool | arcs::common_interface::RobotManage::isFreedriveEnabled () |
| | 是否使能了拖动示教模式
|
| bool | arcs::common_interface::RobotManage::isBackdriveEnabled () |
| | 是否使能了反向驱动模式
|
| bool | arcs::common_interface::RobotManage::isSimulationEnabled () |
| | 是否使能了仿真模式
|
| int | arcs::common_interface::RobotManage::setUnlockProtectiveStop () |
| | 清除防护停机,包括碰撞停机
|
| int | arcs::common_interface::RobotManage::restartInterfaceBoard () |
| | 重置安全接口板,一般在机器人断电之后需要重置时调用,比如机器人急停、故障等之后
|
| int | arcs::common_interface::RobotManage::recordCacheFree (const std::string &name) |
| | 释放并清空指定内存缓存的记录数据
|
| int | arcs::common_interface::RobotManage::startRecordCache (const std::string &name) |
| | 开始实时轨迹的内存缓存记录(不落盘)
|
| int | arcs::common_interface::RobotManage::stopRecordCache () |
| | 停止当前实时轨迹内存缓存记录
|
| int | arcs::common_interface::RobotManage::pauseRecordCache (bool pause) |
| | 暂停/恢复当前实时轨迹内存缓存记录
|
| int | arcs::common_interface::RobotManage::getRecordCache (const std::string &name, size_t frames=0) |
| | 获取指定内存缓存的记录数据
|
| int | arcs::common_interface::RobotManage::startRecord (const std::string &file_name) |
| | 开始实时轨迹的记录
|
| int | arcs::common_interface::RobotManage::stopRecord () |
| | 停止实时记录
|
| int | arcs::common_interface::RobotManage::pauseRecord (bool pause) |
| | 暂停实时记录
|
| int | arcs::common_interface::RobotManage::setLinkModeEnable (bool enable) |
| | 发起机器人进入/退出联动模式请求, 只有操作模式为自动或者无时,才能使能联动模式
|
| bool | arcs::common_interface::RobotManage::isLinkModeEnabled () |
| | 是否使能了联动模式,联动模式下用户可以通过外部IO控制机器人(用户可以对IO的功能进行配置)
|
| int | arcs::common_interface::RobotManage::generateDiagnoseFile (const std::string &reason) |
| | 手动触发生成诊断文件
|
| int arcs::common_interface::RobotManage::freedrive |
( |
bool | enable | ) |
|
发起机器人自由驱动请求 接口在软件版本 0.31.x 后已废弃,使用 handguideMode 接口替换 handguideMode({1,1,1,1,1}, {0,0,0,0,0,0})
- 参数
-
- 返回
- 成功返回0; 失败返回错误码 AUBO_BUSY AUBO_BAD_STATE -AUBO_INVL_ARGUMENT -AUBO_BAD_STATE
- 异常
-
- Python函数原型
- freedrive(self: pyaubo_sdk.RobotManage, arg0: bool) -> int
- Lua函数原型
- freedrive(enable: boolean) -> number
- Lua示例
- num = freedrive(false)
- JSON-RPC请求示例
- {"jsonrpc":"2.0","method":"rob1.RobotManage.freedrive","params":[true],"id":1}
- JSON-RPC响应示例
- {"id":1,"jsonrpc":"2.0","result":0}
- C++示例
auto rpc_cli = std::make_shared<RpcClient>();
auto robot_name = rpc_cli->getRobotNames().front();
rpc_cli->getRobotInterface(robot_name)->getRobotManage()->freedrive(true);