pub struct EgmSensor {
pub header: Option<EgmHeader>,
pub planned: Option<EgmPlanned>,
pub speed_ref: Option<EgmSpeedRef>,
}Expand description
Robot controller inbound message, sent from sensor to the controller during position guidance
Fields§
§header: Option<EgmHeader>§planned: Option<EgmPlanned>§speed_ref: Option<EgmSpeedRef>Implementations§
Source§impl EgmSensor
impl EgmSensor
Sourcepub fn joint_target(
sequence_number: u32,
joints: impl Into<EgmJoints>,
time: impl Into<EgmClock>,
) -> Self
pub fn joint_target( sequence_number: u32, joints: impl Into<EgmJoints>, time: impl Into<EgmClock>, ) -> Self
Create a sensor message containing a joint space target.
The header timestamp is created from the time parameter.
Sourcepub fn joint_target_with_speed(
sequence_number: u32,
joints: impl Into<EgmJoints>,
speed: impl Into<EgmJoints>,
time: impl Into<EgmClock>,
) -> Self
pub fn joint_target_with_speed( sequence_number: u32, joints: impl Into<EgmJoints>, speed: impl Into<EgmJoints>, time: impl Into<EgmClock>, ) -> Self
Create a sensor message containing a joint space target and a joint space speed reference.
The header timestamp is created from the time parameter.
Sourcepub fn pose_target(
sequence_number: u32,
pose: impl Into<EgmPose>,
time: impl Into<EgmClock>,
) -> Self
pub fn pose_target( sequence_number: u32, pose: impl Into<EgmPose>, time: impl Into<EgmClock>, ) -> Self
Create a sensor message containing a 6-DOF pose target.
The header timestamp is created from the time parameter.
Sourcepub fn pose_target_with_speed(
sequence_number: u32,
pose: impl Into<EgmPose>,
speed: impl Into<EgmCartesianSpeed>,
time: impl Into<EgmClock>,
) -> Self
pub fn pose_target_with_speed( sequence_number: u32, pose: impl Into<EgmPose>, speed: impl Into<EgmCartesianSpeed>, time: impl Into<EgmClock>, ) -> Self
Create a sensor message containing a 6-DOF pose target with a cartesian speed reference.
The header timestamp is created from the time parameter.
Trait Implementations§
Source§impl Message for EgmSensor
impl Message for EgmSensor
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.impl StructuralPartialEq for EgmSensor
Auto Trait Implementations§
impl Freeze for EgmSensor
impl RefUnwindSafe for EgmSensor
impl Send for EgmSensor
impl Sync for EgmSensor
impl Unpin for EgmSensor
impl UnsafeUnpin for EgmSensor
impl UnwindSafe for EgmSensor
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