Enum franka::exception::FrankaException[][src]

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,
    },
}

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.

Show fields

Fields of ControlException

log: Option<Vec<Record>>

Vector of states and commands logged just before the exception occurred.

error: String

Explanatory string.

IncompatibleLibraryVersionError

IncompatibleVersionException is thrown if the robot does not support this version of libfranka-rs.

Show fields

Fields of IncompatibleLibraryVersionError

server_version: u16

Control’s protocol version.

library_version: u16

libfranka-rs protocol version.

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.

Show fields

Fields of NetworkException

message: String
CommandException

CommandException is thrown if an error occurs during command execution.

Show fields

Fields of CommandException

message: String
ModelException

ModelException is thrown if an error occurs when loading the model library

Show fields

Fields of ModelException

message: String
RealTimeException

RealTimeException is thrown if the real-time priority cannot be set

Show fields

Fields of RealTimeException

message: String

Trait Implementations

impl Debug for FrankaException[src]

impl Display for FrankaException[src]

impl Error for FrankaException[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,