rosrust::Time as TimeMsg if rosrust_msg is active (#6)
This commit is contained in:
parent
4e8332a1d8
commit
055810e8a9
|
|
@ -1,15 +1,20 @@
|
|||
#[cfg(not(feature = "rosrust_msg"))]
|
||||
#[derive(Clone, Debug)]
|
||||
pub struct TimeMsg {
|
||||
pub sec: u32,
|
||||
pub nsec: u32,
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "rosrust_msg"))]
|
||||
impl Default for TimeMsg {
|
||||
fn default() -> Self {
|
||||
Self { sec: 0, nsec: 0 }
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "rosrust_msg")]
|
||||
pub use rosrust::Time as TimeMsg;
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
pub struct HeaderMsg {
|
||||
pub seq: u32,
|
||||
|
|
|
|||
Loading…
Reference in New Issue