Git Product home page Git Product logo

test's Introduction

3D position calculation and visualization

Install prerequisite packets

pip install -r requirements.txt

Formula used

In the first reference, there is a formula to find x-axis of 2 intersection spheres have same y-axis and z-axis

Depend on the above formula, we can use a points as origin and 3 points on 3 axis, then we can use origin and 1 in 3 of them to find the corresponding axis

Operation

Test mode

Config TEST_MODE to True

Config data in data.txt as format

0, 0, 0 , distance

x_axis, 0, 0 , distance

0, y_axis, 0 , distance

0, 0, z_axis , distance https://github.com/tritdm/test

python3 position.py data.txt

Config anchor positions before using serial mode

Config x_axis, y_axis, z_axis

Anchor positions will have format

0, 0, 0

x_axis, 0, 0

0, y_axis, 0

0, 0, z_axis

Serial mode

Config TEST_MODE to False

Connect serial (remember to adjust baudrate) and transmit data, change data format to fit the use

python3 position.py

Reference

https://mathworld.wolfram.com/Sphere-SphereIntersection.html?fbclid=IwAR2CTEeBz8VtI9EcXxcPEeetI1HhnNDanEgR0EyoSUpTcILVaMQjrWcjjmM

https://github.com/jremington/UWB-Indoor-Localization_Arduino

test's People

Contributors

tritdm 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.