onPositionUpdated(Position position) returning wrong position
Salma-Elmahallawy opened this issue · 6 comments
Describe the bug
The Position returned in the play store's application is correct, but the position returned from the latest code in the repository is incorrect. In the demo app here, the onPositionListener returns very accurate positions in some parts of one hallway, but wrong ones in another part of the same hallway.
Note: the beacons detected and distances to them are correct on both. The position is not though.
To Reproduce
Either start positioning in the section of the hallway where I am not positioned properly or start from another correct position then move towards it.
Expected behavior
Correct Position returned from the PositionListener's callback.
Screenshots
The parts with green checkmarks. I am not located correctly in the red section.
This shows how it is locating me wrong at two different places:
Beacon distribution is the same (alternating between the two walls along the hallway). It works perfectly everywhere on the app from the play store but not using the SDK or demo app.
Smartphone (please complete the following information):
- Device: Google Pixel 4
- OS: Android
- Version: 11
@Salma-Elmahallawy Hi.
Hope everything good on your side.
Can you explain, what's going wrong now? What version of application do you use?
Hope everything good on your side.
Can you explain, what's going wrong now? What version of application do you use?
Hi @PavelTychinin! I hope everything is good on your side as well. The issue is that the isPositionUpdated returns the wrong point in the hallways I specified in the issue. Although the app is reading the signals and the distance to them correctly, the point is incorrect and therefore it is positioning me wrong.
It works fine in the hallways with the green check mark in the image but not in any other place and we do not know why. I have also attached the second image to show how the positioning is incorrect.
We even have barriers around rooms, and sometimes it positions me inside them instead of placing me in the right hallway.
I am using the latest version in this repository. Please note that this error does not happen in the app on the android app store.
Thanks!
@Salma-Elmahallawy hello. I'm working on your problem now.
Can you please records logs from your location using the app you are currently having issues with?
If you provide us with data of your map and recorded logs we will evaluate your problem as soon as possible.
You can refer to this guide for how to record logs properly: https://docs.navigine.com/en/Using_Navigine_Application_for_Android
Please, record 2-3 logs with checkpoints, 1+ minute long each. With this we will check that you location was set up correctly and find other possible problems.
In case of any questions and issues, please do not hesitate to ask us directly.
@Salma-Elmahallawy hello. I'm working on your problem now.
Can you please records logs from your location using the app you are currently having issues with? If you provide us with data of your map and recorded logs we will evaluate your problem as soon as possible.
You can refer to this guide for how to record logs properly: https://docs.navigine.com/en/Using_Navigine_Application_for_Android
Please, record 2-3 logs with checkpoints, 1+ minute long each. With this we will check that you location was set up correctly and find other possible problems.
In case of any questions and issues, please do not hesitate to ask us directly.
Hi @tim-chikichev-navigine , thanks for getting back to me. I am not able to collect logs with checkpoints from the demo app here as this is not a feature on the app. The demo app is different from the play store app which is shown in the link you attached. I will be providing 3 logs from each of the apps (demo app and play store app). The positioning works perfectly in the play store app, but all of the recent versions of the demo app do not work properly.
The new versions of the SDK give inaccurate positions everywhere, but the most stable version is: https://github.com/Navigine/Indoor-Navigation-Android-Mobile-SDK-2.0/blob/d730cd36070f2d9c9f7cca595596af0875d79ca0/libs/libnavigine.aar
The version linked, however, still has the issues I described in the above Github issue. This is the SDK version we are currently using in our own application, and it behaves exactly the same way as your Demo app.
Can you provide me an email address I can send the log and data files to?
Thanks!
@Salma-Elmahallawy just to keep it clear.
Checkpoints are just for us for debugging.
If you manage to have our app and record with checkpoints - we will understand details about your location.
And then we can check your logs from any version of sdk you have issues with.
Best option is to have logs from the same phone with best scannings options (android usually).
Contact us here or via mail on the official website. We may discuss details after we have a closer look on the problem.