From 0ba1deadccf96d4a4920e352e223d95293177b10 Mon Sep 17 00:00:00 2001 From: Philipp Caspers <117186241+philipp-caspers@users.noreply.github.com> Date: Fri, 13 Dec 2024 14:57:26 +0000 Subject: [PATCH] test: Remove unecessary debug prints --- tests/helpers/ros_service_caller.rs | 5 ----- tests/helpers/ros_subscriber.rs | 13 ------------- 2 files changed, 18 deletions(-) diff --git a/tests/helpers/ros_service_caller.rs b/tests/helpers/ros_service_caller.rs index d68a2cf..4c7d1fc 100644 --- a/tests/helpers/ros_service_caller.rs +++ b/tests/helpers/ros_service_caller.rs @@ -34,21 +34,16 @@ impl ServiceCaller { } pub fn start(&self) { - println!("Starting ROS Service Client"); - while !self.client.service_is_ready().unwrap() { std::thread::sleep(std::time::Duration::from_millis(10)); } - println!("ROS Service Client is ready"); } pub fn call(&self) { - println!("Calling a ROS Service"); let num_calls_clone = Arc::clone(&self.number_of_calls); self.client .async_send_request_with_callback( &self.request, move |_response: std_srvs::srv::Empty_Response| { - println!("Got an answer"); let mut num_calls = num_calls_clone.lock().unwrap(); *num_calls += 1; }, diff --git a/tests/helpers/ros_subscriber.rs b/tests/helpers/ros_subscriber.rs index 72ad65d..912be06 100644 --- a/tests/helpers/ros_subscriber.rs +++ b/tests/helpers/ros_subscriber.rs @@ -39,19 +39,6 @@ impl Subscriber { } fn callback(&self, msg: JointStateMsg) { self.num_messages.fetch_add(1, Ordering::SeqCst); - println!("msg {}", msg.clone().position.first().unwrap()); *self.data.lock().unwrap() = Some(msg); - - println!( - "data {}", - self.data - .lock() - .unwrap() - .as_mut() - .unwrap() - .position - .first() - .unwrap() - ); } }