|
GKD.RoboCtrl
|
Public 成员函数 | |
| fp32 | angle () const |
| 获取电机角度(单位为rad) | |
| fp32 | angle_speed () const |
| 获取电机角速度(单位为rad/s) | |
| fp32 | rpm () const |
| 获取电机转速(单位为rpm) | |
| fp32 | torque () const |
| 获取电机扭矩(单位为A) | |
| fp32 | linear_speed () const |
| 获取电机线速度(单位为m/s) | |
| motor_base (const std::chrono::nanoseconds offline_timeout, fp32 radius) | |
Public 成员函数 继承自 roboctrl::device::device_base | |
| device_base (const std::chrono::nanoseconds offline_timeout) | |
| bool | offline () |
| 判断设备是否离线 | |
| void | tick () |
| 更新心跳时间 | |
| awaitable< void > | task () |
| 默认的task | |
Public 成员函数 继承自 roboctrl::utils::immovable_base | |
| immovable_base (immovable_base &&)=delete | |
| immovable_base & | operator= (immovable_base &&)=delete |
Public 成员函数 继承自 roboctrl::utils::not_copyable_base | |
| not_copyable_base (const not_copyable_base &)=delete | |
| not_copyable_base & | operator= (const not_copyable_base &)=delete |
Protected 属性 | |
| float | angle_ {} |
| float | angle_speed_ {} |
| float | torque_ {} |
| float | radius_ {} |
Protected 属性 继承自 roboctrl::device::device_base | |
| const std::chrono::nanoseconds | offline_timeout_ |
| 设备离线超时时间 | |
| std::chrono::nanoseconds | tick_time_ |
| 上次心跳时间 | |
| bool | terminated_ = false |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |