robot_behavior 0.5.4

a library for robot common behavior
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::{path::Path, time::Duration};

pub trait PhysicsEngine {
    type Error;
    fn reset(&mut self) -> Result<(), Self::Error>;
    fn step(&mut self) -> Result<(), Self::Error>;
    fn shutdown(self);

    fn set_step_time(&mut self, dt: Duration) -> Result<&mut Self, Self::Error>;
    fn set_gravity(&mut self, gravity: impl Into<[f64; 3]>) -> Result<&mut Self, Self::Error>;
}

pub trait AddSearchPath {
    type Error;
    fn add_search_path(&mut self, path: impl AsRef<Path>) -> Result<&mut Self, Self::Error>;
}