20 lines
348 B
Plaintext
20 lines
348 B
Plaintext
use common_msgs::*;
|
|
use std::{thread, time};
|
|
|
|
struct Example_rust;
|
|
|
|
impl Example_rust {
|
|
fn run(&self) {
|
|
loop {
|
|
// TODO: Implement node logic
|
|
println!("Running example_rust");
|
|
thread::sleep(time::Duration::from_secs(1));
|
|
}
|
|
}
|
|
}
|
|
|
|
fn main() {
|
|
let node = Example_rust{};
|
|
node.run();
|
|
}
|