Skip to content

Commit

Permalink
update joint features test
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Chen <[email protected]>
  • Loading branch information
iche033 committed Oct 11, 2024
1 parent 0f8edb3 commit 0bdd25c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/common_test/joint_features.cc
Original file line number Diff line number Diff line change
Expand Up @@ -860,15 +860,15 @@ TYPED_TEST(JointFeaturesPositionLimitsForceControlTest,
static_cast<int>(positionGoal / velocityLimit / dt);
// Take the expected number of steps.
gzdbg << "Taking " << expectedSteps << " steps "
<< "to reach the goal.";
<< "to reach the goal." << std::endl;

gz::physics::ForwardStep::Output output;
gz::physics::ForwardStep::State state;
gz::physics::ForwardStep::Input input;

for (int i = 0; i < expectedSteps; ++i)
{
joint->SetVelocityCommand(0, 100);
joint->SetVelocityCommand(0, velocityLimit);
world->Step(output, state, input);
}

Expand Down

0 comments on commit 0bdd25c

Please sign in to comment.