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,