Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/310.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# KINECT:如何识别用户何时使用KINECT上下行走?_C#_Kinect - Fatal编程技术网

C# KINECT:如何识别用户何时使用KINECT上下行走?

C# KINECT:如何识别用户何时使用KINECT上下行走?,c#,kinect,C#,Kinect,我只需要创建一个控制台程序,它在其中输出一个字符串,其中标识的是正在向上或向下行走的人 你知道KINECT使用这个的例子吗 我是一个使用SDK的新手。 提前感谢。查看我的博客,了解骨骼关节的位置() 1->保存人的初始位置。当用户准备好时,从右脚开始采取该位置(为此,我要求用户在函数中将右手放在其头部前方),例如: 函数“checkuserisready”: 3->检查用户是否超出循环中的行 if ((_anteriorControlLine <= _coord[9].Z) &&a

我只需要创建一个控制台程序,它在其中输出一个字符串,其中标识的是正在向上或向下行走的人

你知道KINECT使用这个的例子吗

我是一个使用SDK的新手。
提前感谢。

查看我的博客,了解骨骼关节的位置()

1->保存人的初始位置。当用户准备好时,从右脚开始采取该位置(为此,我要求用户在函数中将右手放在其头部前方),例如:

函数“checkuserisready”:

3->检查用户是否超出循环中的行

if ((_anteriorControlLine <= _coord[9].Z) && (_coord[9].Z <= _anteriorSafeLine)){

//move forward

}

上下什么?楼梯?斜坡?一个疑问,checkuserisready函数的编号是多少?它们是身体的关节吗?拜托,我把那些数字弄糊涂了
float _anteriorSafeLine = (float)_initPos.Z - 0.2f;
float _posteriorSafeLine = (float)_initPos.Z + 0.2f;
if ((_anteriorControlLine <= _coord[9].Z) && (_coord[9].Z <= _anteriorSafeLine)){

//move forward

}
_coord[0] = new Vector3(joint.Position.X,joint.Position.Y,joint.Position.Z);

//0 -> HandLeft
//1 -> ElbowLeft
//2 -> ShoulderLeft
//3 -> hipLeft
//4 -> HandRight
//5 -> ElbowRight
//6 -> ShoulderRight
//7 -> hipRight
//8 -> Head
//9 -> FootRight