Control Libraries 7.4.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
dynamical_systems::Circular Class Reference

Represent a Circular dynamical system to move around an center. More...

#include <Circular.hpp>

Inheritance diagram for dynamical_systems::Circular:
dynamical_systems::IDynamicalSystem< state_representation::CartesianState > state_representation::ParameterMap

Public Member Functions

 Circular ()
 Empty constructor.
 
 Circular (const std::list< std::shared_ptr< state_representation::ParameterInterface > > &parameters)
 Constructor from an initial parameter list.
 
void set_base_frame (const state_representation::CartesianState &base_frame) override
 Set a parameter.
 
state_representation::CartesianState compute_dynamics (const state_representation::CartesianState &state) const override
 Compute the dynamics of the input state. Internal function, to be redefined based on the type of dynamical system, called by the evaluate function.
 
- Public Member Functions inherited from dynamical_systems::IDynamicalSystem< state_representation::CartesianState >
 IDynamicalSystem ()=default
 Empty constructor.
 
virtual bool is_compatible (const state_representation::CartesianState &state) const
 Check compatibility between a state and the dynamical system.
 
state_representation::CartesianState evaluate (const state_representation::CartesianState &state) const
 Evaluate the value of the dynamical system at a given state.
 
state_representation::CartesianState get_base_frame () const
 Return the base frame of the dynamical system.
 
virtual void set_base_frame (const state_representation::CartesianState &base_frame)
 Set the base frame of the dynamical system.
 
- Public Member Functions inherited from state_representation::ParameterMap
 ParameterMap ()=default
 Empty constructor.
 
 ParameterMap (const ParameterInterfaceList &parameters)
 Construct the parameter map with an initial list of parameters.
 
 ParameterMap (const ParameterInterfaceMap &parameters)
 Construct the parameter map with an initial map of parameters.
 
std::shared_ptr< ParameterInterfaceget_parameter (const std::string &name) const
 Get a parameter by its name.
 
ParameterInterfaceMap get_parameters () const
 Get a map of all the <name, parameter> pairs.
 
template<typename T >
get_parameter_value (const std::string &name) const
 Get a parameter value by its name.
 
ParameterInterfaceList get_parameter_list () const
 Get a list of all the parameters.
 
void set_parameter (const std::shared_ptr< ParameterInterface > &parameter)
 Set a parameter.
 
void set_parameters (const ParameterInterfaceList &parameters)
 Set parameters from a list of parameters.
 
void set_parameters (const ParameterInterfaceMap &parameters)
 Set parameters from a map with <name, parameter> pairs.
 
template<typename T >
void set_parameter_value (const std::string &name, const T &value)
 Set a parameter value by its name.
 
void remove_parameter (const std::string &name)
 Remove a parameter from the parameter map.
 

Additional Inherited Members

- Protected Member Functions inherited from state_representation::ParameterMap
void assert_parameter_valid (const std::shared_ptr< ParameterInterface > &parameter)
 Check if a parameter exists and has the expected type, throw an exception otherwise.
 
- Protected Attributes inherited from state_representation::ParameterMap
ParameterInterfaceMap parameters_
 map of parameters by name
 

Detailed Description

Represent a Circular dynamical system to move around an center.

Definition at line 13 of file Circular.hpp.

Constructor & Destructor Documentation

◆ Circular() [1/2]

dynamical_systems::Circular::Circular ( )

Empty constructor.

Definition at line 12 of file Circular.cpp.

◆ Circular() [2/2]

dynamical_systems::Circular::Circular ( const std::list< std::shared_ptr< state_representation::ParameterInterface > > &  parameters)
explicit

Constructor from an initial parameter list.

Parameters
parametersA parameter list containing initial parameters

Definition at line 23 of file Circular.cpp.

Member Function Documentation

◆ compute_dynamics()

CartesianState dynamical_systems::Circular::compute_dynamics ( const state_representation::CartesianState state) const
overridevirtual

Compute the dynamics of the input state. Internal function, to be redefined based on the type of dynamical system, called by the evaluate function.

Parameters
stateThe input state
Returns
The output state

Implements dynamical_systems::IDynamicalSystem< state_representation::CartesianState >.

Definition at line 84 of file Circular.cpp.

◆ set_base_frame()

void dynamical_systems::Circular::set_base_frame ( const state_representation::CartesianState base_frame)
override

Set a parameter.

Parameters
parameterThe new parameter

Definition at line 51 of file Circular.cpp.


The documentation for this class was generated from the following files: