Skip to content

Commit

Permalink
Fix deprecation warning
Browse files Browse the repository at this point in the history
Signed-off-by: Louise Poubel <louise@openrobotics.org>
  • Loading branch information
chapulina committed Jun 17, 2021
1 parent 732eff9 commit 71423bf
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/plugins/DARTDoublePendulum.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 71423bf

Please sign in to comment.