2 GTSAM Copyright 2010-2019, Georgia Tech Research Corporation, 3 Atlanta, Georgia 30332-0415 6 See LICENSE for the license information 8 Unit tests for testing dataset access. 9 Author: Frank Dellaert & Duy Nguyen Ta (Python) 13 from __future__
import print_function
18 from gtsam
import BetweenFactorPose3
23 """Tests for datasets.h wrapper.""" 26 """Get some common paths.""" 31 """Test reading directly into factor graph.""" 34 self.assertEqual(graph.size(), 6)
35 self.assertEqual(initial.size(), 5)
38 """Test parsing into data structure.""" 40 self.assertEqual(
len(factors), 6)
41 self.assertIsInstance(factors[0], BetweenFactorPose3)
44 if __name__ ==
'__main__':
BetweenFactorPose3s parse3DFactors(const std::string &filename, const noiseModel::Diagonal::shared_ptr &model, size_t maxIndex)
GraphAndValues readG2o(const std::string &g2oFile, const bool is3D, KernelFunctionType kernelFunctionType)
This function parses a g2o file and stores the measurements into a NonlinearFactorGraph and the initi...
GTSAM_EXPORT std::string findExampleDataFile(const std::string &name)
def test_parse3Dfactors(self)
size_t len(handle h)
Get the length of a Python object.