Skip to content

Commit

Permalink
Fix warning
Browse files Browse the repository at this point in the history
Signed-off-by: Louise Poubel <[email protected]>
  • Loading branch information
chapulina committed Apr 22, 2021
1 parent 4879908 commit 0cd9f97
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/integration/wheel_slip.cc
Original file line number Diff line number Diff line change
Expand Up @@ -558,8 +558,11 @@ TEST_F(WheelSlipTest, TricyclesUphill)
// normal force as passed to Wheel Slip in test world
const double wheelNormalForce = 32;
const double mass = 14.5;
// Slip works on DART>=6.10, which isn't available on Ubuntu Focal
#ifndef __linux__
const double forceRatio =
(mass/2) * std::abs(gravity->Data().X()) / wheelNormalForce;
#endif
const double noSlipLinearSpeed = wheelRadius * angularSpeed;

auto wheelRearLeftVelocity =
Expand Down

0 comments on commit 0cd9f97

Please sign in to comment.