Skip to content

Commit 80371e1

Browse files
jmirabelolivier-stasse
authored andcommitted
Fix error message in Device::integrate
1 parent f6a1d95 commit 80371e1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/tools/device.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -517,9 +517,8 @@ saturateBounds (double& val, const double& lower, const double& upper)
517517
for (int i = 0; i < val.size(); ++i) { \
518518
double old = val(i); \
519519
if (saturateBounds (val(i), lower(i), upper(i))) \
520-
if (std::abs(old-val(i)) > 1e-2) \
521-
dgRTLOG () << "Robot "what" bound violation at DoF " << i << \
522-
": requested " << old << " but set " << val(i) << '\n'; \
520+
dgRTLOG () << "Robot "what" bound violation at DoF " << i << \
521+
": requested " << old << " but set " << val(i) << '\n'; \
523522
}
524523

525524
void Device::integrate( const double & dt )

0 commit comments

Comments
 (0)