robotoc
robotoc - efficient ROBOT Optimal Control solvers
Loading...
Searching...
No Matches
com_ref_base.hpp
Go to the documentation of this file.
1#ifndef ROBOTOC_COM_REF_BASE_HPP_
2#define ROBOTOC_COM_REF_BASE_HPP_
3
4#include "Eigen/Core"
5
7
8
9namespace robotoc {
10
16public:
21
25 virtual ~CoMRefBase() {}
26
30 CoMRefBase(const CoMRefBase&) = default;
31
35 CoMRefBase& operator=( const CoMRefBase&) = default;
36
40 CoMRefBase(CoMRefBase&&) noexcept = default;
41
45 CoMRefBase& operator=(CoMRefBase&&) noexcept = default;
46
52 virtual void updateRef(const GridInfo& grid_info,
53 Eigen::VectorXd& com_ref) const = 0;
54
60 virtual bool isActive(const GridInfo& grid_info) const = 0;
61};
62
63} // namespace robotoc
64
65#endif // ROBOTOC_COM_REF_BASE_HPP_
Base class of reference position of the center of mass (CoM).
Definition: com_ref_base.hpp:15
CoMRefBase(const CoMRefBase &)=default
Default copy constructor.
CoMRefBase & operator=(const CoMRefBase &)=default
Default copy operator.
virtual void updateRef(const GridInfo &grid_info, Eigen::VectorXd &com_ref) const =0
Computes the reference CoM position.
virtual ~CoMRefBase()
Destructor.
Definition: com_ref_base.hpp:25
CoMRefBase()
Default constructor.
Definition: com_ref_base.hpp:20
CoMRefBase(CoMRefBase &&) noexcept=default
Default move constructor.
virtual bool isActive(const GridInfo &grid_info) const =0
Checks wheather the cost is active or not for the given grid info.
Definition: constraint_component_base.hpp:17
Grid information.
Definition: grid_info.hpp:24