GithubHelp home page GithubHelp logo

hitdshu / hitnlls Goto Github PK

View Code? Open in Web Editor NEW
31.0 3.0 6.0 428 KB

A nonlinear least square(NLLS) solver. Fomulate the NLLS as graph optimization.

License: Do What The F*ck You Want To Public License

CMake 0.32% C++ 99.67% C 0.01%
slam least-squares graph-optimization admm convex-optimization nonlinear-least-squares manifold-optimization

hitnlls's Introduction

hitnlls

A nonlinear least square(NLLS) solver. Fomulate the NLLS as graph optimization. For the name, HIT here refers to Harbin Institute of Technology to honor the six wonderful years spent there and NLLS is short for nonlinear least square.

Features

  • This library is self contained and only requires a c++ 11 compiler. It's dependency free.
  • A highly efficent matrix header-only library that uses template-meta programming and expression templates to reduce temporary variables.
  • Support dense solvers, sparse solver and schur solver.
  • Auto differentiation exploiting dual numbers are available both for vector variables and manifolds(SE3 etc.).
  • A light weight geometry library, containing several lie groups, triangulizations, etc..
  • A light weight admm solver for convex cone optimization problem.

Abstract

This solver uses Gauss-Newton type algorithms for NLLS problems. We define node to be variables waiting for optimization and factor to be observation over which jacobians and errors are evaluated. Without any dependence on other libraries, we choose to implement dense matrix and sparse matrix operations used in later computation. We've updated this new version of HITNLLS, which extensively uses template metaprogramming and CRTP to make the code more structured, more efficient (and more difficult to read). If you want to see old version of HITNLLS, check the other branch of the repo. Currently we're adding unit tests and examples.

Usage

install

$ git clone https://github.com/hitdshu/hitnlls.git
$ cd hitnlls && mkdir build && cd build
$ cmake ..
$ make
$ sudo make install
$ make test # optional

usage in cmake

find_package(hitnlls REQUIRED)
include_directories(
${hitnlls_INCLUDE_DIRS}
)
target_link_libraries(Test 
${hitnlls_LIBRARIES})

Implementation

admm

We developed a cone ADMM algorithm for convex cone optimization problem(LP/SOCP/SDP). Check files there if you feel interested.

camera

Several camera models are defined here. Our implementation of cameras are integrated naturally into our optimization framework.

common

This folder defines the register and timer, which are needed by other modules. Included also is a thread-safe logger.

geometry

Our customized implementation of several lie groups(SO2/SO3/SE2/SE3) can be utilized for representation and optimization of poses in 2d and 3d space. The jet class is for auto differentiation just as ceres. The lie groups defined here can be combined with jet to make auto differentiation in mainfolds much simpler.

matrix

We use CRTP and expression templates to enable lazy evaluation and avoid the generation of temporaray variabls. Our api of dense matrix operations resembles those of Eigen. We mainly implement cholesky/qr/inverse/evd/svd/lup operations for dense matrix.

ils

This folder contains optimizable problem which organizes nodes and factors and optimization algorithms. We implement GAUSS_NEWTON, LEVEN_MARQ and TRUST_REGION strategies and DENSE_QR, DENSE_CHOLESKY, SPARSE_CHOLESKY and DENSE_SCHUR algorithms in this folder.

type

Factors and vertices are defined here. We use variable tuples to avoid dynamic_cast in the evaluation of factors. The framework can support hand diff/auto diff/numeric diff now. Inherits Factor/FactorAutodiff/FactorNumeDiff according to your own purpose.

hitnlls's People

Contributors

hitdshu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.