leggedrobotics / ocs2

Optimal Control for Switched Systems
https://leggedrobotics.github.io/ocs2
BSD 3-Clause "New" or "Revised" License
874 stars 225 forks source link

compile error :StateConstraint.h:48:29: error: enclosing class of constexpr non-static member function ‘ocs2::ConstraintOrder ocs2::StateConstraint::getOrder() const’ is not a literal type #12

Closed dbdxnuliba closed 3 years ago

dbdxnuliba commented 3 years ago

/home/robot/ws_perceptive_mpc/src/ocs2/ocs2_core/include/ocs2_core/constraint/StateConstraint.h:48:29: error: enclosing class of constexpr non-static member function ‘ocs2::ConstraintOrder ocs2::StateConstraint::getOrder() const’ is not a literal type I use cmake 3.14.7 in ubuntu16.04 kinetic environment

tomlankhorst commented 3 years ago

Hi @dbdxnuliba,

Please follow the provided bug report template. Also, group related compiler issues (#13, #14) in a single ticket.

As described in the prerequisites section of the documentation, Ubuntu Xenial 16.04 does not satisfy the requirements. Please make sure your system satisfies the mentioned requirements. Consider running OCS2 in a container if you are not able to update your system.