Skip to content

Commit

Permalink
add serialization version to bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanhhughes committed Aug 14, 2024
1 parent 91bf2e2 commit 93de6c9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion python/bindings/src/spark_dsg_bindings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
* purposes notwithstanding any copyright notation herein.
* -------------------------------------------------------------------------- */
#include <pybind11/pybind11.h>
#include <spark_dsg/serialization/versioning.h>

#include "spark_dsg/python/bounding_box.h"
#include "spark_dsg/python/dynamic_scene_graph.h"
Expand All @@ -47,7 +48,6 @@
#include "spark_dsg/python/zmq_interface.h"

namespace py = pybind11;
using namespace py::literals;

PYBIND11_MODULE(_dsg_bindings, module) {
py::options options;
Expand All @@ -64,4 +64,7 @@ PYBIND11_MODULE(_dsg_bindings, module) {
spark_dsg::python::scene_graph_node::addBindings(module);
spark_dsg::python::scene_graph_utilities::addBindings(module);
spark_dsg::python::zmq_interface::addBindings(module);

module.def("version",
[]() { return spark_dsg::io::FileHeader::current().version.toString(); });
}

0 comments on commit 93de6c9

Please sign in to comment.