Commit Graph

889 Commits (c60d257e801dfa8437938fb18421df679599dc49)

Author SHA1 Message Date
Jose Luis Blanco Claraco ffc09cb56b
Allow using system pybind11 if it exists.
Integrated upstream from https://salsa.debian.org/science-team/gtsam/-/blob/master/debian/patches/0003-Using-the-system-pybind11.patch
with the additional fix for the cmake policy.

cc: @dkogan
2023-03-06 01:15:00 +01:00
Varun Agrawal 814c4a6e6f Merge branch 'develop' into combined-imu-factor 2023-03-01 15:50:54 -05:00
Varun Agrawal e4b1505e38 fix ImuFactor examples to show correct prediction values 2023-03-01 15:40:55 -05:00
Frank Dellaert 1bf6954372 Merge branch 'develop' into wrapper/update 2023-02-23 08:07:33 -08:00
Frank Dellaert 2ce0b57f05 Fixed python wrapper 2023-02-20 08:20:16 -08:00
Varun Agrawal 9a38b57144 update wrapper files to new version 2023-02-18 19:34:23 -05:00
Kevin 92443f5378 Simply sum-product test in Python. 2023-02-11 20:04:43 -05:00
Kevin 548509f28b First pass at underflow test for sum-product. 2023-02-10 17:02:27 -05:00
Kevin 0710a8a893 Add normalization trick to sum-product. 2023-02-08 14:15:32 -05:00
Kevin 571b0f5e90 Add toy problem testing max-product underflow. 2023-02-07 10:43:16 -05:00
Varun Agrawal 3b21f4779d separate .i file for Values 2023-02-05 18:08:58 -05:00
kartik arcot ce847d4ff9 python bindings don't use boost 2023-01-22 08:40:02 -08:00
kartik arcot 852e8768c0 shared_ptr, make_shared, allocate_shared 2023-01-22 08:40:02 -08:00
kartik arcot d886e78afa disabled two python tests 2023-01-21 09:27:20 -08:00
kartik arcot cccad07849 diabled two python tests 2023-01-20 18:06:55 -08:00
Frank Dellaert 469e57122f commented out problematic python tests 2023-01-19 22:34:12 -08:00
Frank Dellaert 9af7236980 Added DEBUG_MARGINALS flag 2023-01-16 18:36:28 -08:00
Frank Dellaert 8357fc7e02 Fix python tests (and expose HybridBayesNet.error) 2023-01-16 18:04:22 -08:00
Frank Dellaert 96e3eb7d8b Some test refactoring 2023-01-16 10:30:47 -08:00
Frank Dellaert 681c75cea4 Expose toFactorGraph to wrapper 2023-01-16 10:30:47 -08:00
Frank Dellaert 51c46410dc Make sure all conditional methods can be called in wrappers and satisfy invariants there, as well. 2023-01-14 13:24:54 -08:00
Frank Dellaert 28f440a623 Resolved review comments. 2023-01-11 18:11:28 -08:00
Frank Dellaert 87ff4af32d Wrapper and tests for logProbability 2023-01-10 23:13:40 -08:00
Frank Dellaert 2e233364b6 Merge branch 'develop' into hybrid/refactor
# Conflicts:
#	gtsam/hybrid/HybridGaussianFactorGraph.cpp
#	gtsam/hybrid/tests/testHybridGaussianFactorGraph.cpp
#	python/gtsam/tests/test_HybridNonlinearFactorGraph.py
2023-01-08 00:16:23 -08:00
Frank Dellaert 8d96b3efb9 Fix python test to not use add 2023-01-06 23:23:12 -08:00
Varun Agrawal 74998336d9 update tests 2023-01-06 10:14:24 -05:00
Frank Dellaert d49bcce780 Fix python wrapper 2023-01-05 12:58:29 -08:00
Frank Dellaert 625977ee06 Example with 2 measurements agrees with importance sampling 2023-01-02 16:07:25 -05:00
Frank Dellaert 021ee1a5d9 Deterministic example, much more generic importance sampler 2023-01-02 12:34:55 -05:00
Frank Dellaert 312ba5fd52 Synced two examples 2023-01-02 09:45:04 -05:00
Frank Dellaert 64831300a5 Print estimated marginals and ratios! 2023-01-01 11:48:08 -05:00
Frank Dellaert dcb07fea8c Test eliminate 2023-01-01 11:25:33 -05:00
Frank Dellaert cec26d16ea Check marginals in addition to ratios for non-uniform mode prior 2022-12-30 15:20:10 -05:00
Frank Dellaert 96b6895a60 Ratios now work out! 2022-12-30 13:59:59 -05:00
Frank Dellaert f22ada6c0a Added importance sampling 2022-12-30 13:16:12 -05:00
Frank Dellaert 23eec0bc6a factor_graph_from_bayes_net 2022-12-30 13:16:01 -05:00
Varun Agrawal 1beeef840b Merge branch 'develop' into hybrid/model-selection 2022-12-30 17:09:26 +05:30
Varun Agrawal 10079f6341 comment out problematic code until we figure it out 2022-12-30 14:51:04 +05:30
Varun Agrawal 5ea63be8c5 fixes based on previous PR 2022-12-30 14:23:40 +05:30
Frank Dellaert 33b073c795 Comment out printing and asserts 2022-12-29 22:39:08 -05:00
Frank Dellaert 6b2a8a9323 Show that ratio is different for different modes. 2022-12-29 16:41:31 -05:00
Frank Dellaert a4659f01c7 Add error and probPrime variants 2022-12-29 14:13:35 -05:00
Frank Dellaert 2d688a1986 Added tests to convert Hybrid BN to corresponding "likelihood" FG 2022-12-29 13:55:06 -05:00
Frank Dellaert d4ee6997f7 Remove FromConditionals 2022-12-29 13:54:44 -05:00
Varun Agrawal 1eb6fc77a0 fix formatting and other issues 2022-12-29 10:33:33 +05:30
Varun Agrawal cc2183adb3 fix wrap preamble 2022-12-29 10:32:46 +05:30
Varun Agrawal f4420f2c8d add mixture to bayesnet and fix double assert bug 2022-12-29 08:40:46 +05:30
Varun Agrawal 03baf8f75e formatting and fixes to test 2022-12-29 08:33:14 +05:30
Varun Agrawal 873f5baf56 remove unnecessary preamble and specializations for hybrid wrapping 2022-12-29 08:32:43 +05:30
Frank Dellaert 7c91fe82b4 Add evaluate test 2022-12-28 18:10:07 -05:00
Frank Dellaert fd12181ebe Cleanup 2022-12-28 18:10:00 -05:00
Frank Dellaert 1de49598af Add methods in HybridBayesNet 2022-12-28 18:09:53 -05:00
Frank Dellaert 0495f81104 Test for GBN::sample 2022-12-28 16:51:40 -05:00
Varun Agrawal af6a4f2417
Merge pull request #1302 from borglab/wrap-unit3-rot 2022-12-24 23:43:39 -05:00
Akshay Krishnan 3a2816e4fc add unrotate() test 2022-12-24 10:15:08 -05:00
Akshay Krishnan fd55e09bcc add rotate() test 2022-12-24 10:06:28 -05:00
ulterzlw 1ea6553550
Fixed Jacobian in python CustomFactorExample 2022-12-07 14:53:32 +08:00
Varun Agrawal 4c7dcb3efd better error messages from Pybind 2022-11-07 18:31:29 -05:00
Varun Agrawal 3da27a5df7 add docstring to test and fix assert 2022-10-26 12:42:45 -04:00
Frank Dellaert 32df824920 Vectorized interface 2022-10-23 16:27:01 -07:00
Frank Dellaert 90c990dc33 Rename of test 2022-10-23 16:26:41 -07:00
Frank Dellaert f68f0dbe41 Addressed review comments - removed class in favor of free function 2022-10-23 11:37:37 -07:00
Frank Dellaert ca451141c0 removed NamedSfmMeasurementVector 2022-10-22 19:48:48 -07:00
Frank Dellaert 7e411fee51 Refactor into smaller functions 2022-10-22 19:18:45 -07:00
Frank Dellaert 38be12eaf4 Use SfmMeasurement and SfmTrack 2022-10-22 19:18:06 -07:00
Varun Agrawal 090fb4e275 Add python example for CombinedImuFactor 2022-10-14 17:11:24 -04:00
senselessdev1 73fd3f9dc2 add namespace hack to prevent gtsam.gtsam.gtsfm 2022-10-13 09:12:55 -04:00
senselessdev1 f9971f5049 use gtsam.gtsfm namespace for new API 2022-10-13 01:07:41 -04:00
senselessdev1 7dee1af5b4 add verbose flag for logging messages during DSF track generation 2022-10-12 23:31:45 -04:00
senselessdev1 4f406650f7 rename KeypointsList -> KeypointsVector 2022-10-12 21:29:18 -04:00
senselessdev1 cafab61fec expand tests 2022-09-27 10:29:36 -04:00
senselessdev1 96aaff4bc6 wrap vector of NamedSfmMeasurement 2022-09-26 20:42:03 -04:00
John Lambert fa17c50910
Add SfmTrack2dVector to ignore list 2022-09-26 18:41:59 -04:00
senselessdev1 a3069a3fbc remove opaque on sfmtrack2d 2022-09-26 11:58:07 -04:00
senselessdev1 2434dc8ab7 add to preamble/specialization 2022-09-26 11:36:39 -04:00
senselessdev1 a2109a2437 pass in IndexPair arguments 2022-09-26 10:56:44 -04:00
senselessdev1 8007271f4b Merge branch 'develop' of https://github.com/borglab/gtsam into dsf-gtsfm-to-gtsam-port 2022-09-26 10:31:59 -04:00
Fan Jiang 1bb7a00000 Add wrapping for hybrid nonlinear 2022-08-26 11:47:41 -04:00
sjxue c4184e192b fix error in python unit test 2022-08-18 19:35:06 -04:00
sjxue 746ca7856d Address review comments 2022-08-18 17:50:20 -04:00
Varun Agrawal 42bab8f3e7 use KeyVector for GNC inliers & outliers 2022-07-25 22:19:29 -04:00
Varun Agrawal eb6e56a4f8 Mark JacobianVector as opaque 2022-07-25 17:20:09 -04:00
Varun Agrawal c97b9a3bc6 Merge branch 'develop' into wrap/pybind-stl 2022-07-25 16:49:49 -04:00
senselessdev1 00cadab3b0 Merge branch 'develop' of https://github.com/borglab/gtsam into dsf-gtsfm-to-gtsam-port 2022-07-25 00:20:24 -04:00
Varun Agrawal c15d288418 Merge branch 'develop' into custom-factor-separate 2022-07-22 22:49:45 -04:00
Varun Agrawal 7edd021956 fix copying of test files in Cmake 2022-07-22 14:00:03 -04:00
Varun Agrawal 7eb9a95c5f minor fixes 2022-07-22 13:55:54 -04:00
Varun Agrawal 12b35b4142 remove pybind stl.h 2022-07-22 13:55:54 -04:00
Amado Antonini 029631e483 Merge branch 'develop' into main 2022-07-21 11:42:48 -04:00
Amado Antonini 90723d933e Remove pybind/stl.h again 2022-07-19 19:32:21 -04:00
Varun Agrawal 3d3703441c wrap custom factor in a separate file 2022-07-19 14:10:46 -04:00
Varun Agrawal d6415deac4 minor updates to sfm.h preamble 2022-07-19 12:13:20 -04:00
Varun Agrawal b60c5e3ab5 undo CustomFactor changes 2022-07-17 16:05:59 -04:00
Varun Agrawal a1d6ca207a Merge branch 'develop' into wrap/pybind-stl 2022-07-17 12:43:29 -04:00
senselessdev1 51fb3750e8 remove stray breakpoint 2022-07-17 00:31:42 -04:00
senselessdev1 361e3f601c Remove C++17 decompositions, and address comments 2022-07-16 22:29:01 -04:00
senselessdev1 6e45be3d98 fix all wrapper issues 2022-07-16 16:09:21 -04:00
senselessdev1 2434d3a41e Fix unwrapped SfmTrack2d, and instantiate generator before calling its method 2022-07-16 01:23:54 -04:00
senselessdev1 629b9cd955 clean up docstrings 2022-07-16 00:26:57 -04:00
senselessdev1 6e13456db4 Add Python unit test 2022-07-15 23:35:00 -04:00
senselessdev1 809923a6f2 Start GTSFM's DSF port to C++ 2022-07-15 23:32:03 -04:00
Amado Antonini e381a7c9d2 Revert pybind stl include 2022-07-13 23:28:45 -04:00
Amado Antonini 01ea316336 Make vector<size_t> opaque 2022-07-13 08:33:09 -04:00
Amado Antonini b4fdda4740 Run yapf 2022-07-08 16:49:04 -04:00
Amado Antonini 9dd1f8ffaf Adress review comments 2022-07-08 16:48:52 -04:00
Amado Antonini 26dd94bdaf Expose remaining attributes, add tests 2022-07-08 12:33:47 -04:00
Varun Agrawal 2ab09a580f add Python unit tests 2022-07-07 15:24:56 -04:00
yotams 7c077f8536 bugfix 2022-07-07 14:20:26 +03:00
yotams 7348586f60 1. changed interp name to slerp
2. added python tests for jacobians for some pose3 apis
2022-07-07 14:09:10 +03:00
vik748 0984fea3f5
Address matplotlib deprecation warnings for fig.gca() and window.set_title(). 2022-06-20 01:18:07 -07:00
Amado Antonini aee494a24f Expose GNC params to python 2022-06-14 17:07:29 -04:00
Varun Agrawal 2afa6781f8 fix python test 2022-06-02 09:20:43 -04:00
Varun Agrawal 7c7b5dd030 Rename files so that everything is HybridX 2022-06-01 23:52:21 -04:00
Varun Agrawal 852a9b9ef6 rename HybridFactorGraph to GaussianHybridFactorGraph 2022-05-28 14:25:12 -04:00
Varun Agrawal 3bde044248 add doc strings to python unit test and add assertions 2022-05-27 18:13:06 -04:00
Fan Jiang b8299d7ed6 Don't use Python dict method since it is not 2022-05-22 17:11:27 -07:00
Fan Jiang 2ae2cb6dc3 Don't crash anymore 2022-05-22 14:16:13 -07:00
Fan Jiang d5fd279449 Merge remote-tracking branch 'origin/develop' into fan/prototype-hybrid-tr 2022-05-21 13:56:41 -07:00
Frank Dellaert 06bc78175c
Merge pull request #1127 from borglab/feature/python/iterationHook 2022-05-13 13:48:18 -04:00
Gerry Chen 78c7a6b72c
Change `optimize_using` to simpler function call 2022-05-13 10:24:49 -04:00
Frank Dellaert 953aa9f5b0
Merge pull request #1194 from borglab/feature/saveTriangulation 2022-05-11 15:30:28 -04:00
Varun Agrawal 1d67019f54 remove user flag for pip install 2022-05-11 12:06:11 -04:00
Frank Dellaert b78a4e64b1 Include all constructors, methods 2022-05-11 10:11:57 -04:00
Frank Dellaert e5c87a869c
Merge pull request #1193 from borglab/fix/ellipses 2022-05-11 08:13:39 -04:00
Frank Dellaert db371c2fdb Added safe triangulation tests 2022-05-11 00:28:01 -04:00
Frank Dellaert 287ea28920 Camera sets 2022-05-11 00:27:50 -04:00
Frank Dellaert ce2cf723ad Merge branch 'develop' into fix/ellipses 2022-05-10 22:58:19 -04:00
Frank Dellaert de1827ca40 Added notebook with SenselessDev code. 2022-05-10 22:50:10 -04:00
Akshay Krishnan 29787373a6 update python test constructor 2022-05-10 17:46:52 -07:00
Frank Dellaert 638d391a01
Merge pull request #1177 from senselessDev/fix/ellipses 2022-05-10 19:06:00 -04:00
Akshay Krishnan 3a81d42d2c
Merge branch 'develop' into ta-add-methods 2022-05-09 22:49:34 -07:00
Akshay Krishnan e17eddf99f move values from params to run, remove params struct 2022-05-09 22:46:16 -07:00
Varun Agrawal fb1da007f8
Merge pull request #1187 from borglab/dot-printer 2022-05-08 18:13:14 -04:00
Fan Jiang 1bf995234a Merge remote-tracking branch 'origin/develop' into fan/prototype-hybrid-tr 2022-05-08 11:45:22 -07:00
Akshay Krishnan c0e5ce9ef9 wrapper updates 2022-05-07 18:28:54 -07:00
Fan Jiang e2a2634652 Finally debugged the root cause! 2022-05-07 15:53:36 -07:00
Akshay Krishnan 2e8d8ddf88 Merge branch 'develop' of github.com:borglab/gtsam into ta-add-methods 2022-05-05 21:49:51 -07:00
Akshay Krishnan 279b9bedf9 wrapper changes 2022-05-05 18:52:01 -07:00
Varun Agrawal 1d77ba55e4 fix python test 2022-05-05 16:49:03 -04:00
Fan Jiang 28b216b72f Correct the binding for BinaryMeasurement 2022-05-03 16:24:09 -04:00
Fan Jiang 86b9761b5b Also copy the preambles and specializations 2022-05-03 13:57:48 -04:00
Fan Jiang fcec6839d3 added SfmTracks and SfmCameras so we can easily
access them in Python
2022-05-03 13:56:41 -04:00
Varun Agrawal e704b40ab5 typo fix 2022-04-29 18:19:08 -04:00
Varun Agrawal ba6c3ccc1c Merge branch 'develop' into add-Similarity2-classes 2022-04-29 18:08:23 -04:00
Varun Agrawal ad2e347c12 update assertions 2022-04-29 18:08:18 -04:00
senselessDev 7fe577b553 update explanation of uncertainty ellipses, try to fix #1067 2022-04-22 18:54:59 +02:00
Gerry Chen 1e03c8b195 reset captured stdout buffer for each test 2022-04-20 16:55:51 -04:00
Gerry Chen 48310cf8d4
fix bug that python utils files don't regenerate upon edit 2022-04-20 16:33:50 -04:00
Gerry Chen 5796fe3488 Create convenience wrapper function in logging_optimizer 2022-04-20 16:21:59 -04:00
Gerry Chen 61eef0639a Partially Revert "Update `logging_optimizer.gtsam_optimize` to use NonlinearOptimizerParams::iterationHook"
This reverts commit 71aa20ff33.
2022-04-20 15:44:17 -04:00
Gerry Chen 2a17bb1715 Revert "Add comment to docstring of `gtsam_optimize`"
This reverts commit 5cfc87010d.
2022-04-20 15:40:09 -04:00
Gerry Chen 5cfc87010d
Add comment to docstring of `gtsam_optimize` 2022-04-19 16:10:36 -04:00
Gerry Chen 71aa20ff33
Update `logging_optimizer.gtsam_optimize` to use NonlinearOptimizerParams::iterationHook 2022-04-19 16:03:38 -04:00
Fan Jiang da09271d97 Remove print 2022-04-17 17:04:40 -04:00
Fan Jiang f212ac363a Add Cal3Unified unit test 2022-04-17 17:04:19 -04:00
Fan Jiang 693f05b04a Use rations numbers in test 2022-04-17 16:50:23 -04:00
Fan Jiang 923c57e68b Address comments 2022-04-17 16:03:00 -04:00
Fan Jiang 1fe7e743c4 Merge remote-tracking branch 'origin/develop' into fan/prototype-hybrid-tr 2022-04-16 15:59:03 -04:00
Frank Dellaert 938d409395 Notebook 2022-04-13 21:34:54 -04:00
Frank Dellaert df7fb47d55
Merge branch 'fix/ellipses' into develop 2022-04-12 13:04:24 -04:00
Fan Jiang 1232552e00
Merge pull request #1159 from shteren1/rs_wrapper
added wrapper for ProjectionFactorRollingShutter
2022-04-06 19:13:01 -04:00
yotams 936a7ac073 added test for the wrapper 2022-04-06 09:27:57 +03:00
yotams 0a06238785 added wrapper for ProjectionFactorRollingShutter 2022-04-06 08:26:50 +03:00
yotams 894605be3f added wrapper for ProjectionFactorRollingShutter 2022-04-05 08:51:03 +03:00
Frank Dellaert e8d785708f Deprecated free align in favor of named constructors with (a,b) convention 2022-03-27 00:29:28 -04:00
Frank Dellaert 628ffb1495 Matrix versions for Pose2 group action 2022-03-26 22:55:46 -04:00
Frank Dellaert bbf4e48d3c Expose Align, and add matrix version 2022-03-26 16:33:20 -04:00
Frank Dellaert 96fb72eb54 name change - no "All" needed 2022-03-26 16:19:38 -04:00
Frank Dellaert 08bbcc889e transformAllFrom/To 2022-03-26 15:57:52 -04:00
Fan Jiang 7f2fa61fb5 Added more Python examples 2022-03-25 23:28:40 -06:00
Fan Jiang d2dc620b1e Add Python bindings 2022-03-25 17:14:00 -06:00
Varun Agrawal b2ec9b01f9
Merge pull request #1146 from borglab/wrapping
Wrapping Updates
2022-03-25 09:38:58 -04:00
Varun Agrawal 1f494fd1bd update test for ISAM 2022-03-24 21:05:27 -04:00
Varun Agrawal 173919229f wrap measured and add tests 2022-03-24 21:05:14 -04:00
Varun Agrawal 9ed73270f6 update to use pip for installation and install to user directory by default 2022-03-24 16:28:34 -04:00
Frank Dellaert 206b68e56c
Merge pull request #1131 from borglab/fix/rangeISam 2022-03-20 15:28:47 -04:00
Frank Dellaert 41094dce0b Added reference 2022-03-19 15:19:33 -04:00
Frank Dellaert 383d81298c Added python notebook 2022-03-19 14:57:17 -04:00
Varun Agrawal 23c6a7e392 comment out failing python code since it is out of scope 2022-03-11 12:32:54 -05:00
Varun Agrawal ebc75e3a8d added test for ordering in Python 2022-03-11 08:42:40 -05:00
Gerry Chen 5f601f76d5
add iteration hook to NonlinearOptimizerParams 2022-03-08 09:57:11 -05:00
Gerry Chen bf8137b0c4
refactor python NonlinearOptimizerTest 2022-03-08 09:48:05 -05:00
Varun Agrawal 37ae7038fa Fix tests 2022-02-06 12:27:50 -05:00
Varun Agrawal 464af9f711 Fix syntactic errors in test_Sim2.py 2022-02-06 11:28:24 -05:00
Varun Agrawal c716f63219 wrap Pose2Pairs 2022-02-06 11:26:29 -05:00
Varun Agrawal 19335972ed Merge branch 'develop' into add-Similarity2-classes-2 2022-02-06 10:50:11 -05:00
Frank Dellaert 72772b1f41 Add header back in 2022-02-05 18:41:57 -05:00
Frank Dellaert 13092f6218 Add test for dot 2022-02-05 18:41:57 -05:00
Varun Agrawal 001014e159
Merge pull request #1083 from borglab/fixes/wrapper
Fixes to get matlab wrapper working properly
2022-02-02 10:12:07 -05:00
Frank Dellaert fb1e3c3df1
Merge pull request #1082 from borglab/fix/sfm_reading
Cleaned up loading SfmData
2022-02-01 21:15:02 -05:00
Varun Agrawal 134e82836e Fixes to get matlab wrapper working properly 2022-02-01 19:08:46 -05:00
Frank Dellaert f5f5f0d50d str ! 2022-02-01 15:59:28 -05:00
Varun Agrawal ad0d7e4b21
Merge pull request #1053 from senselessDev/develop 2022-02-01 15:55:31 -05:00
Frank Dellaert c7fb4a1619 Address comments 2022-02-01 15:20:10 -05:00
Frank Dellaert bc721e7736 Merge branch 'develop' into fix/sfm_reading 2022-01-31 23:38:22 -05:00
Frank Dellaert 236dbcb60b
Merge pull request #1078 from borglab/feature/sfm_data 2022-01-31 23:36:57 -05:00
Varun Agrawal fbe9a21070 attempt to get custom factor tests passing 2022-01-31 18:55:40 -05:00
Varun Agrawal ef912eefd3 minor cleanup 2022-01-31 18:53:39 -05:00
Frank Dellaert f04d8125ef Fixed print_ -> print 2022-01-31 18:30:19 -05:00
Varun Agrawal c68c986321 Fix IndexPairVector wrapping 2022-01-31 17:54:50 -05:00