计算两个关节之间的角度 [英] Calculate angle between two joints

查看:104
本文介绍了计算两个关节之间的角度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 
$


我开始研究C#1.8中的示例Kinect SDK 1 



我想在YZ平面上移动躯干。当我得到角度15°时,我希望躯干改变颜色。 

要做到这一点,我需要得到中心肩部和臀部中心之间的初始坐标并计算Y中的距离plane 
$


我正在修改SkeletonBasic-WPF实例(MainWindow.xaml.cs) 

你如何创建一个函数做这个练习吗?。 
$


谢谢!!

解决方案

生成你自己的基于构成"骨骼"的关节的矢量。在那个关节周围。一旦你有2个向量计算角度只是向量数学。


有几个线程更详细地讨论这个:
https://social.msdn.microsoft.com/Forums/en- US /家类别= kinectsdks&安培;版面= kinectsdk%2Ckinectv2sdk&安培;排序= relevancedesc&安培; brandIgnore =真&安培; SEARCHTERM = +关节
之间角度+


Hi, 

I'm starting to work on the examples in C # 1.8 Kinect SDK 1 

I want to move the torso in the YZ plane. When I get the angle 15°, I would like the torso changed color. 
To do this, I need to get the initial coordinates between Center Shoulder and Hip Center and calculate the distance in the Y plane 

I am modifying the SkeletonBasic-WPF instance (MainWindow.xaml.cs) 
How do you make a function to do this exercise ?. 

Thank you !!

解决方案

Generate your own vectors based on the joints that make up the "bones" that around that joint. Once you have the 2 vectors calculating the angle is just vector math.

There are several threads that discuss this in further detail: https://social.msdn.microsoft.com/Forums/en-US/home?category=kinectsdks&forum=kinectsdk%2Ckinectv2sdk&sort=relevancedesc&brandIgnore=True&searchTerm=angle+between+joint


这篇关于计算两个关节之间的角度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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