|
GKD.RoboCtrl
RoboMaster Linux 电控:异步 IO、设备驱动与机器人控制
|


Public 成员函数 | |
| virtual awaitable< void > | set (fp32 target)=0 |
| virtual awaitable< void > | set_angle_speed (fp32 target) |
| virtual awaitable< void > | set_current (fp32) |
| virtual bool | supports_current_control () const |
| virtual bool | faulted () const |
| virtual fp32 | requested_current () const |
| virtual fp32 | current_feedback_raw () const |
| virtual fp32 | max_current () const |
| virtual fp32 | target_angle_speed () const |
| virtual void | set_output_scale (fp32) |
| virtual void | set_current_limit (fp32) |
| fp32 | radius () const |
| virtual awaitable< void > | enable ()=0 |
| virtual void | disable () |
| virtual void | set_enabled (bool enabled) |
| fp32 | angle () const |
| 获取电机角度(单位为rad) | |
| fp32 | angle_speed () const |
| 获取电机角速度(单位为rad/s) | |
| fp32 | rpm () const |
| 获取电机转速(单位为rpm) | |
| fp32 | torque () const |
| 获取驱动定义的反馈:DJI/M9025 原始电流计数,J6006 为 Nm。 | |
| 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 () const |
| 判断设备是否离线 | |
| 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 |
|
inlineexplicit |
|
inline |
获取电机角度(单位为rad)
|
inline |
|
inlinevirtual |
|
inlinevirtual |
Disable output and clear any pending command.
被 roboctrl::device::dji_motor, roboctrl::device::j6006 , 以及 roboctrl::device::m9025 重载.
被这些函数引用 set_enabled().
|
pure virtual |
Enable output.
在 roboctrl::device::dji_motor, roboctrl::device::j6006 , 以及 roboctrl::device::m9025 内被实现.
|
inlinevirtual |
A valid feedback frame may still report a drive fault.
被 roboctrl::device::j6006 重载.
|
inline |
获取电机线速度(单位为m/s)
|
inlinevirtual |
|
inlinevirtual |
|
inline |
Set the device-specific target (usually speed or current).
在 roboctrl::device::j6006, roboctrl::device::dji_motor , 以及 roboctrl::device::m9025 内被实现.
被这些函数引用 set_angle_speed() , 以及 roboctrl::ctrl::shoot::update().
|
inlinevirtual |
Explicit output-shaft speed, rad/s; set() remains linear speed in m/s.
被 roboctrl::device::dji_motor, roboctrl::device::j6006 , 以及 roboctrl::device::m9025 重载.
引用了 set().
被这些函数引用 roboctrl::ctrl::shoot::update() , 以及 roboctrl::device::gkd_sentry_gimbal::update().
Raw driver command units, not amperes. Unsupported drivers reject this mode.
被 roboctrl::device::dji_motor , 以及 roboctrl::device::m9025 重载.
|
inlinevirtual |
|
inlinevirtual |
Common safety gate used by the control layer.
被 roboctrl::device::dji_motor, roboctrl::device::j6006 , 以及 roboctrl::device::m9025 重载.
引用了 disable().
被这些函数引用 roboctrl::device::gkd_sentry_gimbal::set_enabled() , 以及 roboctrl::device::gkd_sentry_gimbal::update().
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inline |