Skip to content

Commit

Permalink
Fix examples
Browse files Browse the repository at this point in the history
Signed-off-by: Michael X. Grey <greyxmike@gmail.com>
  • Loading branch information
mxgrey committed Nov 20, 2024
1 parent bbb5333 commit 2cff0b7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/minimal_pub_sub/src/minimal_two_nodes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use anyhow::{Error, Result};
struct MinimalSubscriber {
num_messages: AtomicU32,
node: rclrs::Node,
subscription: Mutex<Option<Arc<rclrs::Subscription<std_msgs::msg::String>>>>,
subscription: Mutex<Option<rclrs::Subscription<std_msgs::msg::String>>>,
}

impl MinimalSubscriber {
Expand Down
2 changes: 1 addition & 1 deletion examples/rust_pubsub/src/simple_publisher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::{sync::Arc, thread, time::Duration};
use std_msgs::msg::String as StringMsg;
struct SimplePublisherNode {
node: Node,
_publisher: Arc<Publisher<StringMsg>>,
_publisher: Publisher<StringMsg>,
}
impl SimplePublisherNode {
fn new(context: &Context) -> Result<Self, RclrsError> {
Expand Down
2 changes: 1 addition & 1 deletion examples/rust_pubsub/src/simple_subscriber.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use std::{
use std_msgs::msg::String as StringMsg;
pub struct SimpleSubscriptionNode {
node: Node,
_subscriber: Arc<Subscription<StringMsg>>,
_subscriber: Subscription<StringMsg>,
data: Arc<Mutex<Option<StringMsg>>>,
}
impl SimpleSubscriptionNode {
Expand Down

0 comments on commit 2cff0b7

Please sign in to comment.