pub struct Rosbag2PointCloudSource { /* private fields */ }Expand description
Bounded, deterministic PointCloud2 XYZ/XYZI source backed by rosbag2 SQLite.
The SQLite connection is opened read-only. One selected topic is traversed
in (timestamp, id) order. A PointCloud2 message may be split into several
leased chunks when it exceeds StreamOptions::chunk_points().
Implementations§
Source§impl Rosbag2PointCloudSource
impl Rosbag2PointCloudSource
Sourcepub fn open(
path: impl AsRef<Path>,
topic_name: &str,
options: StreamOptions,
cancellation: CancellationToken,
) -> Rosbag2Result<Self>
pub fn open( path: impl AsRef<Path>, topic_name: &str, options: StreamOptions, cancellation: CancellationToken, ) -> Rosbag2Result<Self>
Opens one PointCloud2 topic from a rosbag2 SQLite file.
Sourcepub fn topic(&self) -> &Rosbag2Topic
pub fn topic(&self) -> &Rosbag2Topic
Returns the selected topic metadata.
Sourcepub const fn max_message_bytes(&self) -> u64
pub const fn max_message_bytes(&self) -> u64
Returns the largest raw CDR payload in the selected topic.
Trait Implementations§
Source§impl BoundedSpatialRecordSource for Rosbag2PointCloudSource
impl BoundedSpatialRecordSource for Rosbag2PointCloudSource
Source§fn schema(&self) -> &SchemaDescriptor
fn schema(&self) -> &SchemaDescriptor
Schema shared by every emitted record.
Source§fn options(&self) -> &StreamOptions
fn options(&self) -> &StreamOptions
Validated execution options.
Source§fn memory_tracker(&self) -> &MemoryTracker
fn memory_tracker(&self) -> &MemoryTracker
Exact tracker shared by emitted chunk leases.
Source§fn cancellation_token(&self) -> CancellationToken
fn cancellation_token(&self) -> CancellationToken
Cooperative cancellation state checked at chunk boundaries.
Source§fn max_chunk_bytes(&self) -> u64
fn max_chunk_bytes(&self) -> u64
Conservative maximum resident bytes for one emitted chunk.
Source§fn next_chunk(&mut self) -> Option<RecordsResult<SpatialRecordChunk>>
fn next_chunk(&mut self) -> Option<RecordsResult<SpatialRecordChunk>>
Returns the next leased chunk, or
None after an explicit end.Auto Trait Implementations§
impl !Freeze for Rosbag2PointCloudSource
impl !RefUnwindSafe for Rosbag2PointCloudSource
impl Send for Rosbag2PointCloudSource
impl !Sync for Rosbag2PointCloudSource
impl Unpin for Rosbag2PointCloudSource
impl UnsafeUnpin for Rosbag2PointCloudSource
impl !UnwindSafe for Rosbag2PointCloudSource
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