1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
use std::path::PathBuf; use thiserror::Error; use urdf_rs::UrdfError; #[derive(Debug, Error)] #[non_exhaustive] pub enum Error { #[error("openrr-cleint: No JointTrajectoryClient={} is found.", .0)] NoJointTrajectoryClient(String), #[error("openrr-cleint: No IkClient={} is found.", .0)] NoIkClient(String), #[error("openrr-cleint: No Joint={} is found.", .0)] NoJoint(String), #[error("openrr-cleint: MismatchedLength {} != {}.", .0, .1)] MismatchedLength(usize, usize), #[error("openrr-cleint: No UrdfPath is specified.")] NoUrdfPath, #[error("openrr-cleint: No JointsPose {} {} is found.", .0, .1)] NoJointsPose(String, String), #[error("openrr-cleint: No ParentDirectory {:?} is found.", .0)] NoParentDirectory(PathBuf), #[error("openrr-cleint: arci: {:?}", .0)] Arci(#[from] arci::Error), #[error("openrr-cleint: urdf-rs: {:?}", .0)] UrdfRs(#[from] UrdfError), }