Enum openrr_command::RobotCommand[][src]

pub enum RobotCommand {
    SendJoints {
        name: String,
        duration: f64,
        use_interpolation: bool,
        joint: Vec<(usize, f64)>,
    },
    SendJointsPose {
        name: String,
        pose_name: String,
        duration: f64,
    },
    MoveIk {
        name: String,
        x: Option<f64>,
        y: Option<f64>,
        z: Option<f64>,
        yaw: Option<f64>,
        pitch: Option<f64>,
        roll: Option<f64>,
        duration: f64,
        use_interpolation: bool,
        is_local: bool,
    },
    GetState {
        name: String,
    },
    LoadCommands {
        command_file_path: PathBuf,
    },
    List,
    Speak {
        message: Vec<String>,
    },
    ExecuteCommand {
        command: Vec<String>,
    },
    GetNavigationCurrentPose,
    SendNavigationGoal {
        x: f64,
        y: f64,
        yaw: f64,
        frame_id: String,
        timeout_secs: f64,
    },
    CancelNavigationGoal,
    SendBaseVelocity {
        x: f64,
        y: f64,
        theta: f64,
        duration_secs: f64,
    },
}

Variants

SendJoints

Send joint positions.

Fields of SendJoints

name: Stringduration: f64use_interpolation: bool

Interpolate target in cartesian space. If you use this flag, joint values are not used as references but used in forward kinematics.

joint: Vec<(usize, f64)>
SendJointsPose

Send predefined joint positions.

Fields of SendJointsPose

name: Stringpose_name: Stringduration: f64
MoveIk

Move with ik

Fields of MoveIk

name: Stringx: Option<f64>y: Option<f64>z: Option<f64>yaw: Option<f64>pitch: Option<f64>roll: Option<f64>duration: f64use_interpolation: bool

Interpolate target in cartesian space.

is_local: bool
GetState

Get joint positions and end pose if applicable.

Fields of GetState

name: String
LoadCommands

Load commands from file and execute them.

Fields of LoadCommands

command_file_path: PathBuf
List

List available clients.

Speak

Speak text message.

Fields of Speak

message: Vec<String>
ExecuteCommand

Execute an external command.

Fields of ExecuteCommand

command: Vec<String>
GetNavigationCurrentPose

Get navigation current pose.

SendNavigationGoal

Send navigation goal pose.

Fields of SendNavigationGoal

x: f64y: f64yaw: f64frame_id: Stringtimeout_secs: f64
CancelNavigationGoal

Cancel navigation gaol.

SendBaseVelocity

Send base velocity.

Fields of SendBaseVelocity

x: f64y: f64theta: f64duration_secs: f64

Trait Implementations

impl Debug for RobotCommand[src]

impl StructOpt for RobotCommand[src]

impl StructOptInternal for RobotCommand[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> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Send + Sync + Any

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