this is the part of localization in paper: GROLO: Realistic Range-based Localization for Mobile IoTs through Global Rigidity
In this repository, we mainly to estimate the position of robots through GROLO algorithm.
tensorflow
python
In this repository, you can choose two kinds of method to solve the problem. In triangle extension stage, you can use single pair of parents or more pair of parents, and you will get two different solution.
-
Firstly, you need to configure the code in config.py, you have to choose your origin data in folder "./data/" ,which create by "./data/crerate_nodes.py".
-
you need to execute ./main.py to run single pair of parents' method, or run ./main_more_parents.py to run more pair of parents' method
-
you can execute ./vasualzation.py to see the picture by three method.
-
use data "./data/nodes_100_beacon_5", you can get the picture:
this is 5 beacon, 100 nodes in 100 * 100 size of space, use dv-distance , Stochastic gradient descent, GROLO, in this algorithm, we use single pair of parents -
when use more pair of parents, you can see "./data/nodes_50_beacon_5_28_more_parents"
this is 5 beacon, 50 nodes in 100 * 100 size of space, communicate distance is 28, use dv-distance , Stochastic gradient descent, GROLO, in this algorithm, we use more pair of parents -
we find the communication range setting to is better, and the selection of beacon is important, but it is easy for mobile device. END! END!