Loader that reads planar target detections from JSON files.
More...
#include <loaders.h>
|
| struct | Entry |
| | Description of a JSON dataset entry on disk. More...
|
| |
Loader that reads planar target detections from JSON files.
The loader accepts one or more dataset descriptions on disk. Each entry is validated when load() is invoked and the resulting detections are grouped into a single CalibrationDataset.
Definition at line 19 of file loaders.h.
◆ JsonPlanarDatasetLoader() [1/2]
| calib::pipeline::JsonPlanarDatasetLoader::JsonPlanarDatasetLoader |
( |
| ) |
|
|
default |
◆ JsonPlanarDatasetLoader() [2/2]
| calib::pipeline::JsonPlanarDatasetLoader::JsonPlanarDatasetLoader |
( |
std::vector< Entry > |
entries | ) |
|
|
inlineexplicit |
◆ add_entry()
| void calib::pipeline::JsonPlanarDatasetLoader::add_entry |
( |
const std::filesystem::path & |
path, |
|
|
std::optional< std::string > |
sensor_id = std::nullopt |
|
) |
| |
Append a dataset file to the loader queue.
- Parameters
-
| path | Filesystem location of the JSON payload to consume. |
| sensor_id | Optional identifier to match against the dataset's sensor_id. When specified the loader throws if the file contains detections from a different sensor. |
Definition at line 51 of file loaders.cpp.
◆ load()
Load and validate all configured dataset entries.
- Exceptions
-
| std::runtime_error | if no entries were configured or if any entry cannot be opened / validated. |
Implements calib::pipeline::DatasetLoader.
Definition at line 56 of file loaders.cpp.
The documentation for this class was generated from the following files:
- /home/runner/work/calibration/calibration/include/calib/pipeline/loaders.h
- /home/runner/work/calibration/calibration/src/pipeline/loaders.cpp