Skip to content

Commit

Permalink
Increase margin for publish rate
Browse files Browse the repository at this point in the history
  • Loading branch information
christophfroehlich committed Dec 17, 2024
1 parent 0e6f08b commit c4dbfc9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions joint_trajectory_controller/test/test_trajectory_controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,7 @@ void TrajectoryControllerTest::test_state_publish_rate_target(int target_msg_cou
}

// We may miss the last message since time allowed is exactly the time needed
EXPECT_NEAR(target_msg_count, echo_received_counter, 1);
EXPECT_NEAR(target_msg_count, echo_received_counter, 2);

executor.cancel();
}
Expand All @@ -893,10 +893,10 @@ TEST_P(TrajectoryControllerTestParameterized, test_state_publish_rate)
test_state_publish_rate_target(10);
}

// TEST_P(TrajectoryControllerTestParameterized, zero_state_publish_rate)
// {
// test_state_publish_rate_target(0);
// }
TEST_P(TrajectoryControllerTestParameterized, test_lower_state_publish_rate)
{
test_state_publish_rate_target(1);
}

/**
* @brief check if use_closed_loop_pid is active
Expand Down

0 comments on commit c4dbfc9

Please sign in to comment.