@@ -5,7 +5,7 @@ use anyhow::{Error, Result};
55
66struct MinimalSubscriberNode {
77 #[ allow( unused) ]
8- subscription : WorkerSubscription < std_msgs :: msg:: String , SubscriptionData > ,
8+ subscription : WorkerSubscription < example_interfaces :: msg:: String , SubscriptionData > ,
99}
1010
1111struct SubscriptionData {
@@ -26,7 +26,7 @@ impl MinimalSubscriberNode {
2626
2727 let subscription = worker. create_subscription (
2828 topic,
29- |data : & mut SubscriptionData , msg : std_msgs :: msg:: String | {
29+ |data : & mut SubscriptionData , msg : example_interfaces :: msg:: String | {
3030 data. num_messages += 1 ;
3131 println ! ( "[{}] I heard: '{}'" , data. node. name( ) , msg. data) ;
3232 println ! (
@@ -50,12 +50,12 @@ fn main() -> Result<(), Error> {
5050 let _subscriber_node_two =
5151 MinimalSubscriberNode :: new ( & executor, "minimal_subscriber_two" , "topic" ) ?;
5252
53- let publisher = publisher_node. create_publisher :: < std_msgs :: msg:: String > ( "topic" ) ?;
53+ let publisher = publisher_node. create_publisher :: < example_interfaces :: msg:: String > ( "topic" ) ?;
5454
5555 // TODO(@mxgrey): Replace this with a timer once we have the Timer feature
5656 // merged in.
5757 std:: thread:: spawn ( move || -> Result < ( ) , rclrs:: RclrsError > {
58- let mut message = std_msgs :: msg:: String :: default ( ) ;
58+ let mut message = example_interfaces :: msg:: String :: default ( ) ;
5959 let mut publish_count: u32 = 1 ;
6060 loop {
6161 message. data = format ! ( "Hello, world! {}" , publish_count) ;
0 commit comments