controls  3.0.0
ThrusterLayout.h
Go to the documentation of this file.
1 #ifndef CONTROLS_ALLOCATOR_CONFIG_THRUSTER_LAYOUT_H
2 #define CONTROLS_ALLOCATOR_CONFIG_THRUSTER_LAYOUT_H
3 
5 
6 #include <vector>
7 
12 public:
14  std::vector<Thruster> thrusters_;
15 
20 
26  void add_thruster(const Thruster& thruster);
27 
37  MatrixXd build_allocation_matrix() const;
38 };
39 
40 #endif // CONTROLS_ALLOCATOR_CONFIG_THRUSTER_LAYOUT_H
Manages a collection of Thruster objects and builds the allocation matrix.
Definition: ThrusterLayout.h:11
ThrusterLayout()
Constructs an empty layout.
Definition: ThrusterLayout.cpp:5
std::vector< Thruster > thrusters_
All thrusters registered in this layout.
Definition: ThrusterLayout.h:14
MatrixXd build_allocation_matrix() const
Builds the 6xN force-allocation matrix from the current thruster set.
Definition: ThrusterLayout.cpp:12
void add_thruster(const Thruster &thruster)
Adds a thruster to the layout.
Definition: ThrusterLayout.cpp:8
Represents a single thruster with its physical placement and force direction.
Definition: Thruster.h:11