mmkhmmkh / pykickloc

A python implementation of the KickLoc cooperative localization algorithm.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pykickloc

build PyPI

A python implementation of the KickLoc Intuitive distributed localization algorithm.

Install

pip3 install pykickloc

Usage

To create a beacon, create a KINode with the beacon's position and a standard deviation of 0:

beacon = KINode(np.array([0, 1, 0]), 0)

To create an unknown node, create a KINode with no parameters:

unknown = KINode()

Whenever a distance update is received, call update on the local node to update the local node's position:

node.update(neighbor_position, neighbor_std_dev, distance, distance_std_dev)

If the nodes standard deviation was set to 0 (beacon), the update call will have no effect.

References

About

A python implementation of the KickLoc cooperative localization algorithm.

License:MIT License


Languages

Language:Python 100.0%