Home › Forum › SOFA › Using SOFA › [SOLVED] Questions about CarvingManager & OmniSOFA
Tagged: OmniSOFA carvingmanager
- This topic has 8 replies, 4 voices, and was last updated 8 years, 9 months ago by Hugo.
-
AuthorPosts
-
4 December 2015 at 16:46 #4665ceceyangBlocked
Hello everyone,
I was trying to use Omni’s buttons to control my forceps’ open and close, and the controller I chose to use is carving manager.
Then I compiled my sofa with the carving plugin, and it was successful. But, when reading the carving manager.cpp I found it lacks of Omnievent.h. It’s very weird because if the carving manager doesn’t call Omnievent properly how could it work? How could it compiled successfully?
After inserted “#include <sofa/core/objectmodel/OmniEvent.h>” into the carving manager, my Omni button still doesn’t work.
The following 3 lines are what I used to call carvingmanager in my scene file.
<RequiredPlugin name="Carving" pluginName="SofaCarving" /> <CarvingManager omniEvent="true" active="true"/> <Point name="BoxVisualModel" tags="CarvingTool" contactStiffness="2" />
So here are my questions.
1 How could the carvingmanager compiled successfully?
2 How could the carvingmanager work? I mean there should be someone else used this plugin before, but I didn’t find anyone complain about this problem. Is it because no one uses carvingmanager for Omni Button? If so, which one I should use for Omni button better?
3 After I inserted the heater file’s path into carving manager why it still doesn’t work?
Anyone used that before? Thank you 🙂
14 December 2015 at 14:28 #4915remibessardBlockedHello,
I have checked a bit what is in the CarvingManager plugin in Sofa and launched the example scene.
It seems that it is a really old code, and the “OmniEvent.h” you talked about have been replaced by a “HapticDeviceEvent.h” since October,2011.
Are you sure that you are up-to-date with Sofa ?I was able to make the instrument carve by coupling the CarvinManager with an OmniDriver (SensablePluginin Sofa).
By doing so the OmniDriver is throwing HapticDeviceEvents (when I push the Omni button) that the CarvingManger is able to catch and let it change the value of the “active” data (which activates the carving).
I also attached the instrument to the OmniDriver with a RestShapeSpringsForceField in a way that the instrument follows the physical displacements I apply to the Phantom Omni.Let me know if you want me to send you the modified example scene.
Cheers,
-Remi
14 December 2015 at 14:58 #4916MichelBlockedHi Remi,
it is possible that our version of SOFA is a few years old. Cece and I would greatly appreciate if you could make your scene available to us. We would happily include you as an author in what we want to do, which is the development of a 7 dof virtual device triggered with a button press from a 6 dof device.
You can email me at maudette@odu.edu.
Cheers,
Michel
4 February 2016 at 13:29 #5537HugoKeymasterDear Michel @michelodu and Cece,
Remi confirmed me that he sent you the scene.
Did it help you or do you need any further support on this topic?Cheers,
Hugo
4 February 2016 at 13:55 #5541MichelBlockedHi Hugo,
we have the scene. We needed to update our SOFA installation to the newest release to run it. Cece had some problems with the build (I built the previous release for her), in that she is not seeing the menus come up. My surmise is that it’s something in the manner in which she links Qt. I am trying it on my machine to figure it out.
4 February 2016 at 13:59 #5542HugoKeymasterAlright, thanks for the feedback.
As soon as you have some info, let us know if we can further help.Best,
Hugo
4 February 2016 at 15:04 #5543MichelBlockedHi Hugo,
I’m trying to build with Qt5, and I’ve been seeing this:
Failed to load platform plugin “windows”…I’m trying to rebuild once more, after copying all dlls and plugin directories into the SOFA bin directory. Currently rebuilding now.
However, this is silly. Is there a way to specify SOFA to build using the static libraries, or is that unthinkable with Qt?
Any solutions come to mind, either with static or dynamic linking?
Michel
4 February 2016 at 16:48 #5544ceceyangBlockedDear Hugo,
As Dr.Audette said, I received his scene file, however we found the Carving plugin didn’t load properly in SOFA. Since our old sofa version is 3-years-ago, we decided to use the newest one. And now we are facing new problems.
I posted my new question in the topic: Toolbar missing, which you answered already.
Best
Cece22 February 2016 at 09:43 #5862HugoKeymasterHi Cece and Michel,
Since you succeeded in compiling SOFA on Windows, do not hesitate to let us know about your question concerning CarvingManager & OmniSOFA.
Cheers,
Hugo
-
AuthorPosts
- You must be logged in to reply to this topic.