Coder Social home page Coder Social logo

ms-iot / ros_msft_mrtk Goto Github PK

View Code? Open in Web Editor NEW
64.0 11.0 10.0 21.03 MB

This repository contains ROS2 bindings for the Mixed Reality Toolkit - allowing you to create VR and AR applications which reflect sensor data from a Robot or provide command and control

License: MIT License

C# 96.33% ShaderLab 2.84% GLSL 0.70% HLSL 0.14%
ros2 mrtk-ros-application unity hololens ros-development

ros_msft_mrtk's Issues

3D objects & the handmenu from the example are not displayed

Hi,
I followed your instructions and wanted to try out Basic ROS World.
In the GameView in Unity and when I run it on the Hololens, the handmenu from the example and other 3D objects are not displayed.
What is the reason for this and does anyone have a solution?

Usage Guide

Hi,

Thank you for the hard work that has gone into these projects. I'm attempting to follow the instructions provided to get ROS2 Foxy setup and compiled for mixed reality targeting the Hololens 2. My understanding of the process is as follows:

  1. Install ROS2 Foxy for Windows
  2. Compile ROS# for UWP
  3. Bootstrap the example Unity project (possibly add references to compiled DLL's)

Is this correct or is there something that I am missing? Thank you in advance for any assistance.

Ros node on HoloLens2 cannot be detected.

Dear team,

Thanks a lot for sharing this nice project. I run the Unity project on my laptop and the ros node can be detected by ros2 node list. However, once I deploy the app to HoloLens2, it can not be detected any more. My laptop and Hololens2 are on the same network. Could you please provide some help? Thanks in advance.

I am using MRTK 2.8 + Unity 2021 + ROS2 humble, and the Unity app is built and deployed in Release mode

PS. If I run a ROS node on Hololens2 by ROS-TCP-CONNECTER, the node can be detected.

ROS2 node does not get properly destroyed

I was using the example listener script in the package to subscribe for my Lidar pointcloud2 data, while I was able to properly subscribe to it and visualize the points, every time I terminated the application in both Unity editor and hololens2 the node is not being properly terminated and became a zombie node in the background. This can be verified by using "ros2 node list" in the terminal, and these zombie nodes can only be destroyed if I manually close the unity editor/reboot hololens device. Do you know is there any way to cleanly close the application?

p.s. I was also looking at other ros2 Unity packages such as this one: https://github.com/RobotecAI/ros2cs, they do have to call a shutdown function to destroy the nodes properly so my guess is such a function might be missing

UWP Topics are not shown

I was able to build your system from code based on foxy.
The windows solution works well.

However, I found tons of problems for the UWP solution.
Now at least I am being able to execute a simple node in UWP, however topics are not shown in the ROS2 network.
The only I could do in the node is creating a subscriber and a subscriber inside this same process/node.

I put all the required capabilities: Internet (Client&Server), Internet(Client), Private Network.
Do you have any Idea why this is happening?

Nuget Version

Describe the bug
The version of NugetForUnity specified in the readme https://github.com/ms-iot/ros_msft_mrtk#prerequsitites doesn't work for me. I needed to use 3.0.4

To Reproduce
Steps to reproduce the behavior:

  1. Follow the documented setup
  2. Search for the QR code package in NugetForUnity UI
  3. Press Install
  4. See error stating that the package cannot be found

Expected behavior
Package should be found and installed
I tried NugetForUnity v3.0.4 and that worked as expected

Screenshots
If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • Unity version: 2020.3.26f1

Additional context
Add any other context about the problem here.

File paths too long

Describe the bug
Whilst setting up a project using the README instructions I noticed that I had a path name too long error in the console window. This was for the world locking tools package. Aside from that console message which was tempting to ignore I ended up with no MRTK shader in the project and hence no materials on the ui elements. I suspect every time some tooling enumerates that folder it quietly fails and skips some other operations (in this case copying the MRTK shader from it's package).

To Reproduce
Steps to reproduce the behavior:

  1. Follow the instructions in the README
  2. Create your project in a reasonable-length path location (I used something like c:\users\myname\repos\localprojects\myproject)
  3. Look out for console errors and missing materials, etc.

Expected behavior
no errors/missing materials
I remade the project at c:\ROS and it works as expected

Screenshots
If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • Unity version: 2020.3.26f1

Additional context
Add any other context about the problem here.

How are people installing this?

Tried to install this recently and encounter a ahem few problems.

Lets start with some of the prerequsitites, namely the ROS2 native and Mixed Reality Toolkit for ROS2 links that just redirect you to GitHub repositories instead of giving you a download.

So after a few hours of trying to work out how to get .tgz files from GitHub repositories, I was finally able to add them to my Unity project. OR SO I THOUGHT, except Unity didn't like it because the package.json files in both repositories weren't in the root directory and Unity couldn't find them. This is two counts for the instructions being incorrect.

Next thing I tried was importing directly from GitHub using Unity's "Add package from git..." option. Funny story, THE SAME THING HAPPENED for both repositories.

So finally I had to resort to a very painful process. I downloaded the zip files for both, dealt with path too long errors despite having longpaths enabled, went into Unity, used the "Add packages from disk..." option and manually navigated to the packages.json files. This actually work to my surprise and I finally had the packages in my project.

And that's how it ended. PSYCHE.

Upon adding this repository I get 40 errors for a bunch of namespaces that don't seem to exist, and when trying to use the ONE IMPORT BUTTON AVAILABLE, I find the folder it's referencing doesn't exist. I even tried to find the link.xml mentioned in the instructions and lo and behold, it doesn't exist either. That's strike three for the instructions.

So yes. I am very VERY curious to know how people are installing and using this software, the process for which has been a worse experience than dealing with government services.

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.