Skip to main content

A Python package for GNSS positioning and processing by TASLAB

Project description

TAS-GNSS Python Package

A Python package for GNSS positioning and processing by Trustworthy AI and Autonomous Systems (TAS) Laboratory, The Hong Kong Polytechnic Univerisity.

Installation

Install the package using pip online:

pip install tasgnss

or install by github clone:

git clone https://github.com/PolyU-TASLAB/TASGNSS.git
cd TASGNSS && pip install .

Usage

After installation, you can import and use the package:

import tasgnss as tas

obs,nav,sta = tas.read_obs('data/20210610/test.obs','data/20210610/sta/hksc161d.21*')
obss = tas.split_obs(obs,False)
obss = tas.filter_obs(obss,1623296137.0,1623296340.0)
print("total epochs:",len(obss))
for o in obss:
    print(f"Epoch: {tas.obs2utc(o.data[0].time)}")
    sol_wls = tas.wls_pnt_pos(o,nav)
    print(sol_wls)

You can try to run the example:

cd example && python3 example.py

ROS Wrapper Usage

The ros_wrapper package provides a ROS node that processes GNSS data and publishes ROS messages. To use it:

  1. Make sure you have ROS installed and sourced.

  2. Build the package:

    cd /path/to/your/ros/workspace
    catkin_make
    source devel/setup.bash
    
  3. Run the ROS wrapper node:

    rosrun ros_wrapper ros_wrapper_node.py
    

    You can specify the observation and navigation files, as well as the UTC time range using ROS parameters:

    rosrun ros_wrapper ros_wrapper_node.py _obs_file:='data/20210610/test.obs' _nav_file:='data/20210610/sta/hksc161d.21*' _start_utc:=1623296137.0 _end_utc:=1623296340.0
    

    The node will publish the following topics:

    • /gnss_observations: GNSS observation data
    • /gnss_ephemeris: GNSS ephemeris data
    • /gnss_processed_data: Processed GNSS data

Documentation

For detailed documentation, please visit: http://120.76.229.59/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tasgnss-0.1.0.tar.gz (35.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tasgnss-0.1.0-py3-none-any.whl (35.0 kB view details)

Uploaded Python 3

File details

Details for the file tasgnss-0.1.0.tar.gz.

File metadata

  • Download URL: tasgnss-0.1.0.tar.gz
  • Upload date:
  • Size: 35.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for tasgnss-0.1.0.tar.gz
Algorithm Hash digest
SHA256 341e049d7f7f4fbd6c8baf8793907a5862502007ad33ec6fac6afc877a2b60de
MD5 90ac839dd8b60575e876d0030362eefe
BLAKE2b-256 853f39e3892c0c36afcf13c389ff9e909949ebce62946b6ecc3dafc0fac52dc8

See more details on using hashes here.

File details

Details for the file tasgnss-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: tasgnss-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 35.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for tasgnss-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 14389988377466dbcc0e7d16b2bf1b5045fea20317c295ccf49a83bc6f850651
MD5 fea33ad0ba2aecf86548f30f257728b8
BLAKE2b-256 5d13a60ee4e4e53e8ea2b5bd69a9badb2e57c9b6f3f52fc53131437e153d2ed1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page