1use std::collections::{HashMap, HashSet};
2
3use r2r::{builtin_interfaces::msg::Time, geometry_msgs::msg::TransformStamped};
4use thiserror::Error;
5
6#[derive(Clone, Debug, Error)]
8#[non_exhaustive]
9pub enum TfError {
10 #[error("tf_r2r: AttemptedLookupInPast {:?} < {:?}",.0, .1)]
12 AttemptedLookupInPast(Time, Box<TransformStamped>),
13 #[error("tf_r2r: AttemptedLookupInFuture {:?} < {:?}",.0, .1)]
15 AttemptedLookUpInFuture(Box<TransformStamped>, Time),
16 #[error("tf_r2r: CouldNotFindTransform {} -> {} ({:?})", .0, .1, .2)]
18 CouldNotFindTransform(String, String, HashMap<String, HashSet<String>>),
19 #[error("tf_r2r: CouldNotAcquireLock")]
21 CouldNotAcquireLock,
22 #[error("tf_r2r: r2r error {:?}", .0)]
24 R2r(String),
25}