Skip to content
This repository was archived by the owner on Nov 28, 2025. It is now read-only.

Commit 40905e3

Browse files
[dynamic] Make sure that we are still C++98 compatible.
Robots are still in 16.04 LTS
1 parent 58221d7 commit 40905e3

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/sot-dynamic-pinocchio.cpp

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -267,9 +267,15 @@ dg::Vector& DynamicPinocchio::getLowerPositionLimits(dg::Vector& res, const int&
267267
}
268268
// Found a Spherical Joint.
269269
// Assuming that spherical joint limits are unset
270-
res(fillingIndex) = std::numeric_limits<double>::lowest();
271-
res(fillingIndex + 1) = std::numeric_limits<double>::lowest();
272-
res(fillingIndex + 2) = std::numeric_limits<double>::lowest();
270+
// Version C++11
271+
//res(fillingIndex) = std::numeric_limits<double>::lowest();
272+
//res(fillingIndex + 1) = std::numeric_limits<double>::lowest();
273+
//res(fillingIndex + 2) = std::numeric_limits<double>::lowest();
274+
// For now use C++98
275+
res(fillingIndex) = -std::numeric_limits<double>::max();
276+
res(fillingIndex + 1) = -std::numeric_limits<double>::max();
277+
res(fillingIndex + 2) = -std::numeric_limits<double>::max();
278+
273279
fillingIndex += 3;
274280
origIndex += 4;
275281
}

0 commit comments

Comments
 (0)