pub struct TrajectoryStatus {Show 31 fields
pub linear_units: f64,
pub angular_units: f64,
pub cycle_time: f64,
pub joints: i32,
pub spindles: i32,
pub axis_mask: i32,
pub motion_mode: i32,
pub enabled: bool,
pub inpos: bool,
pub queue: i32,
pub active_queue: i32,
pub queue_full: bool,
pub motion_id: i32,
pub paused: bool,
pub feedrate: f64,
pub rapidrate: f64,
pub velocity: f64,
pub acceleration: f64,
pub max_velocity: f64,
pub max_acceleration: f64,
pub probe_tripped: bool,
pub probing: bool,
pub probe_val: i32,
pub kinematics_type: i32,
pub motion_type: i32,
pub distance_to_go: f64,
pub current_vel: f64,
pub feed_override_enabled: bool,
pub adaptive_feed_enabled: bool,
pub feed_hold_enabled: bool,
pub num_extrajoints: i32,
}Expand description
Trajectory status information
Fields§
§linear_units: f64§angular_units: f64§cycle_time: f64§joints: i32§spindles: i32§axis_mask: i32§motion_mode: i32§enabled: bool§inpos: bool§queue: i32§active_queue: i32§queue_full: bool§motion_id: i32§paused: bool§feedrate: f64Feed override scale (0.0-1.0+)
rapidrate: f64Rapid override scale (0.0-1.0)
velocity: f64§acceleration: f64§max_velocity: f64§max_acceleration: f64§probe_tripped: bool§probing: bool§probe_val: i32§kinematics_type: i32§motion_type: i32§distance_to_go: f64§current_vel: f64§feed_override_enabled: bool§adaptive_feed_enabled: bool§feed_hold_enabled: bool§num_extrajoints: i32Implementations§
Source§impl TrajectoryStatus
impl TrajectoryStatus
Sourcepub fn motion_mode(&self) -> TrajMode
pub fn motion_mode(&self) -> TrajMode
Returns the enum value of motion_mode, or the default if the field is set to an invalid enum value.
Sourcepub fn set_motion_mode(&mut self, value: TrajMode)
pub fn set_motion_mode(&mut self, value: TrajMode)
Sets motion_mode to the provided enum value.
Sourcepub fn kinematics_type(&self) -> KinematicsType
pub fn kinematics_type(&self) -> KinematicsType
Returns the enum value of kinematics_type, or the default if the field is set to an invalid enum value.
Sourcepub fn set_kinematics_type(&mut self, value: KinematicsType)
pub fn set_kinematics_type(&mut self, value: KinematicsType)
Sets kinematics_type to the provided enum value.
Sourcepub fn motion_type(&self) -> MotionType
pub fn motion_type(&self) -> MotionType
Returns the enum value of motion_type, or the default if the field is set to an invalid enum value.
Sourcepub fn set_motion_type(&mut self, value: MotionType)
pub fn set_motion_type(&mut self, value: MotionType)
Sets motion_type to the provided enum value.
Trait Implementations§
Source§impl Clone for TrajectoryStatus
impl Clone for TrajectoryStatus
Source§fn clone(&self) -> TrajectoryStatus
fn clone(&self) -> TrajectoryStatus
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TrajectoryStatus
impl Debug for TrajectoryStatus
Source§impl Default for TrajectoryStatus
impl Default for TrajectoryStatus
Source§impl Message for TrajectoryStatus
impl Message for TrajectoryStatus
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for TrajectoryStatus
impl PartialEq for TrajectoryStatus
impl Copy for TrajectoryStatus
impl StructuralPartialEq for TrajectoryStatus
Auto Trait Implementations§
impl Freeze for TrajectoryStatus
impl RefUnwindSafe for TrajectoryStatus
impl Send for TrajectoryStatus
impl Sync for TrajectoryStatus
impl Unpin for TrajectoryStatus
impl UnsafeUnpin for TrajectoryStatus
impl UnwindSafe for TrajectoryStatus
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request