Skip to content

Commit

Permalink
Add raw publisher examples
Browse files Browse the repository at this point in the history
  • Loading branch information
mchhoy committed Dec 14, 2023
1 parent a825511 commit 089fabd
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions r2r/tests/tokio_test_raw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,12 @@ async fn tokio_publish_raw_testing() -> Result<(), Box<dyn std::error::Error>> {
.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();
});
});
Expand Down

0 comments on commit 089fabd

Please sign in to comment.