Skip to main content

Crate cu29_export

Crate cu29_export 

Source
Expand description

Log export helpers for Copper applications.

This crate serves two related use cases:

  • Rust logreader binaries built with run_cli
  • optional Python-facing iterators for offline analysis of structured logs, runtime lifecycle records, and app-specific CopperLists

Python support here is intentionally offline. It reads data that Copper has already recorded. That is very different from putting Python on the runtime execution path, and it does not compromise realtime behavior during robot execution.

For runtime Python task prototyping, see cu-python-task instead.

Modules§

logstats

Structs§

LogReaderCli
This is a generator for a main function to build a log extractor.

Enums§

Command
ExportFormat

Functions§

assert_unified_log_mission
Ensures the unified log was recorded for the expected mission.
copperlists_reader
Extracts the copper lists from a binary representation. P is the Payload determined by the configuration of the application.
keyframes_reader
Extracts the keyframes from the log.
run_cli
This is a generator for a main function to build a log extractor. It depends on the specific type of the CopperList payload that is determined at compile time from the configuration.
runtime_lifecycle_reader
Extracts the runtime lifecycle records from the log.
structlog_reader
textlog_dump
Full dump of the copper structured log from its binary representation. This rebuilds a textual log. src: the source of the log data index: the path to the index file (containing the interned strings constructed at build time)
unified_log_mission
Returns the first mission announced by the runtime lifecycle section, if any.