From c1df617258a2f0453de018ad80c12890bcd58859 Mon Sep 17 00:00:00 2001 From: sachinkum0009 Date: Fri, 10 Jan 2025 00:47:14 +0100 Subject: [PATCH] remove set_command state asset --- .../test/test_io_gripper_controller_reconfigure.cpp | 8 -------- .../test_io_gripper_controller_reconfigure_action.cpp | 8 -------- 2 files changed, 16 deletions(-) diff --git a/io_gripper_controller/test/test_io_gripper_controller_reconfigure.cpp b/io_gripper_controller/test/test_io_gripper_controller_reconfigure.cpp index f3b0b26ea0..109071ed0a 100644 --- a/io_gripper_controller/test/test_io_gripper_controller_reconfigure.cpp +++ b/io_gripper_controller/test/test_io_gripper_controller_reconfigure.cpp @@ -57,14 +57,6 @@ TEST_F(IOGripperControllerTest, ReconfigureGripperService) std::this_thread::sleep_for(std::chrono::milliseconds(5000)); - ASSERT_EQ( - controller_->update(rclcpp::Time(0), rclcpp::Duration::from_seconds(0.01)), - controller_interface::return_type::OK); - - ASSERT_EQ( - *(controller_->reconfigure_state_buffer_.readFromRT()), - io_gripper_controller::reconfigure_state_type::SET_COMMAND); - ASSERT_EQ( controller_->update(rclcpp::Time(0), rclcpp::Duration::from_seconds(0.01)), controller_interface::return_type::OK); diff --git a/io_gripper_controller/test/test_io_gripper_controller_reconfigure_action.cpp b/io_gripper_controller/test/test_io_gripper_controller_reconfigure_action.cpp index f7588ebb5b..b9f71b1acb 100644 --- a/io_gripper_controller/test/test_io_gripper_controller_reconfigure_action.cpp +++ b/io_gripper_controller/test/test_io_gripper_controller_reconfigure_action.cpp @@ -59,14 +59,6 @@ TEST_F(IOGripperControllerTest, ReconfigureGripperAction) executor.spin_some(std::chrono::milliseconds(5000)); - ASSERT_EQ( - controller_->update(rclcpp::Time(0), rclcpp::Duration::from_seconds(0.01)), - controller_interface::return_type::OK); - - ASSERT_EQ( - *(controller_->reconfigure_state_buffer_.readFromRT()), - io_gripper_controller::reconfigure_state_type::SET_COMMAND); - ASSERT_EQ( controller_->update(rclcpp::Time(0), rclcpp::Duration::from_seconds(0.01)), controller_interface::return_type::OK);