如何使用加速度计、CMMotion数据来定位3D空间中的点?

发布于 2025-01-08 18:38:46 字数 273 浏览 0 评论 0原文

我正在创建一个应用程序。其中将放置iPhone(为其制作单独的保护套)和高尔夫球杆(球拍)。我想获得表明球拍运动路径的点数组。

例如,当球拍放在地面上时,我开始收集数据。然后用户准备射击。因此,他会将球拍向后移动,然后向前移动球拍来击球。我想以 3D 形式捕捉所有这些点,并将它们绘制在屏幕上(2D 投影)。我看到很多类似的问题,加速度计,CMMotion框架文档。但无法找到这样做的方法。

我希望我已经正确解释了这个问题。你能给我建议一些公式或者如何处理数据来实现它吗?

提前致谢。

I am creating an application. In which iPhone will be placed (a separate cover is made for it) with golf club(racket). I want to get array of points which state the path of the racket movement.

For example, I start collecting the data when racket is on the ground. After then user prepares himself for shot. So, he will take the racket back side and then he will hit the shot by moving racket forward. I want to catch all these points in 3D and want to plot them on screen (2D projection). I saw many similar questions, accelerometer, CMMotion framework documents. But could not find a way to doing so.

I hope, I have explained the question properly. Can you suggest me some formula or how to process the data to achieve it?

Thanks in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

巡山小妖精 2025-01-15 18:38:46

无法在 3D 空间中跟踪这些移动

但是您可以 跟踪球拍的方向,这应该效果很好。

我已经为 Shimmer 平台实现了传感器融合算法,而不是琐碎的任务。我会使用 Core Motion,并且不会尝试创建自己的传感器融合算法。

希望这有帮助,祝你好运!

You cannot track these movements in the 3D space.

But you can track the orientation of the racket and that should work well.

I have implemented a sensor fusion algorithm for the Shimmer platform, not a trivial task. I would use Core Motion and I would not try to create my own sensor fusion algorithm.

Hope this helps, good luck!

素食主义者 2025-01-15 18:38:46

我尝试了 Madgwick 开发的传感器融合算法,但输出在我的设备上,它类似于 CoreMotion Attitude 输出。
我无法测试其他iPhone的姿态输出,但就我而言,问题是偏航角,即使iPhone固定在桌子上,偏航角也往往不稳定,可能是由于< a href="http://web.resna.org/conference/proceedings/2011/RESNA_ICTA/Quality%20of%20Life/taniviruzzaman-QoL9.pdf" rel="nofollow">z 轴陀螺仪的独特芯片放置。

i tried the sensors fusion algorithm developed by Madgwick, but the output, on my device, it's similar to the CoreMotion Attitude output.
I don't have the possibility to test the attitude outputs from other iPhone, but in my case, the problem it's the yaw angle, even if the iphone it's fixed on the table the yaw angle tend to be unstable, probably due to the distinct chip-placement of z-axis gyro.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文