WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 04-24-2018, 06:17 AM
BEP2018 BEP2018 is offline
Registered User
 
Join Date: Apr 2018
Posts: 1
Post Headset Coordinates and Euler angles (HTC Vive)

Hi,

We are a group of Bachelor-level Mechanical Engineering students and we want to use position data out of the headset of the HTC Vive. We are building a virtual driving simulation in a program called Prescan connected to the control program Simulink. We want to use the HTC Vive to show the road environment, for this we need to export the position data from the HTC Vive to Simulink. Our first step is collecting this position data real-time. Then we need to send it to Simulink in some way.

We already have this piece of code (that we partly found here), we started out with using the controllers to get this position data (because we didn't know the name of the headset):

import viz
import vizact
import vizshape
import steamvr
import vizconnect

rightController = steamvr.getControllerList()[0]
leftController = steamvr.getControllerList()[1]

def printData():
print 'pos right:',rightController.getPosition()
print 'pos left :',leftController.getPosition()

vizact.onupdate(0,printData)


--> where can we find this position data and how can we import this to Simulink?
Reply With Quote
 

Tags
export to simulink, headset, htc vive, position data


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
Controller Coordinates and Euler angles biomech_dave Vizard 2 09-12-2016 05:25 PM


All times are GMT -7. The time now is 06:21 PM.


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