pub struct RoadObject<'a> { /* private fields */ }Expand description
Models a physical road object in the road network.
A RoadObject has a type, position, orientation, bounding box, and optional
outlines and properties.
Implementations§
Source§impl<'a> RoadObject<'a>
impl<'a> RoadObject<'a>
Sourcepub fn name(&self) -> Option<String>
pub fn name(&self) -> Option<String>
Returns the optional human-readable name of this road object.
Sourcepub fn object_type(&self) -> RoadObjectType
pub fn object_type(&self) -> RoadObjectType
Returns the RoadObjectType of this road object.
Sourcepub fn subtype(&self) -> Option<String>
pub fn subtype(&self) -> Option<String>
Returns the optional subtype string of this road object.
Sourcepub fn position(&self) -> RoadObjectPosition
pub fn position(&self) -> RoadObjectPosition
Returns the RoadObjectPosition of this road object.
Sourcepub fn orientation(&self) -> Rotation
pub fn orientation(&self) -> Rotation
Returns the orientation of this road object in the inertial frame.
Sourcepub fn bounding_box(&self) -> BoundingBox
pub fn bounding_box(&self) -> BoundingBox
Returns the bounding box of this road object.
Sourcepub fn is_dynamic(&self) -> bool
pub fn is_dynamic(&self) -> bool
Returns whether this road object is dynamic (i.e., may change position or state).
Returns the IDs of lanes related to this road object.
Sourcepub fn num_outlines(&self) -> i32
pub fn num_outlines(&self) -> i32
Returns the number of outlines of this road object.
Sourcepub fn properties(&self) -> HashMap<String, String>
pub fn properties(&self) -> HashMap<String, String>
Returns the key-value properties of this road object.
Auto Trait Implementations§
impl<'a> Freeze for RoadObject<'a>
impl<'a> RefUnwindSafe for RoadObject<'a>
impl<'a> !Send for RoadObject<'a>
impl<'a> !Sync for RoadObject<'a>
impl<'a> Unpin for RoadObject<'a>
impl<'a> UnsafeUnpin for RoadObject<'a>
impl<'a> UnwindSafe for RoadObject<'a>
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