WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 01-09-2018, 10:27 AM
A Wundlechner A Wundlechner is offline
Member
 
Join Date: Jan 2018
Posts: 2
Check for running SteamVR

Hello everyone,

for my program I want to use 2 different controlling scemes. One should be controlled with a gamepad and the other one is for steamvr. I want the following behaviour:

If steamvr is already running, I want to use the steamvr controlles.
If it's not running, I want to use the gamepad.

For those 2 cases I've already created 2 configfiles with vizconnect and I changed my specific code parts within the scripts. I only need to know if steamvr is already open.

I haven't found a helpfull command within the steamvr library, to check if steamvr is running. If I run the steamvr.HMD() command when steamvr is closed, it just opens steamvr.

Thanks in advance,

Andreas Wundlechner
Reply With Quote
  #2  
Old 01-10-2018, 10:02 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,369
Rather than checking if SteamVR is running, would it work for you to check if the controllers are connected or not in there? If so, take a look at the initInputs section of a Vive config file. That checks for whether the controllers are connected.
Reply With Quote
  #3  
Old 01-11-2018, 02:03 AM
A Wundlechner A Wundlechner is offline
Member
 
Join Date: Jan 2018
Posts: 2
Thank you for your reply.

it also opens steamvr when I check for controllers by this command: steamvr.getControllerList()[index]

But it doesn't matter for me anymore, beause in the meantime I already found a solution for my problem. I installed the psutil library. I search with it for the running process "vrmonitor.exe". If I find the process, then steamvr is running.
Reply With Quote
Reply

Tags
controller, steamvr, vizconnect

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
check if fixation is on target VizMars Vizard 1 11-14-2017 11:20 PM
how to check if specified number of targets are in proximity sensor? Vaquero Vizard 8 12-27-2016 06:23 PM
Check if file exists jassel41 Vizard 2 09-27-2011 11:22 AM
Check presence of joysticks ? hotspur1 Vizard 1 05-18-2010 10:33 AM
Check if an avatar has a state "123" Josh Vizard 1 04-06-2010 01:11 PM


All times are GMT -7. The time now is 02:04 PM.


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