Skip to content

Commit

Permalink
Merge branch 'gz-physics6' into scpeters/bullet_offdiagonal_inertia
Browse files Browse the repository at this point in the history
  • Loading branch information
scpeters authored Sep 20, 2023
2 parents b541796 + 80aaef1 commit 3d3714c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/common_test/joint_features.cc
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,10 @@ TYPED_TEST(JointFeaturesTest, JointSetCommand)
// Check that invalid velocity commands don't cause collisions to fail
for (std::size_t i = 0; i < 1000; ++i)
{
// Silence console spam
gz::common::Console::SetVerbosity(0);
joint->SetForce(0, std::numeric_limits<double>::quiet_NaN());
gz::common::Console::SetVerbosity(4);
// expect the position of the pendulum to stay above ground
world->Step(output, state, input);
auto frameData = base_link->FrameDataRelativeToWorld();
Expand Down Expand Up @@ -178,7 +181,10 @@ TYPED_TEST(JointFeaturesTest, JointSetCommand)
// Check that invalid velocity commands don't cause collisions to fail
for (std::size_t i = 0; i < 1000; ++i)
{
// Silence console spam
gz::common::Console::SetVerbosity(0);
joint->SetVelocityCommand(0, std::numeric_limits<double>::quiet_NaN());
gz::common::Console::SetVerbosity(4);
// expect the position of the pendulum to stay above ground
world->Step(output, state, input);
auto frameData = base_link->FrameDataRelativeToWorld();
Expand Down

0 comments on commit 3d3714c

Please sign in to comment.