MCPcopy Create free account
hub / github.com/PRBonn/MapClosures / GetConfigFromYAML

Function GetConfigFromYAML

python/map_closures/pybind/map_closures_pybind.cpp:45–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43
44namespace map_closures {
45Config GetConfigFromYAML(const py::dict &yaml_cfg) {
46 Config cpp_config;
47 cpp_config.density_threshold = yaml_cfg["density_threshold"].cast<float>();
48 cpp_config.density_map_resolution = yaml_cfg["density_map_resolution"].cast<float>();
49 cpp_config.hamming_distance_threshold = yaml_cfg["hamming_distance_threshold"].cast<int>();
50 return cpp_config;
51}
52
53PYBIND11_MODULE(map_closures_pybind, m) {
54 auto vector3dvector = pybind_eigen_vector_of_vector<Eigen::Vector3d>(

Callers 1

PYBIND11_MODULEFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected