pub struct TrafficSign<'a> {
pub traffic_sign: &'a TrafficSign,
}Expand description
Models a physical traffic sign — a static, passive signaling device placed along or above the road to convey regulatory, warning, or informational messages to road users.
Unlike TrafficLight, a traffic sign has no dynamic state. It simply exists at a position with an orientation and a type.
Fields§
§traffic_sign: &'a TrafficSignImplementations§
Source§impl<'a> TrafficSign<'a>
impl<'a> TrafficSign<'a>
Sourcepub fn sign_type(&self) -> TrafficSignType
pub fn sign_type(&self) -> TrafficSignType
Sourcepub fn position_road_network(&self) -> InertialPosition
pub fn position_road_network(&self) -> InertialPosition
Gets the position of the TrafficSign in the road network’s Inertial frame.
§Returns
An super::InertialPosition representing the position of the TrafficSign.
Sourcepub fn orientation_road_network(&self) -> Rotation
pub fn orientation_road_network(&self) -> Rotation
Gets the orientation of the TrafficSign in the road network’s Inertial frame.
§Returns
An super::Rotation representing the orientation of the TrafficSign.
Sourcepub fn message(&self) -> Option<String>
pub fn message(&self) -> Option<String>
Gets the optional text message displayed on the TrafficSign.
§Returns
Some(String) if a message is set, None otherwise.
Sourcepub fn bounding_box(&self) -> BoundingBox
pub fn bounding_box(&self) -> BoundingBox
Gets the bounding box of the TrafficSign.
§Returns
A crate::math::BoundingBox describing the sign’s oriented bounding volume.
The box position is the centroid, box_size gives full extents, and orientation
is expressed as roll-pitch-yaw angles.