Closed ProfFan closed 4 years ago
I think we should axe the examples and tests and make this a MVE (minimal viable example).
@ProfFan I agree. Why do we have all those examples and tests here? I vote for one class in c++, one c++ test, it being wrapped, one test in python, and one main python file with argparse.
@ProfFan so I will let you merge this in, then I can get to work rebasing and adding my changes to this repo. I have some neat tricks to make this more tutorial-esque. :slightly_smiling_face:
This is a working version of the demo project for Pybind11 based wrapping.
Compiling
feature/new_wrapper
branch of GTSAM, and compile the branch with-DGTSAM_BUILD_PYTHON=ON -DGTSAM_TYPEDEF_POINTS_TO_VECTORS=ON
.gtsam_example
does not accept GTSAM objectspip3 uninstall gtsam
, so what is the problem?pip
will only uninstall the first copy, so if you somehow have two gtsams installed...pip3 uninstall gtsam
again to make absolutely sure.feature/pybind
branch.mkdir build
,cd build
cmake .. -DCMAKE_PREFIX_PATH="/home/fan/Projects/CV/SLAM/gtsam_install/lib/cmake" -DGTSAM_EXAMPLE_BUILD_PYTHON=ON -DCMAKE_INSTALL_PREFIX=../example_install
(change as needed)make install
cd ../example_install/python
python3 setup.py install --user
Now you should be able to run the tests.