コンテンツにスキップ

ActuatorBundle

このコンテンツはまだ日本語訳がありません。

Defined in: actuators.rs:29

pub struct ActuatorBundle

Per-actuator applied command state.

fn new() -> Self

Create an empty bundle with no actuators armed.


fn apply(&mut self, cmd: &Command) -> [Result<(), PluginError>](https://doc.rust-lang.org/std/result/enum.Result.html)

Apply a command, updating the corresponding actuator(s)’ state.

Rejects non-finite commands before they can poison downstream actuator models (NaN guard, see DESIGN.md Phase P 落とし穴リスト).

Only actuators for which the Command has Some fields are updated; other actuators retain their previous value (zero-order hold).


fn mtq_moments(&self) -> &[f64]

Returns the currently-commanded per-MTQ moments, if any was ever applied. Returns empty slice when no command has been observed yet.


fn has_mtq_command(&self) -> bool

Returns true if an MTQ command has been applied at least once.


fn rw_command(&self) -> [Option<&RwCommand>](https://doc.rust-lang.org/std/option/enum.Option.html)

Returns the currently-commanded RW command.


fn has_rw_command(&self) -> bool

Returns true if an RW command has been applied at least once.