From f20265a5a2551b3270373d6ff6925c1299adc6c6 Mon Sep 17 00:00:00 2001 From: Tom Noble <53005340+TSNoble@users.noreply.github.com> Date: Sat, 16 Nov 2024 08:22:29 +0000 Subject: [PATCH] Fixes flaky RobotState test (#3105) * Fixes flaky RobotState test * Removes redundant line --- moveit_core/robot_state/test/robot_state_test.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/moveit_core/robot_state/test/robot_state_test.cpp b/moveit_core/robot_state/test/robot_state_test.cpp index bea2b7e229..e1d710805c 100644 --- a/moveit_core/robot_state/test/robot_state_test.cpp +++ b/moveit_core/robot_state/test/robot_state_test.cpp @@ -781,6 +781,8 @@ TEST_F(OneRobot, rigidlyConnectedParent) EXPECT_EQ(robot_model_->getRigidlyConnectedParentLinkModel(link_b), link_a); moveit::core::RobotState state(robot_model_); + state.setToDefaultValues(); + state.updateLinkTransforms(); EXPECT_EQ(state.getRigidlyConnectedParentLinkModel("link_b"), link_a);