Two controllers and one tracker in hand

Highlighted
R1
Contributor

Two controllers and one tracker in hand

Hello!

Is it possible to use two controllers and one tracker with in hand role at the same time and receive input data from all of them? 

@chengnay 

Vive Staff

Re: Two controllers and one tracker in hand

@R1 Are you using any plugins? SteamVR plugin? or just Unity XR?

R1
Contributor

Re: Two controllers and one tracker in hand

I'm using SteamVR Plugin and several VRTK scripts. 

Vive Staff

Re: Two controllers and one tracker in hand

By using latest SteamVR plugin and VIU v1.10.4, you should be able to get all input data.

 

Try to set your tracker to left foot or others (Do not set to Held in Hand).

Do make sure you have htc_viu tab generated in SteamVR Input window.

Please refer to the link below,

https://github.com/ViveSoftware/ViveInputUtility-Unity/wiki/SteamVR-Input-System-Compatibility

 

Let me know if you still cannot get input from tracker.

arjun
Settler

Re: Two controllers and one tracker in hand

Hey, I have a same problem. I need to access input data from two controllers (Left hand and right hand) and a tracker. So, I tried setting my tracker as "Vive tracker held in hand" which didnt work, then I tried "Right shoulder" which didnt work as well. When I disconnected my controller, the tracker immediately started working. "Right Shoulder" didnt work too! What can I do?  I havent used VIU v1.10.4 though. How can that help me? Thank you.

Vive Staff

Re: Two controllers and one tracker in hand

@arjun May I know what you have imported to your project?

SteamVR plugin? Which version? What other plugins and version?

Which VR device are you using? VIVE or VIVE Pro?

Are you able to see both controllers and tracker in compositor(Before running your app)?

arjun
Settler

Re: Two controllers and one tracker in hand

@chengnayI have imported SteamVR 2.2 and VIU v1.10.4

 

I am using HTC Vive. I am able to see both controllers and tracker in compositor.

I want to actually get input from the tracker and only track the left and right controller.

 

If its possible to get input from all three, it would be better. But most importantly, only tracker.

 

I need to use Vive controllers as Right hand and Left hand role.

What role should I assign to the tracker?

Vive Staff

Re: Two controllers and one tracker in hand

@arjun Do you mean that you can see both controllers and tracker in compositor, but you cannot see tracker after you play your app?

Are you using your own scene or you are referring to any of VIU's example scene?

For tracker, there is tracker role.

2019-06-18_105224.png

arjun
Settler

Re: Two controllers and one tracker in hand

@chengnayI can see tracker as well in the scene, but I cant get the input from tracker. I have attached an object to the tracker via pogo pins. I am not able to detect the "Trigger" when other two controllers are on. When the two controllers are off, I am able to access the "Trigger" button from the tracker. I have no issue with tracking from any of the devices.

Vive Staff

Re: Two controllers and one tracker in hand

@arjun Are you using any of VIU example scene? or you use your own scene?

Could you show me the Manager Trackers settings?

arjun
Settler

Re: Two controllers and one tracker in hand

@chengnayI am using my own scene,I used ViveRig in the hierarchy. In "Manage trackers", I have set the tracker to "Right Shoulder". I hve even tried setting it to "Vive held in Hand"(I can send the screenshot after 10 hours) I have left and right vive controllers with hand role left and right respectively.

Can you tell me  what should I set the tracker to inorder to get its input (like trigger, etc). 

No matter what I do. I am not able to gets its input unless I disconnect the controllers, but I cant do that!

Vive Staff

Re: Two controllers and one tracker in hand

@arjun When you can't get any input when both controllers are on, please try below methods.

1. Stop your app

2. Open Manage Trackers

3. Change your tracker role to others(except Held in Hand and Disabled)

4. Play your app again

On my side, I can get input after changing role for the tracker.

arjun
Settler

Re: Two controllers and one tracker in hand

@chengnayThank you! If I choose any other than "Held in Hand", only the power button works!

Vive Staff

Re: Two controllers and one tracker in hand

I use VIU's example scene(ColliderEvent) to test.

As you can see that I have two controllers and one tracker in scene view.

2019-06-19_104557.png2019-06-19_104801.png

You need to add your own tracker component in ViveColliders and ViveCurvePointers to allow your tracker to work.

You can also refer to this link to use Debug view to see whether your tracker is being pressed or touched.