From 089fabd60904f219521264cdff14a4078bebdf0b Mon Sep 17 00:00:00 2001 From: Michael Hoy Date: Thu, 14 Dec 2023 09:03:14 +0800 Subject: [PATCH] Add raw publisher examples --- r2r/tests/tokio_test_raw.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/r2r/tests/tokio_test_raw.rs b/r2r/tests/tokio_test_raw.rs index c0fed1e99..9f2b5a123 100644 --- a/r2r/tests/tokio_test_raw.rs +++ b/r2r/tests/tokio_test_raw.rs @@ -98,10 +98,12 @@ async fn tokio_publish_raw_testing() -> Result<(), Box> { .unwrap(); pub_array - .publish(&r2r::std_msgs::msg::Int32MultiArray { - layout: r2r::std_msgs::msg::MultiArrayLayout::default(), - data: vec![i], - }.to_serialized_bytes().unwrap()) + .publish( + &r2r::std_msgs::msg::Int32MultiArray { + layout: r2r::std_msgs::msg::MultiArrayLayout::default(), + data: vec![i], + }.to_serialized_bytes().unwrap() + ) .unwrap(); }); });