WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   HTC Vive Controller not working (https://forum.worldviz.com/showthread.php?t=5731)

Seadna 05-23-2016 11:23 AM

HTC Vive Controller not working
 
Hi there,

I have successfully loaded the example script with the Vive headset working flawlessly. However i cannot seem to get the controllers to work. I ran the example script but cannot see the controllers. The controllers are on and they work in other applications.

Any help is much appreciated.

Jeff 05-24-2016 03:22 AM

Are there any controllers returned by the steamvr.getControllerList() command? Does the following print 'connected' for each controller?

Code:

import viz
import steamvr

viz.go()

hmd = steamvr.HMD()
if not hmd.getSensor():
        sys.exit('SteamVR HMD not detected')
       
for controller in steamvr.getControllerList():
        print 'connected'


Seadna 10-22-2016 08:59 AM

They work now, but only when they are turned on before running my code. Thanks for help.

Roy 04-20-2021 04:10 AM

1 Attachment(s)
Hi,

I have the same problem.
Although the controller preferences in steamVR is fine, it doesn't work in vizard program.

When I write codes as below,
Code:

for controller in steamvr.getControllerList():
        print 'vive controller connected'
vizconfig.register(controller)
vizconfig.getConfigWindow().setWindowVisible(True)

for device in steamvr.getControllerList(): #check VR device
        print device

it says
Code:

steamvr.dle                      SteamVR Extension
vive controller connected
__builtin__.SteamVRController(1)

vizconfig shows the window as attached image, but any keys don't work. Also, I tried viztask.waitSensorDown(controller, steamvr.BUTTON_TRACKPAD), but it never work.

sado_rabaudi 04-21-2021 07:40 AM

Hi Roy,

If you go to tools- vizconnect and choose the SteamVR preset, then go to start page- advanced- inputs do you see a green button or red x next to the r_hand_input and l_hand_input?

Also, the controllers are showing as lit up in SteamVR?

Best,
Sado


All times are GMT -7. The time now is 10:50 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC