|
controls
3.0.0
|
Manages a collection of Thruster objects and builds the allocation matrix. More...
#include <ThrusterLayout.h>
Public Member Functions | |
| ThrusterLayout () | |
| Constructs an empty layout. More... | |
| void | add_thruster (const Thruster &thruster) |
| Adds a thruster to the layout. More... | |
| MatrixXd | build_allocation_matrix () const |
| Builds the 6xN force-allocation matrix from the current thruster set. More... | |
Public Attributes | |
| std::vector< Thruster > | thrusters_ |
| All thrusters registered in this layout. More... | |
Manages a collection of Thruster objects and builds the allocation matrix.
| ThrusterLayout::ThrusterLayout | ( | ) |
Constructs an empty layout.
| void ThrusterLayout::add_thruster | ( | const Thruster & | thruster | ) |
Adds a thruster to the layout.
| thruster | [in] Thruster to append |
| MatrixXd ThrusterLayout::build_allocation_matrix | ( | ) | const |
Builds the 6xN force-allocation matrix from the current thruster set.
Each column i corresponds to the thruster with idx == i. The upper three rows are the normalised thrust direction; the lower three rows are the cross-product moment arm (position × direction).
| std::vector<Thruster> ThrusterLayout::thrusters_ |
All thrusters registered in this layout.