Enum franka::exception::FrankaException
source · [−]pub enum FrankaException {
ControlException {
log: Option<Vec<Record>>,
error: String,
},
IncompatibleLibraryVersionError {
server_version: u16,
library_version: u16,
},
NoMotionGeneratorRunningError,
NoControllerRunningError,
PartialCommandError,
NetworkException {
message: String,
},
CommandException {
message: String,
},
ModelException {
message: String,
},
RealTimeException {
message: String,
},
}
Expand description
Represents all kind of errors which correspond to the franka::Exception in the C++ version of this library
Variants
ControlException
Fields
error: String
Explanatory string.
ControlException is thrown if an error occurs during motion generation or torque control. The exception holds a vector with the last received robot states. The number of recorded states can be configured in the Robot constructor.
IncompatibleLibraryVersionError
Fields
server_version: u16
Control’s protocol version.
library_version: u16
libfranka-rs protocol version.
IncompatibleVersionException is thrown if the robot does not support this version of libfranka-rs.
NoMotionGeneratorRunningError
NoMotionGeneratorRunningError is thrown when trying to send a motion command without an motion generator running.
NoControllerRunningError
NoControllerRunningError is thrown when trying to send a control command without an controller running.
PartialCommandError
PartialCommandError when trying to send a partial command.
NetworkException
Fields
message: String
NetworkException is thrown if a connection to the robot cannot be established, or when a timeout occurs.
CommandException
Fields
message: String
CommandException is thrown if an error occurs during command execution.
ModelException
Fields
message: String
ModelException is thrown if an error occurs when loading the model library
RealTimeException
Fields
message: String
RealTimeException is thrown if the real-time priority cannot be set
Trait Implementations
sourceimpl Debug for FrankaException
impl Debug for FrankaException
sourceimpl Display for FrankaException
impl Display for FrankaException
sourceimpl Error for FrankaException
impl Error for FrankaException
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Auto Trait Implementations
impl RefUnwindSafe for FrankaException
impl Send for FrankaException
impl Sync for FrankaException
impl Unpin for FrankaException
impl UnwindSafe for FrankaException
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).
fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.