Skip to content

Commit

Permalink
test: Remove unecessary debug prints
Browse files Browse the repository at this point in the history
  • Loading branch information
philipp-caspers committed Dec 13, 2024
1 parent 6a6add0 commit f482672
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
5 changes: 0 additions & 5 deletions tests/helpers/ros_service_caller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
},
Expand Down
13 changes: 0 additions & 13 deletions tests/helpers/ros_subscriber.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
);
}
}

0 comments on commit f482672

Please sign in to comment.