|
|
Directory dependency graph for similarityFilter:Files | |
| SimilarityFilter.cpp | |
| SimilarityFilter.h | |
The similarity filter currently compares snapshots on aron::data::Variant level. Custom ARON objects are therefore seen as generic data structures: objects become Dict, lists stay List, and types such as Quaternion, Matrix, Image, or PointCloud become NDArray.
To support custom type-specific similarity, the filter should receive the matching aron::type::ObjectPtr together with each EntitySnapshot. This type is available from the memory segment metadata in storeSnapshotsAsync.
Suggested extension path:
SnapshotFilter::accept(snapshot, aronType, simulatedVersion) overload.PendingConversion::SegmentMetadata before filtering.SnapshotSimilarityFilter::calculateSnapshotSimilarity.Object/Dict fields, use Object::getMemberType(key) to pass the correct child type.QUATERNION.