[][src]Struct librobot::transmission::navigation::NavigationFrame

pub struct NavigationFrame {
    pub x: i32,
    pub y: i32,
    pub angle: i32,
    pub left_dist: i32,
    pub right_dist: i32,
    pub blocked: bool,
    pub moving_done: bool,
    pub asserv_lin: bool,
    pub asserv_ang: bool,
    pub led: bool,
    pub reset: bool,
    pub max_lin_speed: u16,
    pub max_ang_speed: u16,
    pub lin_accuracy: u16,
    pub ang_accuracy: u16,
    pub command: NavigationCommand,
    pub args_cmd1: u16,
    pub args_cmd2: u16,
    pub counter: u16,
}

Trame contenant les informations echangees entre l'info et l'elec.

Fields

x: i32

position x du robot en dixieme de millimetres

y: i32

position y du robot en dixieme de millimetres

angle: i32

angle du robot en centaines de microradians

left_dist: i32

distance parcourue par la roue gauche en millimètres

right_dist: i32

distance parcourue par la roue droite en millimètres

blocked: bool

vrai si le robot ne peut pas avancer

moving_done: bool

vrai si le robot a fini d'executer la commande

asserv_lin: bool

vrai si l'asservissement longitudinal est operationnel

asserv_ang: bool

vrai si l'asservissement angulaire est opérationnel

led: bool

eclairage des LEDs du module (si elles sont presentes)

reset: bool

si vrai, l'info peut fixer (x, y, angle)

max_lin_speed: u16

vitesse longitudinale max du robot en mm/s

max_ang_speed: u16

vitesse angulaire max du robot en milliradian/s

lin_accuracy: u16

précision longitudinale du robot (à partir de laquelle on considère qu'une commande de déplacement longitudinal a été réalisée) en dixième de millimetre

ang_accuracy: u16

précision angulaire du robot (à partir de laquelle on considère qu'une commande de déplacement angulaire a été réalisée) en dixième de milliradian

command: NavigationCommand

commande à effectuer

args_cmd1: u16

argument 1 de la commande

args_cmd2: u16

argument 2 de la commande

counter: u16

numéro de la commande en cours. Si on reçoit une commande avec un numéro plus grand, on l'execute en priorité

Trait Implementations

impl Jsonizable for NavigationFrame[src]

fn from_json_slice(slice: &[u8]) -> Result<Self, DError>[src]

Construit une trame a partir d'un flux de donnees json.

fn to_string<B>(&self) -> Result<String<B>, SError> where
    B: ArrayLength<u8>, 
[src]

Construit une chaine de caractère en json à partir de cette trame

impl PartialEq<NavigationFrame> for NavigationFrame[src]

impl Eq for NavigationFrame[src]

impl Debug for NavigationFrame[src]

impl Copy for NavigationFrame[src]

impl Clone for NavigationFrame[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Default for NavigationFrame[src]

impl Serialize for NavigationFrame[src]

impl<'de> Deserialize<'de> for NavigationFrame[src]

Auto Trait Implementations

impl Send for NavigationFrame

impl Sync for NavigationFrame

Blanket Implementations

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]