diff --git a/test/plugins/DARTDoublePendulum.cc b/test/plugins/DARTDoublePendulum.cc index b3b2adfdf..a1a29fb95 100644 --- a/test/plugins/DARTDoublePendulum.cc +++ b/test/plugins/DARTDoublePendulum.cc @@ -73,10 +73,11 @@ namespace mock for (std::size_t i=0; i < robot->getNumJoints(); ++i) { -#if DART_VERSION_AT_LEAST(6, 9, 0) - this->robot->getJoint(i)->setPositionLimitEnforced(false); -#else +// From upstream 6.10.0 or OSRF 6.10.0~osrf19~2021-06-10 +#if DART_VERSION_AT_LEAST(6, 10, 0) this->robot->getJoint(i)->setLimitEnforcement(false); +#else + this->robot->getJoint(i)->setPositionLimitEnforced(false); #endif this->robot->getJoint(i)->setDampingCoefficient(0, 0); }