pub mod common; use common::msgs::example_msg::msg::Num; use safe_drive::context::Context; use std::error::Error; #[test] fn test_publish() -> Result<(), Box> { let ctx = Context::new()?; let node = ctx .create_node("test_publish_node", None, Default::default()) .unwrap(); let publisher = node.create_publisher::("test_publish", Default::default())?; let msg = Num { num: 100 }; publisher.send(&msg)?; Ok(()) }