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
|
// run for 10 seconds
|
||||||
let mut count = 0;
|
let mut count = 0;
|
||||||
// while count < 100 {
|
while count < 100 {
|
||||||
loop {
|
|
||||||
node.spin_once(std::time::Duration::from_millis(100));
|
node.spin_once(std::time::Duration::from_millis(100));
|
||||||
count += 1;
|
count += 1;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -350,6 +350,7 @@ where
|
||||||
unsafe impl<T> Send for Publisher<T> where T: WrappedTypesupport {}
|
unsafe impl<T> Send for Publisher<T> where T: WrappedTypesupport {}
|
||||||
|
|
||||||
use std::sync::{Arc, Mutex, Weak};
|
use std::sync::{Arc, Mutex, Weak};
|
||||||
|
#[derive(Debug, Clone)]
|
||||||
pub struct Publisher<T>
|
pub struct Publisher<T>
|
||||||
where
|
where
|
||||||
T: WrappedTypesupport,
|
T: WrappedTypesupport,
|
||||||
|
|
@ -359,6 +360,7 @@ where
|
||||||
}
|
}
|
||||||
|
|
||||||
unsafe impl Send for PublisherUntyped {}
|
unsafe impl Send for PublisherUntyped {}
|
||||||
|
#[derive(Debug, Clone)]
|
||||||
pub struct PublisherUntyped {
|
pub struct PublisherUntyped {
|
||||||
handle: Weak<rcl_publisher_t>,
|
handle: Weak<rcl_publisher_t>,
|
||||||
type_: String,
|
type_: String,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue