Code Monkey home page Code Monkey logo

graphgnsslib's Introduction

GraphGNSSLib

An Open-source Package for GNSS Positioning and Real-time Kinematic Using Factor Graph Optimization

This repository is the implementation of the open-sourced package, the GraphGNSSLib, which makes use of the factor graph optimization (FGO) to perform the postprocessing of GNSS positioning and real-time kinematic (RTK) positioning. In this package, measurements from the historical and current epochs are structured into a factor graph which is then solved by non-linear optimization. The package is based on C++ which is compatible with the robot operation system (ROS) platform. Meanwhile, this package combines the RTKLIB (version: 2.4.3 b33) to read/decode the GNSS RINEX files. Users from Robotics field can easily have access to GNSS raw data for further study. We are still improving the code readibility with the hope that this package can benefit the research community.

Important Notes:

  • Be noted that the GNSS Positioning mentioned throughout the package means estimating the positioing of the GNSS receiver based on the combination of pseudorange and Doppler measurements uisng FGO.
  • Be noted that the GNSS-RTK Positioning mentioned throughout the package means estimating the positioing (float solution) of the GNSS receiver based on the combination of double-differenced pseudorange, carrier-phase and the Doppler measurements using FGO. Finally, the ambiguity is resolved using LAMBDA algorithm via epoch-by-epoch manner.

Authors: Weisong Wen, Li-ta Hsu from the Intelligent Positioning and Navigation Laboratory, The Hong Kong Polytechnic University

Related Papers: (paper is not exactly same with code)

  • Wen Weisong., Hsu, Li-Ta.* Towards Robust GNSS Positioning and Real-Time Kinematic Using Factor Graph Optimization, ICRA 2021, Xi'an, China. (Accepted)

if you use GraphGNSSLib for your academic research, please cite our related papers

Software flowchart of GraphGNSSLib, more information please refer to our paper.

1. Prerequisites

1.1 Ubuntu and ROS

Ubuntu 64-bit 16.04, ROS Kinetic. ROS Installation. We only test it on Ubuntu 16.04 with ROS Kinetic.

1.2. Ceres Solver

Follow the following instructions to install Ceres-solver instead of using the latest version of Ceres-solver.

Step 1: Download the Ceres-solver which is compatible with GraphGNSSLib.

Step 2: make and install

sudo apt-get install cmake
# google-glog + gflags
sudo apt-get install libgoogle-glog-dev
# BLAS & LAPACK
sudo apt-get install libatlas-base-dev
# Eigen3
sudo apt-get install libeigen3-dev
# make Ceres-solver
mkdir ceres-bin
cd ceres-bin
cmake ../ceres-solver
sudo make -j4
sudo make test
sudo make install

1.3. Extra Libraries

sudo apt-get install ros-kinetic-novatel-msgs

2. Build GraphGNSSLib

Clone the repository and catkin_make:

mkdir GraphGNSSLib/src
cd ~/GraphGNSSLib/src
mkdir result
git clone https://github.com/weisongwen/GraphGNSSLib.git
cd ../
# if you fail in the last catkin_make, please source and catkin_make again
catkin_make
source ~/GraphGNSSLib/devel/setup.bash
catkin_make

(if you fail in this step, try to find another computer with clean system or reinstall Ubuntu and ROS)

3. Run GNSS positioning via FGO using dataset UrbanNav

The GNSS positioning via FGO is validated using dynamic dataset collected near TST of Hong Kong. Several parameters are as follows:

  • GPS second span: 46701 to 47185
  • satellite system: GPS/BeiDou
  • measurements considered: pseudorange and Doppler measurements

please enable the following in rtklib.h

#define RTK_FGO 0
  • Solution 1 to run the GNSS positioning Demo
    source ~/GraphGNSSLib/devel/setup.bash
    # read GNSS raw data and publish as ROS topic
    # we provide several datasets, enjoy it!
    roslaunch global_fusion dataublox_TST20190428.launch
    # run pseudorange and doppler fusion
    roslaunch global_fusion psr_doppler_fusion.launch

Trajectories of three methods (GNSS positioning using WLS with the red curve, GNSS positioning using EKF with the green curve, and GNSS positioning using FGO with blue curve throughout the test. The x-axis and y-axis denote the east and north directions, respectively

4. Run GNSS RTK-FGO using static dataset

The GNSS RTK-FGO is validated using static dataset collected near TST of Hong Kong. Several parameters are as follows:

  • GPS second span: 270149 to 270306
  • satellite system: GPS/BeiDou
  • measurements considered: double-differenced pseudorange and carrier-phase measurements, Doppler measurements

please enable the following in rtklib.h

#define RTK_FGO 1
  • Solution 1 to run the RTK-FGO Demo
    source ~/GraphGNSSLib/devel/setup.bash
    # read GNSS raw data and publish as ROS topic
    roslaunch global_fusion dataublox_TST20200603.launch
    # run GNSS RTK
    roslaunch global_fusion psr_doppler_car_rtk.launch

Trajectories of three methods (RTK-EKF with the red dots and RTK-FGO with the blue dots throughout the test. The x-axis and y-axis denote the east and north directions, respectively.

5. Acknowledgements

We use Ceres-solver for non-linear optimization and RTKLIB for GNSS data decoding, etc. Some functions are originated from VINS-mono. The rviz_satellite is used for visualization. We appreciate the help and discussion from Tim Pfeifer which inspired me to finish this work. If there is any thing inappropriate, please contact me through [email protected] (Weisong WEN).

6. License

The source code is released under GPLv3 license. We are still working on improving the code reliability. For any technical issues, please contact Weisong Wen [email protected]. For commercial inquiries, please contact Li-ta Hsu [email protected].

graphgnsslib's People

Contributors

darrenwong avatar weisongwen avatar

Watchers

 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.