data
This package provides a base data class for all COMPAS data objects such as geometry objects, robots, and data structures, and the infrastructure for data validation, conversion, coercion, and JSON serialisation.
Classes
Abstract base class for all COMPAS data objects. |
|
Data encoder for custom JSON serialization with support for COMPAS data structures and geometric primitives. |
|
Data decoder for custom JSON serialization with support for COMPAS data structures and geometric primitives. |
Functions
Read COMPAS object data from a JSON file. |
|
Read COMPAS object data from a JSON string. |
|
Write a collection of COMPAS object data to a JSON file. |
|
Write a collection of COMPAS objects to a JSON string. |
Validators
Verify that the sequence contains only integers. |
|
Verify that the sequence contains only unsigned integers. |
|
Verify that the sequence contains only floats. |
|
Verify that the sequence contains 3 integers. |
|
Verify that the sequence contains 3 floats. |
|
Verify that the sequence contains 4 sequences of each 4 floats. |
|
Validate data against the data and json schemas of an object class. |
Exceptions
Exception that is raised when the decoder fails at reconstructing an object that has been identified as a COMPAS data object. |