在 Android 上可以检测到空间中固定点的距离(带有 x、y 和 z 坐标)吗?
我想找到 Android 设备相对于空间中固定点的位置。 我需要接近一两米的精度。 我的目标是确定 Android 设备用户在建筑物(博物馆)内的位置,检测她所在的楼层和房间,并且 - 如果可能 - 甚至在房间中更精确的位置(以知道她在哪幅画)接近)。 我确实已经排除使用 GPS,因为它不太精确(特别是在海拔方面),它只能在户外可靠地工作,它会快速消耗电池电量,并且不会快速返回位置。 我也已经排除使用网络位置提供程序,因为它更不准确。
I would like to find the position of an Android device with respect to a fixed point in space.
I need a precision close to one or two meters.
My goal is to determine the position of the android device user inside a building (a museum), to detect the floor and the room she is in, and - if possible - even a more precise position in the room (to know which painting she is close to).
I did already excluded to use GPS, since it is not so precise (expecially with respect to elevation), it only reliably works outdoors, it quickly consumes battery power, and it doesn't return the location quickly.
I did already excluded to use Network Location Provider too, since it is even less accurate.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 Android 中,您可以通过三种方式来检测 Android 手机的位置:
1) GPS
2) 网络
3) 三角测量
但这三种方式都不适合您的问题。 GPS 是最准确的,但正如您已经注意到的那样,它在建筑物中不起作用,并且无法区分不同的楼层。问题是GPS的精度最多也就3、4米。其他两种可能性远没有那么准确。这就是为什么你的问题没有真正的解决方案。
可能的一件事是运动传感器。如果您知道用户从哪里开始,您也许可以使用运动传感器来计算用户移动了多少米。但我认为这还不够准确。
In Android you have three possibilities to detect the location of a Android phone:
1) GPS
2) Network
3) Triangulation
But none of these three possibilities is suited for you're problem. The GPS is the most accurate one, but as you already noticed it is not working in buildings, and it won't be able to differentiate between different floors. The problem is that the accuracy of GPS is at best 3 or 4 meters. The other two possibilities are far less accurate. That's why there isn't a real solution for your problem.
One thing that might be a possibility is the motion sensor. If you know where the user starts, you maybe can use the motion sensor to calculate how many meters the user moves. But I don't think that this is accurate enough.