pub struct Robot {
pub name: String,
pub links: Vec<Link>,
pub joints: Vec<Joint>,
pub materials: Vec<Material>,
}
Expand description
Top level struct to access urdf.
§Compatibility Note
This type and its descendant types implement serde::Serialize
and
serde::Deserialize
. However, because XML serialization and deserialization
using serde
require embedding special markers to distinguish between
attributes and elements, there is no stability guarantee as to exactly which
serde
representation these types will be serialized with.
In other words, serialization and deserialization without going through
functions provided by this crate such as read_from_string
or write_to_string
may not work as expected at all
or in the future.
This is intentional to remove the need to create semver-incompatible release of this crate every time an XML-related crate, which frequently creates semver-incompatible releases is updated. And it also allows improving our situation of depending on multiple XML-related crates without a change considered breaking.
Fields§
§name: String
§links: Vec<Link>
§joints: Vec<Joint>
§materials: Vec<Material>
Trait Implementations§
source§impl<'de> Deserialize<'de> for Robot
impl<'de> Deserialize<'de> for Robot
source§fn 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>,
Auto Trait Implementations§
impl Freeze for Robot
impl RefUnwindSafe for Robot
impl Send for Robot
impl Sync for Robot
impl Unpin for Robot
impl UnwindSafe for Robot
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)