|
| int | arcs::common_interface::ForceControl::fcEnable () |
| | 使能力控。 fcEnable 被用于使能力控。 在力控被使能的同时, fcEnable 用于定义力控的坐标系,并调整力和力矩的阻尼。 如果在 fcEnable 中未指定坐标系, 则会创建一个默认的力控制坐标系,其方向与工作对象坐标系相同。 所有力控制监管功能都被 fcEnable 激活。
|
| int | arcs::common_interface::ForceControl::fcDisable () |
| | 失能力控。 fcDisable 被用于失能力控。 在成功失能力控之后,机器人将回到位置控制模式。
|
| bool | arcs::common_interface::ForceControl::isFcEnabled () |
| | 判断力控是否被使能
|
| int | arcs::common_interface::ForceControl::setTargetForce (const std::vector< double > &feature, const std::vector< bool > &compliance, const std::vector< double > &wrench, const std::vector< double > &limits, TaskFrameType type=TaskFrameType::FRAME_FORCE) |
| | 设置力控参考(目标)值
|
| int | arcs::common_interface::ForceControl::setDynamicModel1 (const std::vector< double > &env_stiff, const std::vector< double > &damp_scale, const std::vector< double > &stiff_scale) |
| | 设置力控动力学模型
|
| DynamicsModel | arcs::common_interface::ForceControl::fcCalDynamicModel (const std::vector< double > &env_stiff, const std::vector< double > &damp_scale, const std::vector< double > &stiff_scale) |
| | 计算力控动力学模型
|
| int | arcs::common_interface::ForceControl::setDynamicModelSearch (const std::vector< double > &damp_scale, const std::vector< double > &stiff_scale) |
| | 设置力控搜孔场景下的动力学模型
|
| int | arcs::common_interface::ForceControl::setDynamicModelInsert (const std::vector< double > &damp_scale, const std::vector< double > &stiff_scale) |
| | 设置力控插/拔孔场景下的动力学模型
|
| int | arcs::common_interface::ForceControl::setDynamicModelContact (const std::vector< double > &env_stiff, const std::vector< double > &damp_scale, const std::vector< double > &stiff_scale) |
| | 设置力控接触场景下的动力学模型
|
| int | arcs::common_interface::ForceControl::setDynamicModel (const std::vector< double > &m, const std::vector< double > &d, const std::vector< double > &k) |
| | 设置力控动力学模型
|
| int | arcs::common_interface::ForceControl::fcSetSensorThresholds (const std::vector< double > &thresholds) |
| | 设置力控阈值
|
| int | arcs::common_interface::ForceControl::fcSetSensorLimits (const std::vector< double > &limits) |
| | 设置力控最大受力限制
|
| std::vector< double > | arcs::common_interface::ForceControl::getFcSensorThresholds () |
| | 获取力控阈值
|
| std::vector< double > | arcs::common_interface::ForceControl::getFcSensorLimits () |
| | 获取最大力限制
|
| DynamicsModel | arcs::common_interface::ForceControl::getDynamicModel () |
| | 获取力控动力学模型
|
| int | arcs::common_interface::ForceControl::setCondForce (const std::vector< double > &min, const std::vector< double > &max, bool outside, double timeout) |
| | 设置力控终止条件:力,当测量的力在设置的范围之内,力控算法将保持运行,直到设置的条件不满足,力控将退出
|
| int | arcs::common_interface::ForceControl::setCondOrient (const std::vector< double > &frame, double max_angle, double max_rot, bool outside, double timeout) |
| | 设置力控终止条件:姿态,当测量的姿态在设置的范围之内,力控算法将保持运行,直到设置的条件不满足,力控将退出.
|
| int | arcs::common_interface::ForceControl::setCondPlane (const std::vector< double > &plane, double timeout) |
| | 指定力控有效平面,x-y平面,z方向有效
|
| int | arcs::common_interface::ForceControl::setCondCylinder (const std::vector< double > &axis, double radius, bool outside, double timeout) |
| | 指定力控有效圆柱体,提供中心轴和圆柱半径,可以指定圆柱内部还是外部
|
| int | arcs::common_interface::ForceControl::setCondSphere (const std::vector< double > ¢er, double radius, bool outside, double timeout) |
| | 指定力控有效球体,提供球心和半径,可以指定球体内部还是外部
|
| int | arcs::common_interface::ForceControl::setCondTcpSpeed (const std::vector< double > &min, const std::vector< double > &max, bool outside, double timeout) |
| | 设置TCP速度的终止条件。该条件可通过调用FCCondWaitWhile指令激活, 在指定条件为真时,程序将等待并保持执行。这样可以使参考力、力矩和运动继续, 直到速度超出指定范围。
|
| int | arcs::common_interface::ForceControl::setCondDistance (double distance, double timeout) |
| | 力控终止条件-距离
|
| int | arcs::common_interface::ForceControl::setCondAdvanced (const std::string &type, const std::vector< double > &args, double timeout) |
| | 高级力控终止条件
|
| int | arcs::common_interface::ForceControl::setCondActive () |
| | 激活力控终止条件
|
| bool | arcs::common_interface::ForceControl::isCondFullfiled () |
| | 力控终止条件是否已经满足
|
| int | arcs::common_interface::ForceControl::setSupvForce (const std::vector< double > &min, const std::vector< double > &max) |
| | setSupvForce 用于在力控中设置力监督。监督在通过 FCAct 指令激活力控时被激活。
|
| int | arcs::common_interface::ForceControl::setSupvOrient (const std::vector< double > &frame, double max_angle, double max_rot, bool outside) |
| | setSupvOrient 用于设置工具姿态的监督条件。 当通过 FCAct 指令激活力控时,监督条件被激活。
|
| int | arcs::common_interface::ForceControl::setSupvPosBox (const std::vector< double > &frame, const Box &box) |
| | setSupvPosBox 用于在力控中设置位置监督。监督在通过 FCAct 指令激活力控时被激活。 位置监督通过为TCP定义空间体积来设置。一旦激活,如果TCP超出该体积,监督将停止执行。
|
| int | arcs::common_interface::ForceControl::setSupvPosCylinder (const std::vector< double > &frame, const Cylinder &cylinder) |
| int | arcs::common_interface::ForceControl::setSupvPosSphere (const std::vector< double > &frame, const Sphere &sphere) |
| int | arcs::common_interface::ForceControl::setSupvReoriSpeed (const std::vector< double > &speed_limit, bool outside, double timeout) |
| | setSupvReoriSpeed 用于在力控中设置重新定向速度监督。监督在通过 FCAct 指令激活力控时被激活。
|
| int | arcs::common_interface::ForceControl::setSupvTcpSpeed (const std::vector< double > &speed_limit, bool outside, double timeout) |
| | setSupvTcpSpeed 用于在力控中设置TCP速度监督。监督在通过 FCAct 指令激活力控时被激活。 TCP速度监督通过定义工作对象坐标系各方向上的最小和最大速度限制来设置。 一旦激活,如果检测到过高的TCP速度值,监督将停止执行。
|
| int | arcs::common_interface::ForceControl::setLpFilter (const std::vector< double > &cutoff_freq) |
| | 设置低通滤波器
|
| int | arcs::common_interface::ForceControl::resetLpFilter () |
| | 重置低通滤波器
|
| int | arcs::common_interface::ForceControl::speedChangeEnable (double ref_force) |
| | speedChangeEnable 用于激活 FC SpeedChange 功能,并设置期望的参考力和恢复行为。 当 FC SpeedChange 功能被激活时,机器人速度会根据测量信号与参考值的接近程度自动降低或提高。
|
| int | arcs::common_interface::ForceControl::speedChangeDisable () |
| | 停用 FC SpeedChange 功能。
|
| int | arcs::common_interface::ForceControl::speedChangeTune (int speed_levels, double speed_ratio_min) |
| | speedChangeTune 用于将 FC SpeedChange 系统参数设置为新值。
|
| int | arcs::common_interface::ForceControl::setDamping (const std::vector< double > &damping, double ramp_time) |
| | setDamping 用于在力控坐标系中调整阻尼。可调参数包括扭矩x方向到扭矩z方向的阻尼(见第255页)以及力x方向到力z方向的阻尼(见第254页)。
|
| int | arcs::common_interface::ForceControl::resetDamping () |
| | 重置阻尼参数
|
| int | arcs::common_interface::ForceControl::softFloatEnable () |
| | 启用软浮动功能。
|
| int | arcs::common_interface::ForceControl::softFloatDisable () |
| | 停用软浮动功能。
|
| bool | arcs::common_interface::ForceControl::isSoftFloatEnabled () |
| | 返回是否开启了软浮动
|
| int | arcs::common_interface::ForceControl::setSoftFloatParams (bool joint_space, const std::vector< bool > &select, const std::vector< double > &stiff_percent, const std::vector< double > &stiff_damp_ratio, const std::vector< double > &force_threshold, const std::vector< double > &force_limit) |
| | 设置软浮动参数
|
| int | arcs::common_interface::ForceControl::toolContact (const std::vector< bool > &direction) |
| | 检测工具和外部物体的接触
|
| std::vector< double > | arcs::common_interface::ForceControl::getActualJointPositionsHistory (int steps) |
| int arcs::common_interface::ForceControl::setCondForce |
( |
const std::vector< double > & | min, |
|
|
const std::vector< double > & | max, |
|
|
bool | outside, |
|
|
double | timeout ) |
设置力控终止条件:力,当测量的力在设置的范围之内,力控算法将保持运行,直到设置的条件不满足,力控将退出
The condition is lateractivated by calling the instruction FCCondWaitWhile, which will wait and hold the program execution while the specified condition is true. This allows the reference force, torque and movement to continue until the force is outside the specified limits.
A force condition is set up by defining minimum and maximum limits for the force in the directions of the force control coordinate system. Once activated with FCCondWaitWhile, the program execution will continue to wait while the measured force is within its specified limits.
It is possible to specify that the condition is fulfilled when the force is outside the specified limits instead. This is done by using the switch argument Outside. The condition on force is specified in the force control coordinate system. This coordinate system is setup by the user in the instruction FCAct.
- 参数
-
| min | 各方向最小的力/力矩 |
| max | 各方向最大的力/力矩 |
| outside | false 在设置条件的范围之内有效 true 在设置条件的范围之外有效 |
| timeout | 时间限制,单位s(秒),从开始力控到达该时间时,不管是否满足力控终止条件,都会终止力控 |
- 返回
- 成功返回0;失败返回错误码 AUBO_BUSY AUBO_BAD_STATE -AUBO_INVL_ARGUMENT -AUBO_BAD_STATE
- 异常
-
- Python函数原型
- setCondForce(self: pyaubo_sdk.ForceControl, arg0: List[float], arg1: List[float], arg2: bool, arg3: float) -> int
- Lua函数原型
- setCondForce(min: table, max: table, outside: boolean, timeout: number) -> nil
- Lua示例
- setCondForce({0.1,0.1,0.1,0.1,0.1,0.1},{50,50,50,5,5,5},{true,true,true,true,true,true},10)
| int arcs::common_interface::ForceControl::setCondOrient |
( |
const std::vector< double > & | frame, |
|
|
double | max_angle, |
|
|
double | max_rot, |
|
|
bool | outside, |
|
|
double | timeout ) |
设置力控终止条件:姿态,当测量的姿态在设置的范围之内,力控算法将保持运行,直到设置的条件不满足,力控将退出.
setCondOrient is used to set up an end condition for the tool orientation. The condition is lateractivated by calling the instruction FCCondWaitWhile, which will wait and hold the program execution while the specified condition is true. This allows the reference force, torque and movement to continue until the orientation is outside the specified limits.
An orientation condition is set up by defining a maximum angle and a maximum rotation from a reference orientation. The reference orientation is either defined by the current z direction of the tool, or by specifying an orientation in relation to the z direction of the work object.
Once activated, the tool orientation must be within the limits (or outside, if the argument Outside is used).
- 参数
-
| frame | |
| max_angle | |
| max_rot | |
| outside | |
| timeout | |
- 返回
- 成功返回0;失败返回错误码 AUBO_BUSY AUBO_BAD_STATE -AUBO_INVL_ARGUMENT -AUBO_BAD_STATE
- 异常
-
- Python函数原型
- setCondOrient(self: pyaubo_sdk.ForceControl, arg0: List[float], arg1: float, arg2: float, arg3: bool, arg4: float) -> int
- Lua函数原型
- setCondOrient(frame: table, max_angle: number, max_rot: number, outside:
boolean, timeout: number) -> nil
- Lua示例
- setCondOrient({0.1, 0.3, 0.1, 0.3142, 0.0, 1.571},30.0,20.0,true,10.0)