Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

https://github.com/RMonica/Hybrid_HMD_Tracking_RS
09 October 2024, 07:19:50 UTC
  • Code
  • Branches (1)
  • Releases (0)
  • Visits
    • Branches
    • Releases
    • HEAD
    • refs/heads/master
    No releases to show
  • 0abb08a
  • /
  • README.md
Raw File Download Save again
Take a new snapshot of a software origin

If the archived software origin currently browsed is not synchronized with its upstream version (for instance when new commits have been issued), you can explicitly request Software Heritage to take a new snapshot of it.

Use the form below to proceed. Once a request has been submitted and accepted, it will be processed as soon as possible. You can then check its processing state by visiting this dedicated page.
swh spinner

Processing "take a new snapshot" request ...

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • content
  • directory
  • revision
  • snapshot
origin badgecontent badge
swh:1:cnt:d2e0789bab58f2ddc5fd960520ec570ca2193182
origin badgedirectory badge
swh:1:dir:0abb08a619e49f46ea578f52e4440cba003d6c37
origin badgerevision badge
swh:1:rev:0a8db14161db9bc4e579790279580a9bb68755bc
origin badgesnapshot badge
swh:1:snp:0203d2f7ea07552ec1a63af56f020f4b91fd3b0a

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • content
  • directory
  • revision
  • snapshot
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Tip revision: 0a8db14161db9bc4e579790279580a9bb68755bc authored by RMonica on 08 October 2024, 13:23:12 UTC
Minor changes in scripts for compatibility.
Tip revision: 0a8db14
README.md
Hybrid_HMD_Tracking_RS
======================

This library contains implementations of sensor fusion methods which merge two 6DoF tracking sources for a virtual reality headset. One source (the so-called inside-out tracking) is always available, but it is relative to an arbitrary reference frame. The other source (the so-called outside-in tracking) is fixed with respect to a global reference frame, but it may become temporarily unavailable.

The code was used for the article:

```
R. Monica, D. Lodi Rizzini and J. Aleotti,
"Adaptive Complementary Filter for Hybrid Inside-Out Outside-In HMD Tracking With Smooth Transitions,"
IEEE Transactions on Visualization and Computer Graphics,
doi: 10.1109/TVCG.2024.3464738
```

Several methods have been implemented, following a common interface (`src/tracking_interface.h`).
In particular, the approach proposed in the article is mostly contained in the file `src/directed_complementary_tracking.cpp`.
A pure C-based interface is also available in the header `tracking_library.h`, which is suitable for integration in a [Unity](https://unity.com/) plugin.

This repository also contains scripts to generate Fig. 11, Fig. 12, Fig. 13, Fig. 16 and Fig. 17 of the article, as required by the [Graphics Replicability Stamp Initiative](https://www.replicabilitystamp.org/).

The software is released under the 3-clause BSD license. For portability, the repository also contains a copy of the [Eigen3](https://eigen.tuxfamily.org/) library, which is released under the Mozilla Public License v. 2.0, and [Manif](https://artivis.github.io/manif/), which is released under the MIT license.

The dataset collected in the article is also available at <https://rimlab.ce.unipr.it/~rmonica/hybrid_hmd_tracking_dataset.zip>, and it is released under a Creative Commons Attribution 4.0 International License.

Installation
------------

The tracking library is written in C++ and it is cross-platform. It should compile on both Windows and Linux using CMake.

Scripts to generate the figures of the paper require Linux (tested on Ubuntu 22.04 and 24.04) and the following dependencies:

**Dependencies**

- g++
- cmake
- bash
- gnuplot
- R (Rscript executable)
- curl
- unzip

Installation using Ubuntu APT:
```
sudo apt install g++ cmake gnuplot-x11 r-base curl unzip
```

**Build**

Standard CMake build:

```
mkdir build
cd build
cmake ..
make
```

These commands are also listed in the script `build.sh`.

Replicability stamp
-------------------

This code can be used to replicate the results presented in Figures 11, 12, 13, 16 and 17 of the article
```
R. Monica, D. Lodi Rizzini and J. Aleotti,
"Adaptive Complementary Filter for Hybrid Inside-Out Outside-In HMD Tracking With Smooth Transitions," 
IEEE Transactions on Visualization and Computer Graphics,
doi: 10.1109/TVCG.2024.3464738
```

To generate the figures, run the script `replicability_stamp.sh`.
The script does the following:

1. Downloads the dataset of the user study from <https://rimlab.ce.unipr.it/~rmonica/hybrid_hmd_tracking_dataset.zip>.
2. Parses the dataset and collects the discontinuities reported by the users as a function of the tracking approach.
3. Generates Fig. 11, Fig. 12 and Fig. 13.
4. Simulates the tracking methods presented in the paper on each trajectory recorded in the dataset.
5. Uses the mean position and rotation error to produce Fig. 16 and Fig. 17.

The figures are saved in the repository root in `.eps` format.

back to top

Software Heritage — Copyright (C) 2015–2026, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API