mirror of
https://github.com/ruvnet/RuView
synced 2026-08-09 20:21:43 +00:00
d803bfe2b1
git-subtree-dir: vendor/ruvector git-subtree-split: b64c21726f2bb37286d9ee36a7869fef60cc6900
46 lines
1015 B
Rust
46 lines
1015 B
Rust
//! ROS3 Core - Next-generation Robot Operating System
|
|
//!
|
|
//! A ground-up Rust rewrite of ROS targeting microsecond-scale determinism
|
|
//! with hybrid WASM/native deployment via npm.
|
|
|
|
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};
|
|
|
|
/// ROS3 Core version
|
|
pub const VERSION: &str = env!("CARGO_PKG_VERSION");
|
|
|
|
/// Initialize ROS3 runtime
|
|
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());
|
|
}
|
|
}
|