Struct carla_sys::carla::sensor::SensorData
source · #[repr(C, align(8))]pub struct SensorData { /* private fields */ }Expand description
Base class for all the objects containing data generated by a sensor.
Implementations§
source§impl SensorData
impl SensorData
sourcepub fn GetFrame(self: &SensorData) -> usize
pub fn GetFrame(self: &SensorData) -> usize
Frame count when the data was generated.
sourcepub fn GetTimestamp(self: &SensorData) -> f64
pub fn GetTimestamp(self: &SensorData) -> f64
Simulation-time when the data was generated.
Trait Implementations§
source§impl AsRef<SensorData> for GnssMeasurement
impl AsRef<SensorData> for GnssMeasurement
source§fn as_ref(self: &GnssMeasurement) -> &SensorData
fn as_ref(self: &GnssMeasurement) -> &SensorData
Converts this type into a shared reference of the (usually inferred) input type.
source§impl AsRef<SensorData> for IMUMeasurement
impl AsRef<SensorData> for IMUMeasurement
source§fn as_ref(self: &IMUMeasurement) -> &SensorData
fn as_ref(self: &IMUMeasurement) -> &SensorData
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Drop for SensorData
impl Drop for SensorData
source§fn drop(self: &mut SensorData)
fn drop(self: &mut SensorData)
Executes the destructor for this type. Read more
source§impl ExternType for SensorData
impl ExternType for SensorData
source§impl MakeCppStorage for SensorData
impl MakeCppStorage for SensorData
source§unsafe fn allocate_uninitialized_cpp_storage() -> *mut SensorData
unsafe fn allocate_uninitialized_cpp_storage() -> *mut SensorData
Allocates heap space for this type in C++ and return a pointer
to that space, but do not initialize that space (i.e. do not
yet call a constructor). Read more
source§unsafe fn free_uninitialized_cpp_storage(arg0: *mut SensorData)
unsafe fn free_uninitialized_cpp_storage(arg0: *mut SensorData)
Frees a C++ allocation which has not yet
had a constructor called. Read more