From ffa35331a7359baf9213e5c5aa344f3345daded1 Mon Sep 17 00:00:00 2001 From: Christoph Froehlich Date: Sun, 15 Oct 2023 22:40:37 +0000 Subject: [PATCH] Cleanup one test --- .../test/test_trajectory_controller.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/joint_trajectory_controller/test/test_trajectory_controller.cpp b/joint_trajectory_controller/test/test_trajectory_controller.cpp index 976c7dffaf..e8269960ba 100644 --- a/joint_trajectory_controller/test/test_trajectory_controller.cpp +++ b/joint_trajectory_controller/test/test_trajectory_controller.cpp @@ -1722,12 +1722,9 @@ TEST_P(TrajectoryControllerTestParameterized, test_hw_states_has_offset_later_co std::vector initial_pos_cmd, initial_vel_cmd, initial_acc_cmd; for (size_t i = 0; i < 3; ++i) { - joint_pos_[i] = 3.1 + static_cast(i); - initial_pos_cmd.push_back(joint_pos_[i]); - joint_vel_[i] = 0.25 + static_cast(i); - initial_vel_cmd.push_back(joint_vel_[i]); - joint_acc_[i] = 0.02 + static_cast(i) / 10.0; - initial_acc_cmd.push_back(joint_acc_[i]); + initial_pos_cmd.push_back(3.1 + static_cast(i)); + initial_vel_cmd.push_back(0.25 + static_cast(i)); + initial_acc_cmd.push_back(0.02 + static_cast(i) / 10.0); } SetUpAndActivateTrajectoryController( executor, {is_open_loop_parameters}, true, 0., 1., false, initial_pos_cmd, initial_vel_cmd,