Giter Club home page Giter Club logo

bayesian_hilbert_maps's Introduction

Bayesian Hilbert Maps (BHM) for Occupancy Mapping

Online Bayesian Hilbert Mapping

Rather than discretizing the space, we learn a parameterized continuous function of occupancy. Once the parameters are learned, we discard data. This function can be queried to obtain the mean and variance (i.e. uncertanty) of occupancy. In the online setting, we recursively use the estmated parameters as prior information. The model is suitable for both small and large datasets and requires minimal parameter tuning.

Tutorials An intuitive guide to Bayesian Hilbert maps - BHM_tutorial.ipynb

Demonstrations Now BHM is available in both numpy and pytorch (CUDA).

Datasets Intel Lab dataset KITTI dataset Carla dataset - link_to_be_included

Videos: https://youtu.be/LDrLsvfJ0V0

https://youtu.be/gxi0JKuzJvU

https://youtu.be/iNXnRjLEsHQ

Example:

import sbhm

X = #numpy array of size (N,2)
y = #numpy array of size (N,)
X_pred = #numpy array of size (N_pred,2)

model = sbhm.SBHM(gamma)
model.fit(X, y)
y_pred = model.predict_proba(X_pred)[:,1]

# with pytorch
See the demonstrations.

Papers: Introduction to Bayesian Hilbert Maps

@inproceedings{senanayake2017bayesian,
  title={Bayesian hilbert maps for dynamic continuous occupancy mapping},
  author={Senanayake, Ransalu and Ramos, Fabio},
  booktitle={Conference on Robot Learning},
  pages={458--471},
  year={2017}
}

Examples with moving robots and the similarities to Gaussian process based techniques:

@inproceedings{senanayake2018continuous,
  title={Building Continuous Occupancy Maps with Moving Robots},
  author={Senanayake, Ransalu and Ramos, Fabio},
  booktitle={Proceedings of the Thirty Second AAAI Conference on Artificial Intelligence},
  year={2018},
  organization={AAAI Press}
}

Learning hinge points and kernel parameters:

@inproceedings{senanayake2018automorphing,
  title={Automorphing Kernels for Nonstationarity in Mapping Unstructured Environments},
  author={Senanayake*, Ransalu and Tomkins*, Anthony and Ramos, Fabio},
  booktitle={Conference on Robot Learning},
  pages={--},
  year={2018}
}

code: https://github.com/MushroomHunting/autormorphing-kernels

Fast fusion with multiple robots

@inproceedings{zhi2019fusion,
  title={Continuous Occupancy Map Fusion with Fast Bayesian Hilbert Maps},
  author={Zhi, William and Ott, Lionel and Senanayake, Ransalu and Ramos, Fabio},
  booktitle={The International Conference on Robotics and Automation (ICRA)},
  pages={--},
  year={2019}
}

bayesian_hilbert_maps's People

Contributors

lydiachan528 avatar ransml 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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

bayesian_hilbert_maps's Issues

tutorial

In the tutorial, np.exp( -1/gammaTemp * xTemp**2 ) should be np.exp( -gammaTemp * xTemp**2 )

facing nan for mu

facing nan for mu at 2nd round
Figure_1
I use local LiDAR data, and can generate samples as above figure, while using E-M to evaluate the mu, I always get Nan value.

Cannot get satisfied results

I ran the ipython code and the final session of the code produces:

('shapes:', (383118, 4))
0th scan:
  N=380
('D=', 5600)
((380,), (380,), (380,), (380, 5601), (5601,))
Traceback (most recent call last):
  File "yu_test.py", line 65, in <module>
    bhm_mdl.fit(X, y)
  File "/home/ugv-yu/bryan/Bayesian_Hilbert_Maps/sbhm.py", line 123, in fit
    XMX[42042048204]
IndexError: index 42042048204 is out of bounds for axis 0 with size 380

Sequential video in readme

Dear authors @RansML @LydiaChan528 ,

Thanks for this open-source code. Great work!
I am wondering how did you generate the video you showed in README. It seems that data was read from intel.csv sequentially as your demo_intel.ipynb did. But demo_intel.ipynb is super slow. So I guess the video was generated by a gpu version of the demo_intel, right? I am also curious if the pytorch-cpu version could achieve the real-time performance like you showed in your video. Thanks.

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.