GithubHelp home page GithubHelp logo

soblin / slam Goto Github PK

View Code? Open in Web Editor NEW
20.0 3.0 2.0 1.05 MB

『SLAM入門 ロボットの自己位置推定と地図構築の技術』の実装レポジトリ

License: Mozilla Public License 2.0

CMake 2.49% C++ 97.51%
slam robotis cpp cmake travis-ci clang-format

slam's Introduction

slam

chapter06 chapter07 chapter08 chapter09 chapter10
Build Status Build Status Build Status Build Status Build Status

『SLAM入門 ロボットの自己位置推定と地図構築の技術』の実装レポジトリ.

著者 友納 正裕

出版社 オーム社

発行年 2018/03/05

ISBN 978-4-274-22166-8

ゼロから再実装

ROSのRvizとの連携まで進めたいと思っているのだが,そもそも本書のサンプルプログラムは分かりにくい.理由は

  • すべての章のプログラムを1つにまとめている
  • 最適化計算や地図のサイズなどのパラメータがソースコード中に分散してハードコーディングされていている.修正がしにくいし,自分でも構成が理解しづらい
  • 論理時刻が各クラスで重複している

など.ブラックボックスのまま表面だけをいじるのは嫌なので.サンプルプログラムを見ながらスクラッチから再実装した.気をつけたのは

  • インクリメンタル に実装する.第n章の実装は,第n章で必要なクラスのみで構成すること.
  • パラメータの定義は1つの箇所で集中して行う.ParamServer なるクラスを用意して,ParamServer::Set("map_size", 40), map_size = ParamServer::Get("map_size") の形でパラメータを得る.ROSのパラメータサーバーに似ている.論理時刻も CounterServer::Increment(), cnt = CounterServer::Get() の形でインクリメントしたり取得したりしている.シングルトンパターンを用いている.
  • ユニットテストを行うこと.第6章,7,8章で必要になるクラスの多くはテストケースを用意して機能をチェックしている.テストフレームワークとしては Gtest を用いている.各章ごとに,travis-ci 上でテストを行っている.
  • その他C++に慣れること.CMakeでビルドする際に自動で clang-format で各ファイルをフォーマットしている.

最適化計算での閾値や地図のサイズなどのパラメーターのノミナル値は, すべて include/slam/parameters.h に定義を集中している.

License

MPL-2.0

Original

https://github.com/furo-org/LittleSLAM


slam's People

Contributors

soblin avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

Forkers

forrest-z tonyryo

slam's Issues

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.