Coder Social home page Coder Social logo

sosoococ / vins-fusion-ros2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bonabai/vins-fusion-ros2

0.0 0.0 0.0 80.71 MB

ROS2 version of VINS-Fusion

License: GNU General Public License v3.0

Shell 0.82% C++ 95.22% C 0.29% Makefile 0.04% CMake 3.48% Dockerfile 0.16%

vins-fusion-ros2's Introduction

VINS-Fusion

ROS2 version of VINS-Fusion.

Notices

  • code has been updated so that the vins package can be executed via ros2 run or ros2 launch
  • but Rviz config cannot be saved due to some issue.. still fixing
  • GPU enable/disable features also have been added: refer EuRoC config (refered from here and here)
    • The GPU version has some CUDA library dependencies: OpenCV with CUDA. Therefore, if it is a bothersome to you and only need the cpu version, use the following commit version: .
    cd $(YOUR_LOCAL_PATH_TO_THIS_REPO)
    git checkout b02d4154e3d72fcd674f62a6347770cfc546fe48

Prerequisites

  • System
    • Ubuntu 20.04
    • ROS2 foxy
  • Libraries

sensor setup

  • camera: Intel realsense D435i
  • using following shell script, you can install realsense SDK with ROS2 package.
chmod +x realsense_install.sh
bash realsense_install.sh

build

cd $(PATH_TO_YOUR_ROS2_WS)/src
git clone https://github.com/zinuok/VINS-Fusion-ROS2
cd ..
colcon build --symlink-install && source ./install/setup.bash && source ./install/local_setup.bash

run

# vins
ros2 run vins $(PATH_TO_YOUR_VINS_CONFIG_FILE)

# Rviz2 visualization
ros2 launch vins vins_rviz.launch.xml

play bag recorded at ROS1

Unfortunately, you can't just play back the bag file recorded at ROS1. This is because the filesystem structure for bag file has been changed significantly. The bag file at ROS2 needs the folder with some meta data for each bag file, which is done using following commands.

pip install rosbags
  • run
export PATH=$PATH:~/.local/bin
rosbags-convert foo.bag --dst /path/to/bar

Original Readme:

8. Acknowledgements

We use ceres solver for non-linear optimization and DBoW2 for loop detection, a generic camera model and GeographicLib.

9. License

The source code is released under GPLv3 license.

We are still working on improving the code reliability. For any technical issues, please contact Tong Qin <qintonguavATgmail.com>.

For commercial inquiries, please contact Shaojie Shen <eeshaojieATust.hk>.

vins-fusion-ros2's People

Contributors

zinuok avatar bonabai 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.