3#include "dynamical_systems/IDynamicalSystem.hpp"
4#include "state_representation/parameters/Parameter.hpp"
25 explicit PointAttractor(
const std::list<std::shared_ptr<state_representation::ParameterInterface>>& parameters);
40 [[nodiscard]]
bool is_compatible(
const S& state)
const override;
46 void validate_and_set_parameter(
const std::shared_ptr<state_representation::ParameterInterface>& parameter)
override;
52 void set_attractor(
const S& attractor);
58 void set_gain(
const std::shared_ptr<state_representation::ParameterInterface>& parameter,
unsigned int expected_size);
60 std::shared_ptr<state_representation::Parameter<S>> attractor_;
61 std::shared_ptr<state_representation::Parameter<Eigen::MatrixXd>> gain_;
66 const std::list<std::shared_ptr<state_representation::ParameterInterface>>& parameters
Abstract class for a dynamical system.
Represents a dynamical system to move towards an attractor.
S compute_dynamics(const S &state) const override
Compute the dynamics of the input state. Internal function, to be redefined based on the type of dyna...
void set_base_frame(const S &base_frame) override
Set the base frame of the dynamical system.
bool is_compatible(const S &state) const override
Check compatibility between a state and the dynamical system.
PointAttractor()
Empty constructor.
void set_parameters(const ParameterInterfaceList ¶meters)
Set parameters from a list of parameters.
Systems of equations relating state variables to their derivatives.