Skip to content
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

bHaptics Python Library Questions #2

Open
westside opened this issue May 24, 2021 · 3 comments
Open

bHaptics Python Library Questions #2

westside opened this issue May 24, 2021 · 3 comments

Comments

@westside
Copy link
Contributor

I've purchased the X40 Tactsuit and had a couple questions about sending it motor commands using the dotframe and the pathframe via the examples or commented out code left in haptic_player.py.

Dotframe:
I have not gotten this example to work yet. Whenever I run it, it elicits no response from the tactsuit. Is this outdated code or is there an issue on my side?

Pathframe:
What do the "X", "Y", measurements refer to? How do you define a path, and once it is defined does it turn on every motor in between as it travels along that path or does it activate all of the motors simultaneously? The bHaptics Designer video alludes to the former and shows the motors activating along the path both at constant speed and constant time. I'm having some trouble getting the pathframe to work via the shown Python code.

Generally:
Is it possible to send multiple dotframe points to vibrate at once instead of individually like shown in haptic_player.py? How do you define a path, and what response does it elicit from the motors along the path?

I also assume that 100 is the maximum intensity but haven't seen that defined anywhere.

@sabdi1
Copy link

sabdi1 commented Oct 19, 2021

Hello @westside,

I have the same questions, in particular with regards to the ability to vibrate more than one tactor at once.

Have you been able to make any progress on this?

I'm not getting much feedback from the developers.

Thanks,

@grantjohnson13
Copy link

@sabdi1 Did you ever get that working? I have been trying for days but can not manage to get more than one motor vibrating at once.

@grantjohnson13
Copy link

@sabdi1 I actually just found the answer, instead of looping through and submitting multiple dots, submit them all at the same time like this .
player.submit_dot("backFrame", "VestBack", [{"index": 0, "intensity": 100},{"index": 19, "intensity": 100}], durationMillis)

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

3 participants