Commits

Martin Felis committed f9904cc

fix compile issue (thanks to Erwin Coumans)

  • Participants
  • Parent commits 8436ee8

Comments (0)

Files changed (1)

tests/KinematicsTests.cc

 //	cout << LogOutput.str() << endl;
 	CHECK_ARRAY_CLOSE (Vector3d (0., 0., 0.), CalcBodyToBaseCoordinates(*model, Q, body_a_id, Vector3d (0., 0., 0.), true), 3, TEST_PREC );
 	CHECK_ARRAY_CLOSE (Vector3d (0.707106781186547, -0.707106781186547, 0.), CalcBodyToBaseCoordinates(*model, Q, body_b_id, Vector3d (0., 0., 0.), true), 3, TEST_PREC );
-	CHECK_ARRAY_CLOSE (Vector3d (sqrt(2), 0., 0.),CalcBodyToBaseCoordinates(*model, Q, body_c_id, Vector3d (0., 0., 0.), true), 3, TEST_PREC );
-	CHECK_ARRAY_CLOSE (Vector3d (sqrt(2), 0., -1.), CalcBodyToBaseCoordinates(*model, Q, body_d_id, Vector3d (0., 0., 0.), true), 3, TEST_PREC );
+	CHECK_ARRAY_CLOSE (Vector3d (sqrt(2.0), 0., 0.),CalcBodyToBaseCoordinates(*model, Q, body_c_id, Vector3d (0., 0., 0.), true), 3, TEST_PREC );
+	CHECK_ARRAY_CLOSE (Vector3d (sqrt(2.0), 0., -1.), CalcBodyToBaseCoordinates(*model, Q, body_d_id, Vector3d (0., 0., 0.), true), 3, TEST_PREC );
 }
 
 TEST_FIXTURE(KinematicsFixture, TestPositionBodyBRotated90Deg) {