Commit Graph

30 Commits (021d1054289b5e7c44a44ef591d57d21c4bdbef5)

Author SHA1 Message Date
Frank Dellaert e81b38114c Ignore clangd cache 2024-06-08 16:11:24 -07:00
Frank Dellaert 938d409395 Notebook 2022-04-13 21:34:54 -04:00
yotams 0a06238785 added wrapper for ProjectionFactorRollingShutter 2022-04-06 08:26:50 +03:00
Brice Rebsamen be29bc4222 .gitignore: swp files 2021-11-30 03:28:47 -08:00
Varun Agrawal b30448733c remove all Cython references 2020-10-01 19:56:35 -04:00
Frank Dellaert 84afc94458
Feature/shonan averaging (#473)
Shonan Rotation Averaging.

199 commit messages below, many are obsolete as design has changed quite a bit over time, especially from the earlier period where I thought we only needed SO(4).

* prototyping weighted sampler

* Moved WeightedSampler into its own header

* Random now uses std header <random>.

* Removed boost/random usage from linear and discrete directories

* Made into class

* Now using new WeightedSampler class

* Inlined random direction generation

* eradicated last vestiges of boost/random in gtsam_unstable

* Added 3D example g2o file

* Added Frobenius norm factors

* Shonan averaging algorithm, using SOn class

* Wrapping Frobenius and Shonan

* Fixed issues with <<

* Use Builder parameters

* Refactored Shonan interface

* Fixed << issues as well as MATLAB segfault, using eval(), as discussed in issue #451

* ShonanAveragingParameters

* New factor FrobeniusWormholeFactorP computes |Rj*P - Ri*P*Rij|

* Fixed broken GetDimension for Lie groups with variable dimension.

* Removed all but Shonan averaging factor and made everything work with new SOn

* Just a single WormholeFactor, wrapped noise model

* Use std <random>

* comments/todos

* added timing script

* add script to process ShonanAveraging timing results

* Now producing a CSV file

* Parse csv file and make combined plot

* Fixed range

* change p value and set two flags on

* input file path, all the csv files proceeses at the same time

* add check convergence rate part

* csv file have name according to input  data name

* correct one mistake in initialization

* generate the convergence rate for each p value

* add yticks for the bar plot

* add noises to the measurements

* test add noise

* Basic structure for checkOptimalityAt

* change optimizer method to cholesky

* buildQ now working. Tests should be better but visually inspected.

* multiple test with cholesky

* back

* computeLambda now works

* make combined plots while make bar plot

* Calculate minimum eigenvalue - the very expensive version

* Exposed computeMinEigenValue

* make plots and bar  togenter

* method change to jacobi

* add time for check optimality, min_eigen_value, sub_bound

* updated plot min_eigen value and subounds

* Adding Spectra headers

* David's min eigenvalue code inserted and made to compile.

* Made it work

* Made "run" method work.

* add rim.g2o name

* Fixed bug in shifting eigenvalues

* roundSolution which replaces projectFrom

* removed extra arguments

* Added to wrapper

* Add SOn to template lists

* roundSolution delete the extra arguement p

* only calculate p=5 and change to the correct way computing f_R

* Fixed conflict and made Google-style name changes

* prototype descent code and unit test for initializeWithDescent

* add averaging cost/time part in processing data

* initializewithDescent success in test

* Formatting and find example rather than hardcode

* Removed accidentally checked in cmake files

* give value to xi by block

* correct gradient descent

* correct xi

* }

* Fix wrapper

* Make Hat/Vee have alternating signs

* MakeATangentVector helpder function

* Fixed cmake files

* changed sign

* add line search

* unit test for line search

* test real data with line search

* correct comment

* Fix boost::uniform_real

* add save .dat file

* correct test case

* add explanation

* delete redundant cout

* add name to .dat output file

* correct checkR

* add get poses_  in shonan

* add Vector Point type for savig data

* Remove cmake file which magically re-appeared??

* Switched to std random library.

* Prepare Klaus test

* Add klaus3.g2o data.

* fix comment

* Fix derivatives

* Fixed broken GetDimension for Lie groups with variable dimension.

* Fix SOn tests to report correct dimension

* Added tests for Klaus3 data

* Add runWithRandomKlaus test for shonan.

* Finish runWithRandomKlaus unittest.

* Correct datafile.

* Correct the format.

* Added measured and keys methods

* Shonan works on Klaus data

* Create dense versions for wrappers, for testing

* Now store D, Q, and L

* Remove another cmake file incorrectly checked in.

* Found and fixed the bug in ComputeLambda !

* Now using Q in Lambdas calculation, so Lambdas agree with Eriksson18cvpr.

* Make FrobeniusFactor not use deprecated methods

* FrobeniusWormholeFactor takes Rot3 as argument

* Wrapped some more methods.

* Wrapped more methods

* Allow creating and populating BetweenFactorPose3s in python

* New constructors for ShonanAveraging

* add function of get measurements number

* Remove option not to use noise model

* wrap Use nrMeasurements

* Made Logmap a bit more tolerant of slightly degenerate rotations (with trace < -1)

* Allow for Anchor index

* Fix anchor bug

