Commit 40905e3a authored by Olivier Stasse's avatar Olivier Stasse
Browse files

[dynamic] Make sure that we are still C++98 compatible.

Robots are still in 16.04 LTS
parent 58221d7d
......@@ -267,9 +267,15 @@ dg::Vector& DynamicPinocchio::getLowerPositionLimits(dg::Vector& res, const int&
}
// Found a Spherical Joint.
// Assuming that spherical joint limits are unset
res(fillingIndex) = std::numeric_limits<double>::lowest();
res(fillingIndex + 1) = std::numeric_limits<double>::lowest();
res(fillingIndex + 2) = std::numeric_limits<double>::lowest();
// Version C++11
//res(fillingIndex) = std::numeric_limits<double>::lowest();
//res(fillingIndex + 1) = std::numeric_limits<double>::lowest();
//res(fillingIndex + 2) = std::numeric_limits<double>::lowest();
// For now use C++98
res(fillingIndex) = -std::numeric_limits<double>::max();
res(fillingIndex + 1) = -std::numeric_limits<double>::max();
res(fillingIndex + 2) = -std::numeric_limits<double>::max();
fillingIndex += 3;
origIndex += 4;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment