bhaptics / tact-python

Other
12 stars 9 forks source link

bHaptics Python Library Questions #2

Open westside opened 3 years ago

westside commented 3 years ago

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 commented 2 years ago

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 commented 2 years ago

@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 commented 2 years ago

@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)