How to view depth data of Kinect on RVIZ? - kinect

I connected Kinect for Xbox 360 on Ubuntu on my virtual machine, launched openni.launch and then opened rviz. On Rviz I added pointcloud2 and topic to camera/depth/points. I also changed fixed frame to camera_link. But still I am not able to get anything on Rviz. On the other hand, if I connect Kinect to Odroid-XU4, launch openni.launch on Odroid and run Rviz on my virtual machine by receiving data from Odroid through network connection, I can easily get the depth points on Rviz display. Can someone tell me what could be the problem in my virtual machine?

It could be that the virtual machine have problem with USB, usually USB are not recognized. Is that your case?

The basic problem with virtual machine is that it is just an emulator which has virtual com ports, hence it doesn't matter how hard you try but you will never be actually getting a RGB-D image on ROS.

Related

How to run a discontinued videogame on a Windows XP virtual machine?

My friend and I have downloaded some discountinued videogames from Old Games Download - Retrogaming and Abandonware (which I warmly recommend to any CD-ROM aficionado!). We managed to run two of them after downloading them, mounting their .ISO file and installing them on a Windows 10 machine. The process was fairly smooth.
We are struggling to run the other two. They’re only compatible with Windows XP, so we created a virtual box with XP as the OS, but still no luck. We can’t get the virtual box to connect to Wi-Fi in any way, even after following several tutorials found online. We have tried mounting the games’s ISOs in the following ways:
Using Virtual Clone Drive
Using WinCDEmu
Using Win XP Virtual CD Control Panel
And we think we have managed to actually mount the ISO and install the programme on the virtual machine, but the game won’t start anyway. When we try to run it, this window opens:
Monsters & Co CDROM initial window, with title, play button, exit button
But when we click ‘play’ nothing happens. We have checked the “Insert Guest Addition CD Image” setting that triggers Autoplay and it seems to be up and running. What can we try next?
VirtualBox access internet by connecting to your real machine (the host machine) as if it was a router of some kind. There is no need to make the virtual machine (guest machine) use your wifi adapter directly to get internet connection, just add a virtual network adapter to your guest machine and VirtualBox takes care of everything else (but make sure you have checked the appropriated options during installation process so drivers are installed in your host machine).
Now, the game not launching is hard to say, as we don't have any message or other info about what is causing the falling. Yet, this is a 3D game and VirtualBox is not good enough to hand this kind of computation.

How to emulate USB-device as "alive" on VM?

Step by step:
My PC has connected printer via USB (I know VID:XXXX and PID:YYYY)
I took image of my PC and put inside virtual machine (VMWare)
Of course image on my VM doesn't has connected USB-printer (because real printer is connected to my real USB-port on my real PC).
One program is running and checking accessibility of printer by check connection with the printer via USB (I don't know how exactly - maybe via WMI, maybe via other way).
Results:
a) on my real PC this program works
b) on image doesn't work
QUESTION: is possible to emulate on VM-side that USB-port (VID:XXXX and PID:YYYY) is alive?
Thanks.
P.S. I don't want to install USB-redirect-via-TCP or similar approach.
You should switch to the QEMU emulator and to Linux to do that. VMWare probably doesn't support this of thing especially in a Windows environment.
If you are already on Linux, QEMU has hardware emulation of the xHCI and you can assign the host USB devices to KVM (read here: https://www.linux-kvm.org/page/USB_Host_Device_Assigned_to_Guest).
On Windows, I don't think this will be possible.

Can't Enable Integrated Webcam in Virtual Machine

I used to work on my Virtual Box normally until it started giving me critical errors, so i backed up my machine and reinstalled virtualbox and loaded my backed up machine. Now i am working on a project that needs the use of the Webcam, so i use my PC's built in webcam usually. I used to enable it from the VM settings. However, now it the webcam seetings doesn't show in the devices. The photos below show the problem i am facing.
The image below shows that the webcam option is checked in the devices.
However, when i enter to enable my camera from the devices, i don't find the webcam options! (image below)
Is it recommended to reinstall my Virtual box again? If a solution couldn't be found?
The VirtualBox Extension Pack is required to allow Webcam passthrough.
Available here -
https://www.virtualbox.org/wiki/Downloads

Can't find hyper-v virtual machine for HoloLens 2 emulator

does anybody know why I can't see the HoloLens 2 emulator as a virtual machine in the hyper-v manager? As far as I know, it is hyper-v based. I'm doing this so that I can change the default virtual switch to an external one (virtual as well) so that other client devices can connect to a server on the HoloLens 2 emulator. If I misunderstood something, tell me that as well.
The HoloLens 2 Emulator uses the Host Compute Service (https://learn.microsoft.com/en-us/virtualization/community/team-blog/2017/20170127-introducing-the-host-compute-service-hcs). Virtual Machines created in this way are not visible in Hyper-V Manager. Modifying the virtual machine to use an external network adapter is not supported. That said, a solution is coming in an emulator update to allow connectivity from other devices. Please keep an eye on https://learn.microsoft.com/en-us/windows/mixed-reality/hololens-emulator-archive for emulator updates.

How to use USB over Remote Connection to a Virtual Machine

I'm trying to do mobile application development (BlackBerry, Android) on a virtual machine. My idea is that no matter what desktop I'm on I can open a remote connection to the virtual machine and have my mobile development environment ready. The problem is that I would like to deploy code to the mobile device as if it were physically connected to the virtual machine. Ideally the devices will be plugged in to the client machine that is creating the remote connection.
I'm currently using VMWare workstation to manage my virtual machines, I've done a bit of research to see what the best solution for connecting my usb devices over the network is.
There are a multitude of pricey USB over network solutions that may or may not work for what I'm trying, but I would like to avoid those. I would be interested in a free open source solution where both the usb host and usb client are windows machines. This is close to what I am looking for http://usbip.sourceforge.net/, but you can't host a device from Windows.
It appears that I may be able to do this with a Hyper-V VM and RemoteFX through Microsoft RDC, but I would like this to work on my existing VMWare VM.
The quickest solution I've found is a network usb hub that would allow me to connect the devices over the network, but this would force me to be attached to the hub which is a problem if more people come on my project.
Ideally I'm looking for an existing software solution to my problem. Any suggestions?
Also can anyone confirm this would work in Hyper-V using RemoteFX?
I would consider porting your VM over to VirtualBox from Sun (now Oracle) they have remote USB support out-of-the-box, and are very stable.
I've ported machines the other way (for work) and it's not difficult.