Skip to main content

Localization

The Localization package provides tools for multilateration and triangulation in 2D, 3D, and on the Earth’s surface. The current Earth model supported by the package is called ‘Earth1’, which models the Earth as an ideal sphere with a radius of 6378.1 kilometers.

Original repo: https://github.com/kamalshadi/Localization

Typical usage of the package:

import localization as lx

To initialize a new localization Project, use:

P = lx.Project(mode=<mode>, solver=<solver>)

Currently, three modes are supported:

  1. 2D

  2. 3D

  3. Earth1

And three solvers can be utilized:

  1. LSE for least square error

  2. LSE_GC for least square error with geometric constraints. Geometric constraints force the solutions to be in the intersection areas of all multilateration circles.

  3. CCA for the centroid method, i.e., the solution will be the centroid of the intersection area. If no common intersection area exists, the area with the maximum overlap is used.

To add anchors to the project, use:

P.add_anchor(<name>, <loc>)

where name denotes the user-provided label of the anchor and <loc> is the location of the anchor provided as a tuple, e.g., (120, 60).

To add a target, use:

t, label = P.add_target()

T is the target object, and label is the package-provided label for the target.

Distance measurements must be added to the target object like:

t.add_measure(<anchor_label>, <measured_distance>)

Finally, running P.solve() will locate all targets. You can access the estimated location of the target t by t.loc. t.loc is a point object. Point object B has “x”, “y”, “z” coordinates available by B.x, B.y, B.z respectively.

Installation

Install the package via pip:

pip install localization

Contact: kamal.shadi85@gmail.com

An Example

Basic

To be completed:

  1. README

  2. DOC

Metadata

Release files for localization-patched 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for localization-patched 0.1.4
File Size Uploaded
localization-patched-0.1.4.tar.gz 12.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for localization-patched 0.1.4
File Interpreter ABI Platform
localization_patched-0.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 26.8 kB

Release files / localization-patched-0.1.4.tar.gz

Download URL localization-patched-0.1.4.tar.gz
Size 12.7 kB
Tags Source
SHA-256 checksum
How to use checksums
d62ffe17aff2847ee080b68287cc72be3cd04336637eb137616606dbd4d6b22c
BLAKE2b-256 checksum
How to use checksums
023f0dece6359858a9ac19ed6ad7e50bab40affd24fa1eaf25190567f5000c0f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.0

Release files / localization_patched-0.1.4-py3-none-any.whl

Download URL localization_patched-0.1.4-py3-none-any.whl
Size 14.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a79c14e1ebab60f8a0381ad92b84ad0e23798a78e96d81c323e4617289c2fcdc
BLAKE2b-256 checksum
How to use checksums
bf9ac3aef658afef471dd5dfcef32ee879504c508dfe1e1ff25036f0cc0a0197
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.0

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page