pub mod middleware;
pub mod serialization;
pub mod message;
pub mod publisher;
pub mod subscriber;
pub mod service;
pub mod error;
pub use middleware::Zenoh;
pub use message::{Message, RobotState, PointCloud};
pub use publisher::Publisher;
pub use subscriber::Subscriber;
pub use service::{Service, Queryable};
pub use error::{Result, Error};
pub const VERSION: &str = env!("CARGO_PKG_VERSION");
pub fn init() -> Result<()> {
tracing_subscriber::fmt()
.with_target(false)
.with_thread_ids(true)
.with_level(true)
.init();
tracing::info!("ROS3 Core v{} initialized", VERSION);
Ok(())
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn test_init() {
let result = init();
assert!(result.is_ok());
}
}