terminal29 / PSMS-OSVR-Connector

[Deprecated] A plugin for OSVR that add support for PSMoveService controllers and HMD's.
4 stars 3 forks source link

[✔] Virtual HMD/Controller support? #1

Closed g-coded closed 7 years ago

g-coded commented 7 years ago

I was wondering if you saw the virtual hmd(ping pong led) was added to psms, and if you plan on implementing it.

terminal29 commented 7 years ago

Yes I'm planning to do a bit of a rewrite soon that will include support for this. I'm keen on using it as well :)

g-coded commented 7 years ago

Thanks infinitellamas! :)

terminal29 commented 7 years ago

Should be supported now. I have not tested it so tell me if it works or not.

g-coded commented 7 years ago

Can't get it to work, getting a "Could not resolve source for /inf_osvr_move/MoveDevice/semantic/pingPongHMD I've got psms tracking a ping pong ball(listing as device_id 0), not too sure what I'm missing. Here is my config file

terminal29 commented 7 years ago

pingpongHMD/tracker to access the tracking information. (it doesnt have to be called pingpongHMD i was just using that as an example that the names can be whatever format you want) Because you have enabled debug it should print the paths to console.

L3nyxx commented 7 years ago

Hi infinitellamas. I am also getting the same error as g-coded even with "tracker" added. Here is my config

terminal29 commented 7 years ago

what paths does it print to the console for your HMD? Here is what mine looks like image

Edit: I'm sorry but I can't seem to replicate the problem. This is the output from the osvr server, and this is my config file. Although i dont have any virtual HMD's hooked up, it doesn't complain about unconnected paths and I can view it in the tracker viewer fine.

L3nyxx commented 7 years ago

I guess there was an error with my config. I copied your config and added in the arduino tracker and everything works now. Thanks!

terminal29 commented 7 years ago

Sweet. I'll be updating (rewriting) the arduino tracker soon as well so keep an eye out

terminal29 commented 7 years ago

I see your problem @L3nyxx, you had "params":{"params":{ ... so nothing was being linked. That's my fault though, ill edit the readme now. @g-coded that is your problem as well

g-coded commented 7 years ago

@infinitellamas - I was using your config word for word(pingPongHMD) to avoid any syntax errors(don't want to trace down a missing character) I will test out the new config file later today.

g-coded commented 7 years ago

@infinitellamas - Getting the same error, now I'm not even sure what my config file should look like.(kept getting syntax errors) Here is my current config file.

terminal29 commented 7 years ago

/inf_osvr_move/MoveDevice/semantic/HMD should be /inf_osvr_move/MoveDevice/semantic/HMD/tracker

Each controller's base path contains no information, to access the device capabilities (tracker/buttons/analog data etc...) you need to link to the specific sub-path.

g-coded commented 7 years ago

That got it working. I was planning on just using psms for the tracking/buttons. However I noticed my tracking spaces weren't alligning which is exactly what I was trying to get away from(osvr-kinect). Do you think I'd have better luck including the controllers in this plugin. It could also be steam vr telling me I need to run room setup(not sure why this came up?)

terminal29 commented 7 years ago

Currently the only way to use PSMove buttons with SteamVR is through PSMoveSteamVRBridge, OSVR-SteamVR driver doesn't support buttons and analogs (only head tracking). There has been a pull req open for a little over a year now that adds support, but I don't know if it will ever get merged. It is on my to-do list to make a workaround for this, and I can ping you if you want when i finish it.

terminal29 commented 7 years ago

Could either of you confirm if virtual HMD tracking works now so I can close the issue. Cheers

L3nyxx commented 7 years ago

I can confirm that the virtual hmd tracking is working fine for me. Tracks much better than the kinect v2. Thanks

terminal29 commented 7 years ago

That's great to hear. :)

g-coded commented 7 years ago

Yes, working now thank you.
@L3nyxx - I just tested this in steamvr compositor to confirm it was working, it's good to know it's working better than the kinect v2(what I'm trying to replace)