Giter Site home page Giter Site logo

ylsislove / hololens2-researchmode-unityplugin Goto Github PK

View Code? Open in Web Editor NEW
24.0 2.0 0.0 1.64 MB

本插件可用于Unity项目,获取Hololens2研究模式下的传感器数据。目前已实现IMU数据的获取。

License: MIT License

C++ 91.47% C 1.53% C# 7.00%
hololens2 unity3d

hololens2-researchmode-unityplugin's Introduction

HoloLens2-ResearchMode-UnityPlugin

本插件可在 Unity 项目中,获取 Hololens2 研究模式下的传感器数据和摄像机。目前已实现 IMU 数据的获取。

使用插件

  1. 在 Visual Studio 中打开 HL2RmUnityPlugin
  2. Release, ARM64 方式构建解决方案
  3. 在 Unity 项目中,创建 Assets/Plugins/HL2RmUnityPlugin 文件夹
  4. 将构建生成的 HL2RmUnityPlugin.dll 复制到 Assets/Plugins/HL2RmUnityPlugin 文件夹
  5. 在 Unity 脚本中调用 DLL 函数,参考 IMUMamager.cs 脚本
  6. 在菜单栏打开 Edit -> Project Settings。在 Player -> Publishing Settings 确保以下权限被勾上:
    • InternetClient
    • InternetClientServer
    • PrivateNetworkClientServer
    • WebCam
    • SpatialPerception
  7. 构建 Unity 项目
  8. 在生成的文件夹中找到 Package.appxmanifest,确保以下代码被添加:
<?xml version="1.0" encoding="utf-8"?>
<Package ... IgnorableNamespaces="... rescap" xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities">
  ...
  <Capabilities>
    <rescap:Capability Name="perceptionSensorsExperimental" />
    <Capability Name="internetClient" />
    <Capability Name="internetClientServer" />
    <Capability Name="privateNetworkClientServer" />
    <uap2:Capability Name="spatialPerception" />
    <DeviceCapability Name="webcam" />
    <DeviceCapability Name="backgroundSpatialPerception" />
  </Capabilities>
</Package>
  1. 在 Visual Studio 打开生成文件夹,用 Release, ARM64 方式构建解决方案并部署到 Hololens2

致谢

hololens2-researchmode-unityplugin's People

Contributors

ylsislove avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

hololens2-researchmode-unityplugin's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.