isaac-sim-dora 0.1.0

Dora-rs publisher and subscriber adapter for Isaac Sim sensor pipelines.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// SPDX-License-Identifier: MPL-2.0
use std::sync::Arc;

use dora_node_api::DoraNode;
use isaac_sim_bridge::Sensor;
use parking_lot::Mutex;

/// Per-sensor trait that knows how to register a dora publisher for
/// that sensor type. Each sensor module provides one impl, so generic
/// init code can iterate sensors uniformly without each new sensor
/// adding env-var consts and a register call.
pub trait DoraPublish: Sensor {
    /// Register a bridge consumer that converts sensor frames to Arrow batches
    /// and emits them on `output_id` of the given dora node. The source filter
    /// restricts dispatch to frames arriving from `source`.
    fn register(node: Arc<Mutex<DoraNode>>, source: String, output_id: String);
}