WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 06-05-2018, 12:09 PM
Vaquero Vaquero is offline
Member
 
Join Date: Nov 2015
Posts: 62
Question Vizconnect and HTC Vive Trackers

Hi!
For a study, we wanted to replicate the full body tracking with IK that you demonstrate in this short clip: https://youtu.be/Hf-oRZF5mGw
Unfortunately, in Vizconnect I couldn't find a way to add the HTC Vive trackers, because there are only entries for the SteamVR HMD and the SteamVR Controllers, which both work. I tried those entries to connect to the extra trackers with different IDs, but to no avail.
On the other hand, steamvr.getTrackerList() lists the trackers when the script is running. But I would need them in Vizconnect to set up the IK for the avatar, right?
Since you show off a running demo, can you please tell me what need's to be done to be able to use the extra HTC Vive trackers?
Reply With Quote
  #2  
Old 06-11-2018, 10:40 AM
Vaquero Vaquero is offline
Member
 
Join Date: Nov 2015
Posts: 62
Smile figured it out

I went at it again today and figured it out. For now, I added a few lines of code to the file that vizconnect saves. In the initTrackers() function, add these lines of code, if you want to track the extra HTC Vive trackers that are not controllers in vizconnect:

Code:
	#VC: initialize a new tracker
	_name = 'extra_tracker_1'
	if vizconnect.isPendingInit('tracker', _name, initFlag, initList):
		#VC: init the raw object
		if initFlag&vizconnect.INIT_RAW:
			#VC: set some parameters
			index = 0

			#VC: create the raw object
			import steamvr
			try:
				tracker = steamvr.getTrackerList()[index]
			except IndexError:
				viz.logWarn("** WARNING: Not able to connect to tracker at index {0}. It's likely that not enough trackers are connected.".format(index))
				tracker = viz.addGroup()
				tracker.invalidTracker = True
			rawTracker[_name] = tracker

		#VC: init the wrapper (DO NOT EDIT)
		if initFlag&vizconnect.INIT_WRAPPERS:
			vizconnect.addTracker(rawTracker[_name], _name, make='Valve', model='SteamVR Controller Tracker')
You can, of course, change the name. Add this snippet again with another name and index to add additional trackers.
Reply With Quote
  #3  
Old 06-13-2018, 10:00 AM
sado_rabaudi sado_rabaudi is offline
WorldViz Team Member
 
Join Date: Jul 2016
Posts: 40
Hi, here is the vizconnect link for what I used to do the full body tracking:
https://drive.google.com/file/d/1Dju...ew?usp=sharing

You just have to change getControllerList to getTrackerList in vizconnect. If you want to change the offsets, you also have to do that manually in the code. The way it's set up in this vizconnect is Right Hand, Left Hand, Left Foot, Right Foot, and Pelvis (with the lights facing towards you on the trackers). Also, note that you don't want to press "merge" if running the vizconnect GUI afterwards. Let me know if that works for you. In the next version of Vizard the ViveTrackers will be able to be added as their own tracker.
Reply With Quote
  #4  
Old 06-13-2018, 02:39 PM
Vaquero Vaquero is offline
Member
 
Join Date: Nov 2015
Posts: 62
Thanks a lot for sharing! I was going to figure out the offsets later this week, and your setup will hopefully be a good starting point.
I didn't know about the merging causing issues, so thanks again for this information.
Good to know, that there'll be a next version. I wasn't sure about that since you released Vizible.
Reply With Quote
Reply

Tags
full body, htc vive, inverse kinematics, tracking

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


All times are GMT -7. The time now is 03:00 AM.


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