Skip to content

Commit

Permalink
Fixed bugs from review
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Pecka <peckama2@fel.cvut.cz>
  • Loading branch information
peci1 committed Aug 17, 2021
1 parent 7025e5a commit 42ce0a9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dartsim/src/SimulationFeatures.cc
Original file line number Diff line number Diff line change
Expand Up @@ -205,15 +205,16 @@ dart::constraint::ContactSurfaceParams IgnContactSurfaceHandler::createParams(
}

static bool warnedSecondaryRollingFrictionCoeff = false;
if (!warnedSecondaryRollingFrictionCoeff && pIgn.rollingFrictionCoeff)
if (!warnedSecondaryRollingFrictionCoeff &&
pIgn.secondaryRollingFrictionCoeff)
{
ignwarn << "DART doesn't support secondary rolling friction setting"
<< std::endl;
warnedSecondaryRollingFrictionCoeff = true;
}

static bool warnedNormalRollingFrictionCoeff = false;
if (!warnedNormalRollingFrictionCoeff && pIgn.rollingFrictionCoeff)
if (!warnedNormalRollingFrictionCoeff && pIgn.normalRollingFrictionCoeff)
{
ignwarn << "DART doesn't support normal rolling friction setting"
<< std::endl;
Expand Down

0 comments on commit 42ce0a9

Please sign in to comment.