仰角和kinectSensorManager [英] elevation angle and kinectSensorManager

查看:63
本文介绍了仰角和kinectSensorManager的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开始申请后发生了一些奇怪的事情。例如,如果我的kinect倾斜角度是20,当我开始我的应用程序时它会回到零。我发现它与使用KinectSensorManager有关,当我评论倾斜角度时,
在开始时没有变化。

hi , something weird is happening after I start my application . for example if my kinect tilt angle is 20 , when I start my application it goes back to zero . I found it's got something to do with using KinectSensorManager cause when I comment tilt angle doesn't change at start .

如果有人可以帮我这个,我将不胜感激。 

I'll be appreciated if someone can help me with this . 

谢谢

推荐答案

如果传感器在交给传感器时未启动KinectSensorManager,保留初始角度,从而覆盖KinectSensorManager本身设置的值。

If the sensor is not started when it’s handed to the KinectSensorManager, the initial angle is preserved, thus overriding the value set on the KinectSensorManager itself.

如果传感器正在运行,则传感器状态(全部,而不仅仅是角度)是应用,以便KinectSensor的当前状态与KinectSensorManager上设置的状态匹配。

If the sensor is running, then the sensors state (all of it, not just the angle) is applied so that the KinectSensor’s current state matches the state set on the KinectSensorManager.

由于KinectSensorManager只是示例代码,您可以修改:

Since KinectSensorManager is just sample code, you can modify:

KinectSensorManager.EnsureElevationAngle()


这篇关于仰角和kinectSensorManager的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