Adjuvo / SenseGlove-API

Sense Glove API for native C++ development
https://senseglove.gitlab.io/SenseGloveDocs/native/core-api-intro.html
MIT License
15 stars 11 forks source link

SendHaptics with thumperCmd #8

Closed Ecenys closed 3 years ago

Ecenys commented 3 years ago

Hello,

@MaxLammers

I tried to use the instruction "SendHaptics(SGCore::Haptics::ThumperCmd)" in the API (it appears in the doc, image 1), but visual notifies me as an error (image 2).

I think the problem is that this instruction is not in the .h file (image 3).


Image 1: imagen


Image 2: imagen


Image 3: image3

MaxLammers commented 3 years ago

Dear Oscar,

Image 1 shows the documentation of a different kind of HapticGlove; "Fino", while image 3 is a screenshot of the "SenseGlove" header file. While both of these are HapticGloves, they have a very different implementation when it comes to their "thumper" (wrist haptics). The DK1 SenseGlove does not allow for direct control over the Thumper amplitude. Instead you send a command that activates one of 9 effects that are hard-coded in the driver circuit on the glove. While the SenseGlove class does override a SendHaptics function, as seen at the bottom of image 3, it cannot do anything with the ThumperCmd.

Based on the error with the ThumperCmd argument, I'm assuming your rightGlove in image 2 is a SenseGlove object. In that case, you'll need to send a _SGThumperCmd - an enumerator describing one of the 9 hard-coded waveforms.