- This topic has 7 replies, 5 voices, and was last updated 8 years, 5 months ago by .
Viewing 7 posts - 1 through 7 (of 7 total)
Viewing 7 posts - 1 through 7 (of 7 total)
- You must be logged in to reply to this topic.
Home › Forum › SOFA › Using SOFA › [SOLVED] Omni Buttons Controller
I am using SOFA to build a model of Blaksley Forcpes, and trying to use Phantom Omni’s two buttons to control the Forceps’ open and close.
I ‘d like to play with SOFA mouse functions for the beginning, so is there anyone has examples about it? Or functions about Omni’s two buttons?
Thank you very much for your kind support.
I moved the topic to “Using SOFA”, sorry for the inconvenience.
Thank you 🙂
Dear Cece,
I am no expert about the Omni control. I know there is the Sensable plugin in SOFA which proposes an OmniDriver and handles the control of the buttons. You can find several examples in “sofa/applications/plugins/Sensable/examples/”.
Hope this helps. If not, recontact us, we will give you the contact of people working on similar problems.
Cheers,
Hugo
I think the most relevant plugins are: Sensable , SofaCarving. Try all examples in them.
You should handle the HapticDeviceEvent
(1) in OnAnimateBeginEvent of OmniDriver, send out HapticDeviceEvent (already implemented). If you are using NewOmniDriver, you may need to add codes to send out HapticDeviceEvent.
(2) in your plugin/component/class, add function handleEvent, and catch the HapticDeviceEvent. Refer to CarvingManager.cpp for example.
Hope this could help.
regards,
Weng Bin
The thread is now closed.
Do not hesitate to post a new thread for any new questions about interactions in SOFA.
Best,
Hugo
WARNING
The forum has been moved to GitHub Discussions.
Old topics and replies are kept here as an archive.