Skip to content

Commit

Permalink
providing latch to advertise()
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasw committed Aug 23, 2024
1 parent 5c7865e commit d73c924
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ros1_rlr/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ async fn main() -> Result<(), anyhow::Error> {

let nh = NodeHandle::new(&std::env::var("ROS_MASTER_URI")?, full_node_name)
.await.unwrap();
let point_pub = nh.advertise::<geometry_msgs::PointStamped>(&format!("{ns}/point"), 2)
let point_pub = nh.advertise::<geometry_msgs::PointStamped>(&format!("{ns}/point"), 2, false)
.await.unwrap();

let mut float_sub = nh.subscribe::<std_msgs::Float32>(&format!("{ns}/float"), 2).await.unwrap();
Expand Down

0 comments on commit d73c924

Please sign in to comment.