将Kinect电机角度设置为0。 [英] Setting the Kinect motor angle to 0.

查看:69
本文介绍了将Kinect电机角度设置为0。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

基本上,我想做一个"系统检查"。在Kinect上,以确保我设置的测试环境中的最高精度。我们正在开发一个程序,它从Kinect骨架流中读取关节XYZ坐标,然后将所选关节(到目前为止,臀部,膝盖和脚踝)的坐标
写入控制台和.txt文件。我们正试图衡量Kinect的准确性,因此我们需要尽可能准确和一致。传感器电机角度显然是读取这些东西的主要变量
,因此我希望始终将其设置为0。

Basically, I want to do a "systems check" on the Kinect in order to ensure maximum accuracy in the test environment I've set up. We are working on a program that reads the joint XYZ coordinates from the Kinect skeleton stream and then writes the coordinates of a selected joint (so far, the hips, knees, and ankles) to both the console and a .txt file. We're trying to gauge the accuracy of the Kinect, so we need to have as accurate and consistent as we can possibly get. Sensor motor angle is obviously a major variable in how such things are read, so I want to set it to 0 at all times.

假设无论出于何种原因,Kinect在先前的应用中以15(或传感器电机的可能角度的连续体上的任何其他数字)离开时终止。如何检查电机,如果它的角度不是
值为0,则将其设置为0?

Let's say the Kinect was, for whatever reason, left at an angle of 15 (or any other number on the continuum of possible angles for the sensor motor) in a prior application when it terminated. How would I do a check of the motor, and if its angle is not a value of 0, set it to 0?

推荐答案

在Window_Loaded()事件中你可以写

at the Window_Loaded() event you can write

- kinectSensorChooser1.Kinect.ElevationAngle = 0;

--kinectSensorChooser1.Kinect.ElevationAngle=0;

kinectSensorChooser1代表你的kinet传感器。

kinectSensorChooser1 represents your kinet sensor.

这就是将Kinect重置为0度倾斜所需的一切。

and that's all you need to reset your Kinect back to tilt with 0 degree.


这篇关于将Kinect电机角度设置为0。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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