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
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.
Fields
IncompatibleLibraryVersionError
IncompatibleVersionException is thrown if the robot does not support this version of libfranka-rs.
Fields
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
NetworkException is thrown if a connection to the robot cannot be established, or when a timeout occurs.
CommandException
CommandException is thrown if an error occurs during command execution.
ModelException
ModelException is thrown if an error occurs when loading the model library
RealTimeException
RealTimeException is thrown if the real-time priority cannot be set
Trait Implementations§
Source§impl Debug for FrankaException
impl Debug for FrankaException
Source§impl Display for FrankaException
impl Display for FrankaException
Source§impl Error for FrankaException
impl Error for FrankaException
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Auto Trait Implementations§
impl Freeze for FrankaException
impl RefUnwindSafe for FrankaException
impl Send for FrankaException
impl Sync for FrankaException
impl Unpin for FrankaException
impl UnwindSafe for FrankaException
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self
from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self
is actually part of its subset T
(and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset
but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self
to the equivalent element of its superset.