pub struct LoadOptions {
pub sensor_size: Option<(usize, usize)>,
pub time_unit: Option<TimeUnit>,
pub order: ColumnOrder,
pub topic: Option<String>,
pub max_events: Option<usize>,
pub offset: Option<i64>,
}Expand description
Options for the unified load entry point. Most fields apply to a single
format; readers ignore the ones they do not need.
Fields§
§sensor_size: Option<(usize, usize)>(width, height). None infers it from the data (coordinate range), or from the
message for rosbag. An explicit value overrides and, for HDF5, skips the scan.
time_unit: Option<TimeUnit>Timestamp unit. None infers it (HDF5/text): a fractional text value means
seconds, otherwise the unit is chosen from the recording span (see
TimeUnit::infer_from_span). Ignored for rosbag (always ROS sec+nsec).
order: ColumnOrderText column order.
topic: Option<String>Rosbag topic to read (defaults to /davis/left/events).
max_events: Option<usize>Cap on the number of events to read.
offset: Option<i64>Absolute timestamp (µs, the file’s own time base): events before it are skipped.
max_events then caps the events after the offset. None/<= 0 reads from the start.
Trait Implementations§
Source§impl Clone for LoadOptions
impl Clone for LoadOptions
Source§fn clone(&self) -> LoadOptions
fn clone(&self) -> LoadOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more