pub struct PerceptionDomain {
pub lidar: Option<Vec<LidarSensor>>,
pub cameras: Option<Vec<CameraSensor>>,
pub imu: Option<ImuSensor>,
pub gps: Option<GpsSensor>,
pub uwb: Option<UwbSensor>,
pub detections: Option<Vec<Detection>>,
pub detection_count: Option<u32>,
pub environment: Option<EnvironmentPerception>,
pub ultrasonics: Option<Vec<UltrasonicSensor>>,
pub bumpers: Option<Vec<BumperSensor>>,
pub cliff_sensors: Option<Vec<CliffSensor>>,
}Expand description
Perception domain containing sensor and detection data.
Fields§
§lidar: Option<Vec<LidarSensor>>LiDAR sensor data
cameras: Option<Vec<CameraSensor>>Camera sensor data
imu: Option<ImuSensor>IMU sensor data
gps: Option<GpsSensor>GPS sensor data
uwb: Option<UwbSensor>Ultra-wideband sensor data
detections: Option<Vec<Detection>>Object detections
detection_count: Option<u32>Detection count
environment: Option<EnvironmentPerception>Environment perception data
ultrasonics: Option<Vec<UltrasonicSensor>>Ultrasonic sensors
bumpers: Option<Vec<BumperSensor>>Bumper/contact sensors
cliff_sensors: Option<Vec<CliffSensor>>Cliff sensors
Implementations§
Source§impl PerceptionDomain
impl PerceptionDomain
Sourcepub fn with_lidar(sensor: LidarSensor) -> Self
pub fn with_lidar(sensor: LidarSensor) -> Self
Create with a LiDAR sensor.
Sourcepub fn with_detection(self, detection: Detection) -> Self
pub fn with_detection(self, detection: Detection) -> Self
Add a detection.
Trait Implementations§
Source§impl Clone for PerceptionDomain
impl Clone for PerceptionDomain
Source§fn clone(&self) -> PerceptionDomain
fn clone(&self) -> PerceptionDomain
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PerceptionDomain
impl Debug for PerceptionDomain
Source§impl Default for PerceptionDomain
impl Default for PerceptionDomain
Source§fn default() -> PerceptionDomain
fn default() -> PerceptionDomain
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PerceptionDomain
impl<'de> Deserialize<'de> for PerceptionDomain
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for PerceptionDomain
impl Serialize for PerceptionDomain
Auto Trait Implementations§
impl Freeze for PerceptionDomain
impl RefUnwindSafe for PerceptionDomain
impl Send for PerceptionDomain
impl Sync for PerceptionDomain
impl Unpin for PerceptionDomain
impl UnwindSafe for PerceptionDomain
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