Added missing derives from publisher handle
This commit is contained in:
parent
903b7a5342
commit
a124c21e6d
|
|
@ -46,8 +46,7 @@ fn main() -> Result<(), Error> {
|
|||
|
||||
// run for 10 seconds
|
||||
let mut count = 0;
|
||||
// while count < 100 {
|
||||
loop {
|
||||
while count < 100 {
|
||||
node.spin_once(std::time::Duration::from_millis(100));
|
||||
count += 1;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -350,6 +350,7 @@ where
|
|||
unsafe impl<T> Send for Publisher<T> where T: WrappedTypesupport {}
|
||||
|
||||
use std::sync::{Arc, Mutex, Weak};
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct Publisher<T>
|
||||
where
|
||||
T: WrappedTypesupport,
|
||||
|
|
@ -359,6 +360,7 @@ where
|
|||
}
|
||||
|
||||
unsafe impl Send for PublisherUntyped {}
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct PublisherUntyped {
|
||||
handle: Weak<rcl_publisher_t>,
|
||||
type_: String,
|
||||
|
|
|
|||
Loading…
Reference in New Issue