public static void Enable(string serverPath, string threeLetterVendorPNPID = null) { var enableDirectModeFileName = OSExeUtil.PlatformSpecificExeName("EnableOSVRDirectMode"); var enableDirectModePath = System.IO.Path.Combine(serverPath, enableDirectModeFileName); OSExeUtil.RunProcessInOwnConsole(enableDirectModePath, serverPath, GetArguments(threeLetterVendorPNPID)); }
public static void Start(IEnumerable <string> paths, string serverPath) { var trackerViewerExeName = OSExeUtil.PlatformSpecificExeName("OSVRTrackerView"); var trackerViewerPath = System.IO.Path.Combine(serverPath, trackerViewerExeName); OSExeUtil.RunProcessInOwnConsole(trackerViewerPath, serverPath, GetAllPaths(paths).ToArray()); }
public static void Start(string serverPath) { var osvrServerExeFileName = OSExeUtil.PlatformSpecificExeName("osvr_server"); var osvrServerExe = Path.Combine(serverPath, osvrServerExeFileName); OSExeUtil.RunProcessInOwnConsole(osvrServerExe, serverPath); }
public static bool RunSampleApp(string fileName, string serverPath) { if (fileName == null) { throw new ArgumentNullException(nameof(fileName)); } if (serverPath == null) { throw new ArgumentNullException(nameof(serverPath)); } var sampleApp = GetSampleApps(serverPath).FirstOrDefault( app => String.CompareOrdinal(fileName, app?.FileName) == 0); if (sampleApp == null) { return(false); } var platformSpecificFileName = OSExeUtil.PlatformSpecificExeName( sampleApp.FileName); var fullFileName = Path.Combine(serverPath, platformSpecificFileName); OSExeUtil.RunProcessInOwnConsole(fullFileName, serverPath); return(true); }
public static async Task CallResetYaw(string serverPath, string path = null) { var resetYawFileName = OSExeUtil.PlatformSpecificExeName("osvr_reset_yaw"); var resetYawPath = System.IO.Path.Combine(serverPath, resetYawFileName); var process = OSExeUtil.RunProcessInOwnConsole(resetYawPath, serverPath, GetArguments(path)); var ret = new Task(() => process.WaitForExit()); ret.Start(); await ret; }