* Change outside view to Rot3 rather than SO3

* Add Lift in SOn class

* Make comet working

* Small fixes

* Delete extra function

* Add SOn::Lift

* Removed hardcoded flag

* Moved Frobenius factor to gtsam from unstable

* Added new tests and made an old regression pass again

* Cleaned up formatting and some comments, added EXPORT directives

* Throw exception if wrongly dimensioned values are given

* static_cast and other throw

* Fixed run-time dimension

* Added gauge-constraining factor

* LM parameters now passed in, added Gauge fixing

* 2D test scaffold

* Comments

* Pre-allocated generators

* Document API

* Add optional weight

* New prior weeights infrastructure

* Made d a template parameter

* Recursive Hat and RetractJacobian test

* Added Spectra 0.9.0 to 3rdparty

* Enabling 2D averaging

* Templatized Wormhole factor

* ignore xcode folder

* Fixed vec and VectorizedGenerators templates for fixed N!=3 or 4

* Simplifying constructors
Moved file loading to tests (for now)
All unit tests pass for d==3!

* Templated some methods internally

* Very generic parseToVector

* refactored load2d

* Very much improved FrobeniusWormholeFactor (Shonan) Jacobians

* SO(2) averaging works !

* Templated parse methods

* Switched to new Dataset paradigm

* Moved Shonan to gtsam

* Checked noise model is correctly gotten from file

* Fixed covariance bug

* Making Shonan wrapper work

* Renamed FrobeniusWormholeFactor to ShonanFactor and moved into its own compilation unit in gtsam/sfm

* Fixed wrong include

* Simplified interface (removed irrelevant random inits) and fixed eigenvector test

* Removed stray boost::none

* Added citation as suggested by Jose

* Made descent test deterministic

* Fixed some comments, commented out flaky test

Co-authored-by: Jing Wu <jingwu@gatech.edu>
Co-authored-by: jingwuOUO <wujing2951@gmail.com>
Co-authored-by: swang <swang736@gatech.edu>
Co-authored-by: ss <ss>
Co-authored-by: Fan Jiang <prof.fan@foxmail.com>
2020-08-17 07:43:10 -04:00
dellaert 1cbb6d74f8 cmake fixes 2019-05-19 11:30:48 -04:00
Frank Dellaert 8acba8eabe ignore debug directory 2019-04-10 22:34:01 -04:00
Jose Luis Blanco Claraco ba5ef236e4 git ignore qtcreator IDE files 2019-01-07 23:38:03 +01:00
Frank Dellaert 65c0515829 Ignore windows temps 2018-11-06 00:28:36 -05:00
Frank Dellaert 315ea79e21 Ignore VS code .env file 2018-09-29 00:06:31 -04:00
Frank Dellaert 4ed362dfd4 Ignore Visual Studio Code files 2018-09-27 00:23:00 -04:00
Duy-Nguyen Ta 83d3f21fd8 ignore generated files 2016-09-16 11:43:06 -04:00
Ivan Jimenez 303ddc7077 [BUGFIX] Fix .gitignore. 2016-02-28 01:00:26 -05:00
Ivan Jimenez 6cc4ab8bdf [BUGFIX-WARNING] Fixed warning in gcc5 by adding SYSTEM to gtsam included eigen. 2016-02-27 19:21:42 -05:00
dellaert 1720adbbd7 Merge remote-tracking branch 'origin/develop' into feature/LPSolver 2016-01-29 09:12:50 -08:00
Frank 52f3432988 Moved numpy_eigen headers to a more logical place 2016-01-28 16:47:12 -08:00
Frank Dellaert 4d93a33f61 Static methods should be uppercase. 2016-01-26 23:09:58 -08:00
Ivan Jimenez 2978664cbd Merge branch 'develop' into feature/LPSolver
Conflicts:
	gtsam_unstable/linear/QPSolver.h
2016-01-25 15:59:52 -05:00
thduynguyen 30afbc5f1d closed-form formula of Pose2's expmap/logmap derivatives 2014-12-19 13:53:08 -05:00
Natesh Srinivasan 4e557d38e6 updated Matrix.h with commonly used matrices. 2014-12-03 09:59:10 -05:00
nsrinivasan7 708a3d69e8 ignore file for QtCreator IDE 2014-11-29 15:41:19 -05:00
cbeall3 fdaaf4c558 Add intermediate file for round-trip dataset test to ignore 2014-10-25 20:20:35 -04:00
balderdash-devil afcddf823a unit test now works 2014-05-31 15:53:41 -04:00
balderdash-devil 120723b718 ignore the rewritten file 2014-05-30 16:41:45 -04:00
cbeall3 312d3fac1e ignore /doc* 2014-05-03 11:53:10 -04:00
dellaert 5aa7d55691 Ignore Mac system files 2014-01-25 11:03:37 -05:00
Richard Roberts bfd334dd0e Added .pyc files to ignore 2014-01-06 21:19:53 -05:00
Alex Cunningham 56ff0b514c Changed ignore to include all build folders starting with /build* 2014-01-04 15:33:59 -05:00
Frank Dellaert d912868ca6 Added .gitignore with build directory in there 2013-12-22 14:04:16 -05:00