isaac-sim-rerun 0.1.0

Rerun viewer adapter for Isaac Sim sensor pipelines.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// SPDX-License-Identifier: MPL-2.0
use isaac_sim_bridge::Sensor;
use rerun::RecordingStream;

/// Per-sensor trait that knows how to register a rerun publisher
/// for that sensor type.
///
/// Each sensor module provides one impl, so the `Viewer` builder can
/// stay generic over `S: RerunRender` instead of growing a per-sensor
/// `with_<sensor>` method on every new sensor.
pub trait RerunRender: Sensor {
    /// Register a bridge consumer that logs sensor frames as rerun primitives
    /// on `entity_path`, filtered to frames arriving from `source`.
    fn register(rec: RecordingStream, source: String, entity_path: String);
}