Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase margin for state_publish_rate #1430

Merged
merged 1 commit into from
Dec 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading