arci 0.0.3

Abstruct Robot Control Interface
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::error::Error;
use crate::Isometry2;
use async_trait::async_trait;
use auto_impl::auto_impl;

#[async_trait]
#[auto_impl(Box, Arc)]
pub trait Navigation: Send + Sync {
    async fn send_pose(
        &self,
        goal: Isometry2<f64>,
        frame_id: &str,
        timeout: std::time::Duration,
    ) -> Result<(), Error>;
    fn current_pose(&self) -> Result<Isometry2<f64>, Error>;

    fn cancel(&self) -> Result<(), Error>;
}