Robot

Trait Robot 

Source
pub trait Robot {
    type State;

Show 14 methods // Required methods fn version() -> String; fn init(&mut self) -> RobotResult<()>; fn shutdown(&mut self) -> RobotResult<()>; fn enable(&mut self) -> RobotResult<()>; fn disable(&mut self) -> RobotResult<()>; fn reset(&mut self) -> RobotResult<()>; fn is_moving(&mut self) -> RobotResult<bool>; fn waiting_for_finish(&mut self) -> RobotResult<()>; fn stop(&mut self) -> RobotResult<()>; fn pause(&mut self) -> RobotResult<()>; fn resume(&mut self) -> RobotResult<()>; fn emergency_stop(&mut self) -> RobotResult<()>; fn clear_emergency_stop(&mut self) -> RobotResult<()>; fn read_state(&mut self) -> RobotResult<Self::State>;
}
Expand description

§Robot

机器人行为特征

Required Associated Types§

Required Methods§

Source

fn version() -> String

Get the robot version 获取机器人版本和驱动版本

Source

fn init(&mut self) -> RobotResult<()>

Initialize the robot 初始化机器人

Source

fn shutdown(&mut self) -> RobotResult<()>

Shutdown the robot 关闭机器人

Source

fn enable(&mut self) -> RobotResult<()>

Enable the robot 使能机器人

Source

fn disable(&mut self) -> RobotResult<()>

Disable the robot 去使能机器人

Source

fn reset(&mut self) -> RobotResult<()>

reset the robot 复位机器人

Source

fn is_moving(&mut self) -> RobotResult<bool>

Check if the robot is moving 检查机器人是否在运动

Source

fn waiting_for_finish(&mut self) -> RobotResult<()>

Source

fn stop(&mut self) -> RobotResult<()>

stop the current action 停止当前动作,不可恢复

Source

fn pause(&mut self) -> RobotResult<()>

pause the current action 暂停当前动作

Source

fn resume(&mut self) -> RobotResult<()>

Resume the current action 恢复当前动作

Source

fn emergency_stop(&mut self) -> RobotResult<()>

Emergency stop 紧急停止

Source

fn clear_emergency_stop(&mut self) -> RobotResult<()>

Clear the emergency stop 清除紧急停止

Source

fn read_state(&mut self) -> RobotResult<Self::State>

Get the robot state 获取机器人状态

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§