#[repr(C)]pub struct PoseWithCovarianceStamped {
pub header: Header,
pub pose: Pose,
pub covariance: [[f64; 6]; 6],
}
Fields
header: Header
pose: Pose
covariance: [[f64; 6]; 6]
Row-major representation of the 6x6 covariance matrix The orientation parameters use a fixed-axis representation. In order, the parameters are: (x, y, z, rotation about X axis, rotation about Y axis, rotation about Z axis)
Implementations
sourceimpl PoseWithCovarianceStamped
impl PoseWithCovarianceStamped
sourcepub fn create_topic_with_name(
participant: &DdsParticipant,
name: &str,
maybe_qos: Option<DdsQos>,
maybe_listener: Option<DdsListener>
) -> Result<DdsTopic<Self>, DDSError>
pub fn create_topic_with_name(
participant: &DdsParticipant,
name: &str,
maybe_qos: Option<DdsQos>,
maybe_listener: Option<DdsListener>
) -> Result<DdsTopic<Self>, DDSError>
Create a topic using of this Type specifying the topic name
Arguments
participant
- The participant handle onto which this topic should be createdname
- The name of the topicmaybe_qos
- A QoS structure for this topic. The Qos is optionalmaybe_listener
- A listener to use on this topic. The listener is optional
sourcepub fn create_topic(
participant: &DdsParticipant,
maybe_topic_prefix: Option<&str>,
maybe_qos: Option<DdsQos>,
maybe_listener: Option<DdsListener>
) -> Result<DdsTopic<Self>, DDSError>
pub fn create_topic(
participant: &DdsParticipant,
maybe_topic_prefix: Option<&str>,
maybe_qos: Option<DdsQos>,
maybe_listener: Option<DdsListener>
) -> Result<DdsTopic<Self>, DDSError>
Create a topic of this Type using the default topic name. The default topic name is provided by the Self::topic_name function.
Arguments
participant
- The participant handle onto which this topic should be createdmaybe_topic_prefix
- An additional prefix to be added to the topic name. This can be Nonemaybe_qos
- A QoS structure for this topic. The Qos is optionalmaybe_listener
- A listener to use on this topic. The listener is optional
sourcepub fn create_sample_buffer(
len: usize
) -> SampleBuffer<PoseWithCovarianceStamped>
pub fn create_sample_buffer(
len: usize
) -> SampleBuffer<PoseWithCovarianceStamped>
Create a sample buffer for storing an array of samples You can pass the sample buffer into a read to read multiple samples. Multiple samples are useful when you have one or more keys in your topic structure. Each value of the key will result in the storage of another sample.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for PoseWithCovarianceStamped
impl<'de> Deserialize<'de> for PoseWithCovarianceStamped
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Serialize for PoseWithCovarianceStamped
impl Serialize for PoseWithCovarianceStamped
sourceimpl TopicType for PoseWithCovarianceStamped
impl TopicType for PoseWithCovarianceStamped
Auto Trait Implementations
impl RefUnwindSafe for PoseWithCovarianceStamped
impl Send for PoseWithCovarianceStamped
impl Sync for PoseWithCovarianceStamped
impl Unpin for PoseWithCovarianceStamped
impl UnwindSafe for PoseWithCovarianceStamped
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more