PDA

View Full Version : 5DT Glove Two Hands


rmcconnell11
11-06-2014, 09:03 AM
Hey guys, having trouble getting my two gloves connected at the same time on my vizsetupcfg script. However they seem to work ok when I added an extra glove to the example script for the 5DT Glove.

I just cannot figure out where I am going wrong in the main setup script, I've played about with everything I can think of.

I have attached the two scripts as PDF documents, so hopefully someone can read through it for me!

Jeff
11-10-2014, 03:35 PM
There's several locations in the setup file where it attempts to connect to the gloves. Try removing all the 5DT related code except from within the createCustomComposite function.

If you're using Vizard 5, I would recommend using Vizconnect to create a configuration file.

rmcconnell11
11-11-2014, 04:19 AM
Hi Jeff,

Thanks for the reply. I will try your suggestions after lunch :) Although I have tried using vizconnect, the problem I seem to be having is that Vizard doesn't recognize the two gloves separately.

For example, I connect the right hand on it's own and the fingers move as mine move. I connect the left hand on it's own and the fingers move as mine move. I connect both together and depending on the last port defined both hands move together. I don't even change the USB Ports that were defined for the individual gloves, and if I use the tutorial for the 5DT glove then they will move separately.

rmcconnell11
11-11-2014, 06:32 AM
Hey, got it working!! Played about with the setup file and the information you gave me. In the end I just needed to define the ports and add the 5dt file outside of the createcomposite, I was just defining the ports.

Although it'd be nice to do the same on the vizconnect, but it's not a major concern!

Jeff
11-11-2014, 03:52 PM
Try adding two 5dt data glove inputs in Vizconnect and save the configuration file. It's fine if only one shows a connection at this time. Close down Vizconnect and open the config file in the Vizard GUI and find the initInputs section. You'll see code for data_glove and data_glove2. In the data_glove2 section change:

__main__.PORT_5DT_USB = 0

to:

__main__.PORT_5DT_USB = 1

Then run the config file and see if both gloves connect.

rmcconnell11
11-12-2014, 03:14 AM
Hey Jeff, Thanks I got it working!! :)

rmcconnell11
11-13-2014, 06:44 AM
Ok back to having the same/similar problem.....


So gloves work perfect on the vizsetup file. To create my virtual world I use viztracker, which then uses vizsetup.... without changing any thing if i run the script...it won't connect to the gloves

** ERROR: Failed to connect to 5DT glove on COM1

Then if I put the port definitions and glove additions into the create composite command in vizsetup, same error

** ERROR: Failed to connect to 5DT glove on COM1

So now i have tried defining the ports and adding the gloves in the main script, but for some reason it has went back to reading only one glove for both hands