找不到类型或名称空间名称'InteractionHandType'Kinect SDK 1.8 [英] The type or namespace name 'InteractionHandType' could not be found Kinect SDK 1.8

查看:260
本文介绍了找不到类型或名称空间名称'InteractionHandType'Kinect SDK 1.8的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试检测闭合拳头(握把)手势来控制Kinect中的鼠标光标. 我按照本教程进行设置: 解决方案

InteractionHandType 枚举在名称空间Microsoft.Kinect.Toolkit.Interaction中定义. 您需要在项目中添加对 microsoft.kinect.toolkit.interaction.dll 的引用(您可以在C:\ Program Files \ Microsoft SDKs \ Kinect \ Developer Toolkit v1.8.0中找到该工具包程序集. \ Assemblies).

I am trying to detect closing fist (grip) gesture to control my mouse cursor in Kinect. I followed this tutorial to setup : http://dotneteers.net/blogs/vbandi/archive/2013/05/03/kinect-interactions-with-wpf-part-iii-demystifying-the-interaction-stream.aspx

However, in the DummyInteractionClient.cs file, I am getting this error on the following line:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Kinect.Toolkit.Interaction;

using Microsoft.Kinect.Toolkit;
using Microsoft.Kinect.Toolkit.Controls;


namespace Microsoft.Kinect.Toolkit.Controls
{
    public class DummyInteractionClient : IInteractionClient
  {
    public InteractionInfo GetInteractionInfoAtLocation(
        int skeletonTrackingId,
        InteractionHandType handType,
        double x,
        double y)
    {
        var result = new InteractionInfo();
        result.IsGripTarget = true;
        result.IsPressTarget = true;
        result.PressAttractionPointX = 0.5;
        result.PressAttractionPointY = 0.5;
        result.PressTargetControlId = 1;

        return result;
     }
  }
}

The error is at InteractionHandType handType. it says , Error 1 The type or namespace name 'InteractionHandType' could not be found (are you missing a using directive or an assembly reference?) E:\work\FYP\working\Kinect Mouse Controller switcher\kinectmouse CODE-96133\C Sharp zoom in both hands\DummyInteractionClient.cs 18 13 Microsoft.Kinect.Samples.CursorControlWhat does it error means? Am I missing or using wrong namespace names? Please help i am not expert in C# Kinect SDK 1.8.

解决方案

The InteractionHandType enumeration is defined in the namespace Microsoft.Kinect.Toolkit.Interaction. You need to add a reference to microsoft.kinect.toolkit.interaction.dll to your project (you will find the toolkit assemblies in C:\Program Files\Microsoft SDKs\Kinect\Developer Toolkit v1.8.0\Assemblies).

这篇关于找不到类型或名称空间名称'InteractionHandType'Kinect SDK 1.8的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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