From 4e65a4fedbca92b2b5e58f703fc317f4bd764b66 Mon Sep 17 00:00:00 2001 From: Tyler Weaver Date: Thu, 27 Jan 2022 07:01:05 -0700 Subject: [PATCH] Initalize RobotState in Ruckig test (#1032) Signed-off-by: Tyler Weaver --- .../trajectory_processing/test/test_ruckig_traj_smoothing.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/moveit_core/trajectory_processing/test/test_ruckig_traj_smoothing.cpp b/moveit_core/trajectory_processing/test/test_ruckig_traj_smoothing.cpp index a4a7110c6d..c1fbcf0834 100644 --- a/moveit_core/trajectory_processing/test/test_ruckig_traj_smoothing.cpp +++ b/moveit_core/trajectory_processing/test/test_ruckig_traj_smoothing.cpp @@ -69,6 +69,7 @@ TEST_F(RuckigTests, empty_trajectory) TEST_F(RuckigTests, not_enough_waypoints) { moveit::core::RobotState robot_state(robot_model_); + robot_state.setToDefaultValues(); // First waypoint is default joint positions trajectory_->addSuffixWayPoint(robot_state, DEFAULT_TIMESTEP); @@ -82,6 +83,7 @@ TEST_F(RuckigTests, not_enough_waypoints) TEST_F(RuckigTests, basic_trajectory) { moveit::core::RobotState robot_state(robot_model_); + robot_state.setToDefaultValues(); // First waypoint is default joint positions trajectory_->addSuffixWayPoint(robot_state, DEFAULT_TIMESTEP);