![]() |
lebai sdk
1.4.4
lebai c++ sdk with swig to support sereval languages.
|
独立的夹爪的主要接口对象,通过本对象的方法与夹爪进行数据交互. More...
#include <gripper.hh>
Public Member Functions | |
| Gripper (const std::string &port_name) | |
| 构造Gripper对象. | |
| virtual | ~Gripper () |
| 析构Robot对象. | |
| void | set_position (unsigned int position) |
| 设置夹爪幅度. 范围为0-100. More... | |
| unsigned int | get_current_position () const |
| 获取夹爪当前位置. More... | |
| void | set_force (unsigned int force) |
| 设置夹爪夹持力道. 范围为0-100. More... | |
| unsigned int | get_current_force () const |
| 获取夹爪当前力道. More... | |
| void | set_velocity (unsigned int velocity, bool persistent) |
| 设置夹爪开合速度. 范围为0-100. More... | |
| unsigned int | get_current_velocity (bool persistent) const |
| 获取夹爪当前开合速度. More... | |
| void | do_calibration () |
| 执行夹爪校准动作. More... | |
| bool | is_calibrated () const |
| 获取夹爪是否已校准完成状态. More... | |
| void | turn_on_auto_calibration () |
| 打开自动校准功能. More... | |
| void | turn_off_auto_calibration () |
| 关闭自动校准功能. More... | |
Protected Attributes | |
| std::unique_ptr< GripperImpl > | impl_ |
独立的夹爪的主要接口对象,通过本对象的方法与夹爪进行数据交互.
| void lebai::l_master::Gripper::do_calibration | ( | ) |
执行夹爪校准动作.
| unsigned int lebai::l_master::Gripper::get_current_force | ( | ) | const |
获取夹爪当前力道.
| unsigned int lebai::l_master::Gripper::get_current_position | ( | ) | const |
获取夹爪当前位置.
| unsigned int lebai::l_master::Gripper::get_current_velocity | ( | bool | persistent | ) | const |
获取夹爪当前开合速度.
| bool lebai::l_master::Gripper::is_calibrated | ( | ) | const |
获取夹爪是否已校准完成状态.
| void lebai::l_master::Gripper::set_force | ( | unsigned int | force | ) |
设置夹爪夹持力道. 范围为0-100.
| force | 力道. |
| void lebai::l_master::Gripper::set_position | ( | unsigned int | position | ) |
设置夹爪幅度. 范围为0-100.
| Position | 位置. |
| void lebai::l_master::Gripper::set_velocity | ( | unsigned int | velocity, |
| bool | persistent | ||
| ) |
设置夹爪开合速度. 范围为0-100.
| velocity | 速度. |
| persistent | 是否写入掉电保持寄存器。 |
| void lebai::l_master::Gripper::turn_off_auto_calibration | ( | ) |
关闭自动校准功能.
| void lebai::l_master::Gripper::turn_on_auto_calibration | ( | ) |
打开自动校准功能.
|
protected |
内部实现数据结构,用户无需关注.