Skip to main content

Crate ci2_sim

Crate ci2_sim 

Source
Expand description

A ci2 camera backend that renders synthetic images of simulated insects.

This backend lets the entire live Braid pipeline (acquisition, background subtraction, feature detection, UDP transport, the mainbrain, the Kalman filter, data association, .braidz saving) run against a known ground truth with no camera hardware. It is the image-level injection path of the simulation test harness; see the braid-sim crate for the shared core.

The scenario (a sim.toml parsed by braid_sim::Scenario) is provided via the STRAND_CAM_SIM_SPEC environment variable; the camera to render is selected by the --camera-name Strand Camera already receives (one of the braid_sim::Scenario::camera_name values). Each camera independently evaluates the deterministic world for its current frame and projects it with its own calibration, so multiple sim cameras need no coordination.

Structs§

SimTerminateGuard
The sim backend keeps no global state that needs tearing down; the guard is a no-op that exists to match the shape of the other ci2 backends.
WrappedCamera
WrappedModule

Constants§

SIM_SPEC_ENV
The environment variable naming the sim.toml scenario file.

Functions§

make_singleton_guard
new_module