- This topic has 5 replies, 4 voices, and was last updated 4 years, 4 months ago by .
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
- You must be logged in to reply to this topic.
Home › Forum › SOFA › Programming with SOFA › Simulating Geomagic Touch
Tagged: 64_bits, geomagic, Plugin_Geomagic, SOFA_2006, Windows_10
Hi Community,
I do not have access to a Geomagic Touch device, a situation because of CoVid-19 pandemic.
I was thinking is it somehow possible to map mouse interaction with a deformable model in such a way that I just log the forces, or render a heat map on the surface of the deformable model to show forces. There is Geomagic Emulator developed, and I tried the emulator scene. I observed that it just mirrors the movement of a real Geomagic touch device to the virtual in-scene haptic device, and can work only when a Geomagic Touch is connected.
Any suggestions in this direction will be helpful.
Hi,
I’m sorry, the geomagic Emulator is still work in progress. But it doesn’t need a Geomagic tool to be connected, you just need the OpenHaptics library.
Then it is possible to use the key to move the virtual tip.
If you wnat to use the mouse I would recommand to use a MechanicalStateController. There is an example scene.
Best regards,
Hi, @epernod. I’m also working on Geomagic Touch. And I started with the example scenes under the `application/plugins/Geomagic/scenes/xxx.scn’.
If I want to show the interaction forces between tools controlled by the haptic device and soft body (liver). How should I do it?
I tried to add a monitor component in the ‘liver.scn’, but It doesn’t work.
Best wishes,
Peng Yu
Hi,
there is no direct way to display the force vector sent to the haptic tool. As the haptic and the rendering loops do not have the same frequency, it won’t be accurate to draw this force.
However, in runSofa you can see the interaction between the tool and the colliding object through View pannel, Behavior->Interactions
Best,
Erik
Hi @epernod,
Thanks for your reply.
If drawing haptic force is not a good idea, can I export the haptic force into a file?
How can I make it in the .sce file?
Best,
Peng Yu
Hi @rainvector
If you are using a LCPForceFeedback you can see line 329 of the LCPForceFeedback.inl that it computes the forces from the ConstraintProblem. If you want to access it, make it a Data and expose it.
I hope this helps
Hugo
WARNING
The forum has been moved to GitHub Discussions.
Old topics and replies are kept here as an archive.