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

Seem wrong with function almost_ge #72

Open skywoodsz opened 1 year ago

skywoodsz commented 1 year ago

Describe the bug The function template <class T1, class T2, class T3> bool almost_le(T1&& x, T2&& y) { return x < y || almost_eq(x, y); } in file /ocs2_core/include/ocs2_core/misc/Numerics.h with line 105 to 108 seems wrong. There is no class T3 in the function.