Expand description
Core types for the Braid tracking system.
This crate provides the fundamental data structures and configuration types used throughout the Braid multi-camera tracking system, including tracking parameters, camera configurations, and data storage formats.
§Features
with-tokio-codec: Enables CBOR packet codec for tokio-based applicationsstart-listener: Enables TCP listener utilities for HTTP servers
Modules§
- braid_
http - HTTP API utilities for Braid server.
- timestamp_
f64 - Timestamp serialization for f64 format.
- timestamp_
opt_ f64 - Timestamp serialization for optional f64 format.
Structs§
- Braid
Camera Config - Configuration for a single camera in the Braid system.
- Braid
Http ApiShared State - Shared state for the Braid HTTP API.
- CamInfo
- Information about a connected camera.
- CamInfo
Row - Camera information record for CSV output.
- CamNum
- Camera number identifier.
- Data2d
Distorted Row - Feature detection data in raw camera coordinates.
- Data2d
Distorted RowF32 - Lower precision version of Data2dDistortedRow for saving to disk.
- Data
Assoc Row - Data association record linking 2D detections to 3D tracks.
- Fake
Sync Config - Configuration for fake synchronization (no real synchronization).
- Flydra
Float Timestamp Local - A type that represents a timestamp but is serialized to an f64.
- Flydra
RawUdp Packet - Raw UDP packet containing 2D feature detections.
- Flydra
RawUdp Point - A 2D feature detection result transmitted via UDP.
- Host
Clock - Host clock timestamp source.
- Hypothesis
Test Params - Parameters for hypothesis testing in track initialization.
- Kalman
Estimates Row - Kalman filter state estimate record for CSV output.
- Mini
Arena Locator - Locator for determining which mini arena contains a point.
- PerCam
- Wrapper for per-camera data.
- PerCam
Save Data - Per-camera data to be saved during recording.
- PngImage
Data - PNG image data container.
- PtpStamp
- Newtype storing time as number of nanoseconds since Jan 1, 1970 in UTC.
- PtpStamp
Duration - Newtype storing a duration between two PtpStamp values.
- PtpSync
Config - Configuration for PTP (Precision Time Protocol) synchronization.
- RawCam
Name - The original camera name from the driver.
- Recent
Stats - Statistics for recent camera activity.
- Register
NewCamera - Camera registration message sent to Braid.
- Remote
Camera Info Response - Camera startup information sent to strand cameras.
- SyncFno
- Synchronized frame number across all cameras.
- Textlog
Row - Text log message record for CSV output.
- Tracking
Params - Tracking parameters
- Trigger
Clock Info Row - Trigger clock information record for CSV output.
- Triggerbox
- Triggerbox timestamp source.
- Triggerbox
Config - Configuration for Triggerbox V1 hardware synchronization.
- Update
CamSettings - Camera settings update message.
- Update
Feature Detect Settings - Feature detection settings update message.
- Update
Image - Image update message.
- Version
Update - Information about a newer available release of Braid.
- XYGrid
Config - Parameters defining a 2D grid of mini arenas arranged along X and Y axes.
Enums§
- Braid
Http ApiCallback - API callback messages sent to Braid.
- BuiServer
Info - Generic HTTP API server information
- Connected
Camera Sync State - Camera synchronization state.
- Flydra
Types Error - Error types for Flydra operations.
- Mini
Arena Config - Configuration defining potential mini arenas.
- Start
Camera Backend - Camera backend selection for local camera startup.
- Start
Software Frame Rate Limit - Frame rate limiting configuration for camera startup.
- Trigger
Type - Camera synchronization method configuration.
Constants§
- ACCESS_
TOKEN_ TTL - Duration for which a freshly minted access token remains valid.
- BRAID_
EVENTS_ URL_ PATH - URL path for Braid events endpoint.
- BRAID_
EVENT_ NAME - Event name for Braid events.
- BRAID_
METADATA_ YML_ FNAME - YAML filename for Braid metadata.
- BRAID_
QUIT_ EVENT_ NAME - Event name for the server-is-quitting SSE message.
- BRAID_
SCHEMA - Version number for the Braid metadata schema.
- CALIBRATION_
XML_ FNAME - XML filename for camera calibration data.
- CAM_
INFO_ CSV_ FNAME - CSV filename for camera information.
- CAM_
SETTINGS_ DIRNAME - Directory name for camera settings.
- DATA2D_
DISTORTED_ CSV_ FNAME - CSV filename for 2D distorted coordinate data.
- DATA_
ASSOCIATE_ CSV_ FNAME - CSV filename for data association records.
- DEFAULT_
ACQUISITION_ DURATION_ ALLOWED_ IMPRECISION_ MSEC - Default allowed imprecision for frame acquisition duration in milliseconds.
- DEFAULT_
MODEL_ SERVER_ ADDR - Default address for the model server.
- EXPERIMENT_
INFO_ CSV_ FNAME - CSV filename for experiment information.
- FEATURE_
DETECT_ SETTINGS_ DIRNAME - Directory name for feature detection settings.
- IMAGES_
DIRNAME - Directory name for saved images.
- KALMAN_
ESTIMATES_ CSV_ FNAME - CSV filename for Kalman filter estimates.
- README_
MD_ FNAME - Markdown filename for README documentation.
- RECONSTRUCT_
LATENCY_ HLOG_ FNAME - HLog filename for reconstruction latency measurements.
- REPROJECTION_
DIST_ HLOG_ FNAME - HLog filename for reprojection distance measurements.
- TEXTLOG_
CSV_ FNAME - CSV filename for text log messages.
- TRIGGERBOX_
SYNC_ SECONDS - Duration in seconds for triggerbox synchronization.
- TRIGGER_
CLOCK_ INFO_ CSV_ FNAME - CSV filename for trigger clock information.
Traits§
- Source
- Trait for timestamp sources.
Functions§
- default_
tracking_ params_ flat_ 3d - Create default tracking parameters for flat 3D tracking.
- default_
tracking_ params_ full_ 3d - Create default tracking parameters for full 3D tracking.
- harden_
prefs_ file - Restrict the on-disk
preferences_serde1file backingkeyto owner-only access (Unix mode 0600), warning if it was previously reachable by other local users. - is_
loopback - Check if a URL refers to a loopback address.
- make_
hypothesis_ test_ full3d_ default - Create default hypothesis testing parameters for full 3D tracking.
- parse_
trusted_ networks - Parse a list of CIDR strings (e.g.
"100.64.0.0/10") into the network type expected byaxum_token_auth::AuthConfig::trusted_networks, returning a descriptive error for the first one that fails to parse. - start_
listener - Start a TCP listener for an HTTP server, minting an access token if the listen address is not loopback.
- triggerbox_
time - Compute the trigger time for a particular frame.
Type Aliases§
- MyFloat
- Floating point type used for coordinates.