Skip to content

TactGlove examples #24

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
westside opened this issue Apr 27, 2023 · 9 comments
Open

TactGlove examples #24

westside opened this issue Apr 27, 2023 · 9 comments

Comments

@westside
Copy link
Contributor

No description provided.

@addy1997
Copy link

addy1997 commented Apr 27, 2023

Hi @westside ,

The examples in this repository only support 5 positions, i.e., [VestFront, VestBack, Head, ForearmL
ForearmR] but no position for the tact gloves.

I checked another repository and found this file with the position 'Hand'. Can this be used to create an example for tactGloves?

Thanks,
Adwait

@addy1997
Copy link

addy1997 commented May 1, 2023

@westside could you please add a working example of detecting the haptic gloves? It's really tedious to understand how this library can be used without an example. Please do so.

@westside
Copy link
Contributor Author

westside commented May 1, 2023

sorry for the delay. will be ready in 24 hours.

@westside
Copy link
Contributor Author

westside commented May 2, 2023

@addy1997 Hi, just added svelte and react sample.

https://github.com/bhaptics/tact-js/tree/main/samples

@westside westside closed this as completed May 2, 2023
@addy1997
Copy link

addy1997 commented May 2, 2023

@addy1997 Hi, just added svelte and react sample.

https://github.com/bhaptics/tact-js/tree/main/samples

Hey @westside,

Thank you so much for this. Do you have an example that shows the connection between the Haptic Gloves? Actually, this example considers [VestFront, VestBack, Head, ForearmL
ForearmR] only. I can't see any positions for GloveR or GloveL

@westside
Copy link
Contributor Author

westside commented May 2, 2023

@addy1997 Not sure what you mean "the connection between the Haptic Gloves" Can you explain more about this?

@addy1997
Copy link

addy1997 commented May 3, 2023

Okay, @westside I'll put it as simply as I can.

I have two simple questions:

  1. How to use this library tact-js with TactGloves?

  2. How to develop WebXR API to integrate with Meta Quest 2 in WebXR?

I would really appreciate it if you can answer these questions.

Thanks

@westside
Copy link
Contributor Author

westside commented May 3, 2023

Just updated README.md.

  1. you can use like below
var key = 'dot';
var position = 'GloveL'
var points = [{
    index : 10,
    intensity : 100
}];
var durationMillis = 1000; // 1000ms
var errorCode = tactJs.submitDot(key, position, points, durationMillis);
var key = 'path';
var position = 'GloveR'
var points = [{
    x : 0.5,
    y : 0.5,
    intensity : 100
}];
var durationMillis = 1000; // 1000ms
var errorCode = tactJs.submitPath(key, position, points, durationMillis);
  1. I don't have much knowledge on WebXR. As I said you before, this library is only works for Windows platform.

@westside westside reopened this May 3, 2023
@westside
Copy link
Contributor Author

westside commented May 3, 2023

I'm not sure what javascript UI frameworks familiar with you, but this seems to be good starting point.

https://github.com/pmndrs/react-xr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants