Git Product home page Git Product logo

taichislam's Introduction

TaichiSLAM

This project is a 3D Dense mapping backend library of SLAM based Taichi-Lang, designed for the aerial swarm.

Demo video

Intro

Taichi is an efficient domain-specific language (DSL) designed for computer graphics (CG), which can be adopted for high-performance computing on mobile devices. Thanks to the connection between CG and robotics, we can adopt this powerful tool to accelerate the development of robotics algorithms.

In this project, I am trying to take advantages of Taichi, including parallel optimization, sparse computing, advanced data structures and CUDA acceleration. The original purpose of this project is to reproduce dense mapping papers, including Octomap, Voxblox, Voxgraph etc.

Note: This project is only backend of 3d dense mapping. For full SLAM features including real-time state estimation, pose graph optimization, depth generation, please take a look on VINS and my fisheye fork of VINS.

Demos

Octomap/Occupy[1] map at different accuacy:

drawing

drawing

drawing

Truncated signed distance function (TSDF) [2]: Surface reconstruct by TSDF (not refined) Occupy map and slice of original TSDF

Usage

Install taichi via pip

pip install taichi

Download TaichiSLAM to your dev folder and add them to PYTHONPATH

git clone https://github.com/xuhao1/TaichiSLAM

Integration with ROS

Running TaichiSLAMNode (require ROS), download dataset at this link.

# Terminal 1
rosbag play taichislam-realsense435.bag
# Terminal 2
roslaunch launch/taichislam-d435.launch show:=true

Generation topology skeleton graph [4]

This demo generate topological skeleton graph from TSDF This demo does not require ROS. Nvidia GPU is recommend for better performance.

pip install -r requirements.txt
python tests/gen_topo_graph.py

This shows the polyhedron

De-select the mesh in the options to show the skeleton

Bundle Adjustment (In development)

Roadmap

Paper Reproduction

  • Octomap
  • Voxblox
  • Voxgraph

Features

Mapping

  • Octotree occupancy map [1]
  • TSDF [2]
  • Incremental ESDF [2]
  • Submap [3]
    • Octomap
    • TSDF
    • ESDF
  • Topology skeleton graph generation [4]
    • TSDF
    • Pointcloud/Octomap
  • Loop Detection

MISC

  • ROS/RVIZ/rosbag interface
  • 3D occupancy map visuallizer
  • 3D TSDF/ESDF map visuallizer
  • Export to C/C++
  • Benchmark

Know issue

Memory issue on ESDF generation, debugging...

References

[1] Hornung, Armin, et al. "OctoMap: An efficient probabilistic 3D mapping framework based on octrees." Autonomous robots 34.3 (2013): 189-206.

[2] Oleynikova, Helen, et al. "Voxblox: Incremental 3d euclidean signed distance fields for on-board mav planning." 2017 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS). IEEE, 2017.

[3] Reijgwart, Victor, et al. "Voxgraph: Globally consistent, volumetric mapping using signed distance function submaps." IEEE Robotics and Automation Letters 5.1 (2019): 227-234.

[4] Chen, Xinyi, et al. "Fast 3D Sparse Topological Skeleton Graph Generation for Mobile Robot Global Planning." arXiv preprint arXiv:2208.04248 (2022).

LICENSE

LGPL

taichislam's People

Contributors

xuhao1 avatar

Stargazers

TUPoGPer avatar  avatar @cdcme avatar Elias Gabriel Amaral da Silva avatar wh7f avatar Manav Gagvani avatar  avatar Sartek avatar  avatar Yiming Luo avatar GloryHRY avatar Gitzhao avatar Lux avatar  avatar Remi_IO avatar  avatar Quanyi Li avatar Zihao_Wu avatar Eran Segal avatar Tianyou Yu avatar Baozhe Zhang avatar  avatar Dianyi Yang avatar pattern_academy avatar Yang Zhou avatar  avatar  avatar  avatar Niranjan Anandkumar avatar  avatar  avatar 裴智翔 avatar Bing Wu avatar savoki avatar Pedro Diaz avatar  avatar  avatar bear_nx avatar  avatar Jaedong Kim avatar  avatar  avatar Linus Zhang avatar jsbyysheng avatar morin avatar Greg Zuro avatar RaymondLau avatar  avatar Wiktor Muroń avatar  avatar fenbiHE515 avatar Louis Howe avatar  avatar Mr. Fisher avatar Shuo avatar Ivan Xu avatar sprhawk avatar  avatar  avatar masx200 avatar minggangyin avatar Jason Stillerman avatar rong avatar yuna0x0 (edisonlee55) avatar Zhongkai Lau avatar Hitesh Kumar avatar Thomas Gale avatar Liang7 avatar Nical avatar Mingkang Xiong avatar Earthson Lu avatar RF Liang avatar SD avatar  avatar  avatar 莫非 avatar Yupeng Jia avatar TLightSky avatar JiYan avatar Heng Zhang avatar  avatar LI, Jinjie avatar Jaidev Shriram avatar Mtv Europe avatar  avatar Kaiser Roy avatar Daniel Gu avatar Ruben D'Sa avatar Jeremy Zhang avatar Yu Hu avatar Lovro avatar Malte kl. Piening avatar Shichao Wu avatar Haitao Xiao avatar Nitin avatar wang shuai avatar John Mora avatar  avatar Ekin Ozturk avatar  avatar

Watchers

OKUMURA Yoshio avatar James Cloos avatar Martin Valgur avatar  avatar Shichao Wu avatar  avatar Xin Kong avatar  avatar Robotics_Qi avatar TanShaochang avatar Chen Yao avatar hiyyg avatar

taichislam's Issues

error of module 'tina' has no attribute 'Scene'

error of module 'tina' has no attribute 'Scene'

When i follow the usage to the "Running TaichiSLAM octomap demo" ,i got error's as below:

lll@lll-u18:~/test/taichi/TaichiSLAM$ python3 -V
Python 3.6.9
lll@lll-u18:~/test/taichi/TaichiSLAM$ python3 TaichiSLAM_demo.py -b /media/lll/B2/TaichiSLAM/cow_and_lady_dataset.bag
[Taichi] mode=release
[Taichi] preparing sandbox at /tmp/taichi-rfhmiw0f
[Taichi] version 0.7.13, llvm 10.0.0, commit 26bda350, linux, python 3.6.9
[Tina] version 0.1.1
[Tina] Taichi properties hacked
Res [1024x768] GPU False RVIZ False size of map [100, 10] grid 0.05
[Taichi] Starting on arch=x64
Traceback (most recent call last):
  File "TaichiSLAM_demo.py", line 132, in <module>
    scene = tina.Scene(RES_X, RES_Y, bgcolor=(0.1, 0.1, 0.1))
AttributeError: module 'tina' has no attribute 'Scene'
lll@lll-u18:~/test/taichi/TaichiSLAM$ python3
Python 3.6.9 (default, Dec  8 2021, 21:08:43)
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tina
[Tina] version 0.1.1
[Taichi] mode=release
[Taichi] preparing sandbox at /tmp/taichi-lvzsn6lt
[Taichi] version 0.7.13, llvm 10.0.0, commit 26bda350, linux, python 3.6.9
[Tina] Taichi properties hacked
>>>

As you see, i setup the taichi package of 0.7.13 version. because i got error by defaut version, when i import tina,and changed to 0.7.13 .
But, i still got error says"AttributeError: module 'tina' has no attribute 'Scene'",even i can import tina.

So, what is the requirements of this repo,or what versions of python, taichi, tina is recommend?

thanks.

ModuleNotFoundError: No module named 'swarm_msgs'

When starting the program, an error occurs indicating that the 'swarm_msgs' module is missing.

from swarm_msgs.msg import DroneTraj, VIOFrame
ModuleNotFoundError: No module named 'swarm_msgs'

No relevant files found in the directory.

GLFW Error 65537: The GLFW library is not initialized

raise type(e)('\n' + str(e)) from None
taichi.lang.exception.TaichiSyntaxError:
File "D:\TaichiSLAM\tests/..\taichi_slam\mapping\topo_graph.py", line 403, in add_mesh:
self.tri_colors[facelet_idx*3 + j][3] =
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Static assign cannot be used on elements in arrays
GLFW Error 65537: The GLFW library is not initialized

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.