it-at-m / epitaph_ips

Library for Indoor Positioning purposes
https://pub.dev/packages/epitaph_ips
MIT License
35 stars 8 forks source link
dartlang flutter indoor-localization indoor-navigation indoor-positioning ips

Epitaph

Epitaph has a wide array of utilities to position your user in a building. The project is intended to be used to only calculate the position on the user's device. It has been written in Dart using the Flutter framework. Bluetooth Low Energy (BLE) beacons are used to make the calculations possible. Received Signal Strength Indication (RSSI) values are used to calculate the user’s location in the real world.

Table of Contents

Built With

This library has been build with:

Usage

In Progress

Tracking

The tracking system consists of multiple modules that can theoretically be used individually as well.

Module descriptions

Calculator (abstract)

Filter (abstract)

Tracker

Mapper

Example

//Initialize calculator
Calculator calculator = LMA();

//Very basic models for unscented Kalman filter
Matrix fxUserLocation(Matrix x, double dt, List? args) {
  List<double> list = [
    x[1][0] * dt + x[0][0],
    x[1][0],
    x[3][0] * dt + x[2][0],
    x[3][0]
  ];
  return Matrix.fromFlattenedList(list, 4, 1);
}

Matrix hxUserLocation(Matrix x, List? args) {
  return Matrix.row([x[0][0], x[0][2]]);
}

//Sigma point function for unscented Kalman filter
SigmaPointFunction sigmaPoints = MerweFunction(4, 0.1, 2.0, 1.0);

//Initialize filter
Filter filter = SimpleUKF(4, 2, 0.3, hxUserLocation, fxUserLocation, sigmaPoints, sigmaPoints.numberOfSigmaPoints());

//Initialize tracker
Tracker tracker = Tracker(calculator, filter);

//Engage tracker by calling this method with a list with at least 3 Beacon instances
tracker.initiateTrackingCycle(...);

//The result of the tracker can be called as follows
tracker.finalPosition;

//Raw calculated position and filtered position can be called as well
tracker.calculatedPosition;
tracker.filteredPosition;

//Filter can be used independently from tracker; provide Point instance for filter method
filter.filter(...);

//Calculator can be used independently from tracker; provide a list with at least 3 Beacon instances
calculator.calculate(...);

Documentation

Learn with the latest updates directly from our Documentation.

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please open an issue with the tag "enhancement", fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Open an issue with the tag "enhancement"
  2. Fork the Project
  3. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  4. Commit your Changes (git commit -m 'Add some AmazingFeature')
  5. Push to the Branch (git push origin feature/AmazingFeature)
  6. Open a Pull Request

The Flutter Team has a great guide here how to set up everything needed.

We also would suggest looking into the Flutter Team's style guide here

More about this in the CODE_OF_CONDUCT file.

Roadmap

See the open issues for a full list of proposed features, known issues and out latest Roadmap.

License

Distributed under the MIT License. See LICENSE file for more information.

Contact

it@M - itm.innolab@muenchen.de

join our slack channel