Skip to content

Commit 0197d42

Browse files
committed
Add test for resetting the RTDE client
1 parent 19fbe3a commit 0197d42

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/test_ur_driver.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,12 @@ TEST_F(UrDriverTest, send_robot_program_retry_on_failure)
372372
EXPECT_TRUE(g_ur_driver_->sendRobotProgram());
373373
}
374374

375+
TEST_F(UrDriverTest, reset_rtde_client) {
376+
double target_frequency = 50;
377+
g_ur_driver_->resetRTDEClient(OUTPUT_RECIPE, INPUT_RECIPE, target_frequency);
378+
ASSERT_EQ(g_ur_driver_->getControlFrequency(), target_frequency);
379+
}
380+
375381
// TODO we should add more tests for the UrDriver class.
376382

377383
int main(int argc, char* argv[])

0 commit comments

Comments
 (0)