Skip to content

Commit

Permalink
Fix dart deprecation warning
Browse files Browse the repository at this point in the history
Copied from gazebosim#262.

Signed-off-by: Steve Peters <scpeters@openrobotics.org>
  • Loading branch information
scpeters committed Jun 17, 2021
1 parent 1c04c60 commit c0a1dde
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/plugins/DARTDoublePendulum.cc
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,12 @@ namespace mock

for (std::size_t i=0; i < robot->getNumJoints(); ++i)
{
// 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 c0a1dde

Please sign in to comment.