use nalgebra::Isometry3;
use crate::{Error, TransformResolver};
#[derive(Debug)]
pub struct DummyTransformResolver {
pub transformation: Isometry3<f64>,
}
impl DummyTransformResolver {
pub fn new() -> Self {
Self {
transformation: Isometry3::identity(),
}
}
}
impl Default for DummyTransformResolver {
fn default() -> Self {
Self::new()
}
}
impl TransformResolver for DummyTransformResolver {
fn resolve_transformation(
&self,
_from: &str,
_to: &str,
_time: std::time::SystemTime,
) -> Result<Isometry3<f64>, Error> {
Ok(self.transformation)
}
}