|
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 | addThruster (const Thruster &thruster) |
| Adds a thruster to the layout. More... | |
| void | clear () |
| Removes all thrusters from the layout. More... | |
| MatrixXd | buildAllocationMatrix () 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::addThruster | ( | const Thruster & | thruster | ) |
Adds a thruster to the layout.
| thruster | [in] Thruster to append |
| MatrixXd ThrusterLayout::buildAllocationMatrix | ( | ) | 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).
| void ThrusterLayout::clear | ( | ) |
Removes all thrusters from the layout.
| std::vector<Thruster> ThrusterLayout::thrusters |
All thrusters registered in this layout.