example
This commit is contained in:
19
example/example_package/example_package.rust
Normal file
19
example/example_package/example_package.rust
Normal file
@@ -0,0 +1,19 @@
|
||||
use common_msgs::*;
|
||||
use std::{thread, time};
|
||||
|
||||
struct Example_package;
|
||||
|
||||
impl Example_package {
|
||||
fn run(&self) {
|
||||
loop {
|
||||
// TODO: Implement node logic
|
||||
println!("Running example_package");
|
||||
thread::sleep(time::Duration::from_secs(1));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fn main() {
|
||||
let node = Example_package{};
|
||||
node.run();
|
||||
}
|
Reference in New Issue
Block a user