Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need help for 3D Trilateration #1

Open
testqaibs opened this issue May 13, 2019 · 0 comments
Open

Need help for 3D Trilateration #1

testqaibs opened this issue May 13, 2019 · 0 comments

Comments

@testqaibs
Copy link

Hi,

I am using Trilateration code (https://github.com/Wayne82/Trilateration) for to calculate location in 3D.
I am using CalculateLocation3d method for to find out the location.

Trilateration worker;
PosAndDistance3dVec beacons;
Pos3d location;

beacons.push_back(PosAndDistance3d(Pos3d(0, 0, 0), 6.09));
beacons.push_back(PosAndDistance3d(Pos3d(4.5, 0, 0), 6.09));
beacons.push_back(PosAndDistance3d(Pos3d(4.5, 9.6, 0), 6.09));
beacons.push_back(PosAndDistance3d(Pos3d(0, 9.6, 0), 6.09));

worker.CalculateLocation3d(beacons, location);

Expected result: (2.25, 4.8, 3) But it gives Z-axis value as 0.
Please help me if I am missing anything.

Thank you,
Pravin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant