|
controls
3.0.0
|
Controller that computes open-loop forces via inverse dynamics. More...
#include <FeedforwardController.h>
Public Member Functions | |
| Vector6d | getForce (const State &goal, const State &curr, double dt) override |
| Computes the feed-forward force from the goal state's acceleration and velocity. More... | |
| BaseControllerInterface ()=default | |
| BaseControllerInterface (std::shared_ptr< SystemDynamicsBase > auv, std::shared_ptr< ControllerConfig > config) | |
| Constructs a controller with the given dynamics model and config. More... | |
Public Member Functions inherited from BaseControllerInterface | |
| BaseControllerInterface ()=default | |
| BaseControllerInterface (std::shared_ptr< SystemDynamicsBase > auv, std::shared_ptr< ControllerConfig > config) | |
| Constructs a controller with the given dynamics model and config. More... | |
| virtual | ~BaseControllerInterface ()=default |
| virtual void | reset () |
| Resets any internal state (e.g., integrator terms) More... | |
Additional Inherited Members | |
Protected Attributes inherited from BaseControllerInterface | |
| std::shared_ptr< SystemDynamicsBase > | auv_ |
| Vehicle dynamics model shared with all controllers in a stack. More... | |
| std::shared_ptr< ControllerConfig > | config_ |
| Tuning parameters shared with all controllers in a stack. More... | |
Controller that computes open-loop forces via inverse dynamics.
Uses the vehicle dynamics model to evaluate M·a + C(v)·v + D(v)·v, producing a force that cancels inertial, Coriolis, and damping effects for the desired trajectory state. Returns zero near the surface when surface gain scheduling is enabled.
|
default |
|
inline |
Constructs a controller with the given dynamics model and config.
| auv | [in] Shared vehicle dynamics model |
| config | [in] Shared controller tuning parameters |
|
overridevirtual |
Computes the feed-forward force from the goal state's acceleration and velocity.
| goal | [in] Desired vehicle state (acceleration and twist are used) |
| curr | [in] Current vehicle state (used only for surface-depth check) |
| dt | [in] Time step in seconds (unused by this controller) |
Implements BaseControllerInterface.