Skip to content

Commit b431251

Browse files
authored
Add bindings for metadata retrieval methods to VectorsCollectionServer and VectorsCollectionClient (#1017)
1 parent c43b917 commit b431251

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

bindings/python/YarpUtilities/src/VectorsCollection.cpp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,12 @@ void CreateVectorsCollectionServer(pybind11::module& module)
4545
Eigen::Ref<const Eigen::VectorXd> data) -> bool {
4646
return impl.populateData(key, data);
4747
})
48-
.def("prepare_data", &VectorsCollectionServer::prepareData);
48+
.def("prepare_data", &VectorsCollectionServer::prepareData)
49+
.def("get_metadata", &VectorsCollectionServer::getMetadata)
50+
.def("get_metadata_incremental",
51+
&VectorsCollectionServer::getMetadataIncremental,
52+
py::arg("from_version"))
53+
.def("are_metadata_ready", &VectorsCollectionServer::areMetadataReady);
4954
}
5055

5156
void CreateVectorsCollectionClient(pybind11::module& module)
@@ -86,7 +91,8 @@ void CreateVectorsCollectionClient(pybind11::module& module)
8691
}
8792
VectorsCollection collection = *collectionPtr;
8893
return collection;
89-
});
94+
})
95+
.def("is_new_metadata_available", &VectorsCollectionClient::isNewMetadataAvailable);
9096
}
9197

9298
void CreateVectorsCollectionMetadata(pybind11::module& module)

0 commit comments

Comments
 (0)