Forum Replies Created
-
AuthorPosts
-
24 November 2016 at 10:05 in reply to: [SOLVED] Using Sensable plugin in custion c++ application #7963HugoKeymaster
Dear Rus,
We had many issues with Sensable.
With the Geomagic plugin, make sure to use the GeomagicDriver (and not Omni Driver anymore). See the example in applications/plugins/Geomagic/scenes/Geomagic-Demo.scn<RequiredPlugin pluginName="Geomagic"/> <GeomagicDriver name="GeomagicDevice" deviceName="Default Device" scale="1" drawDeviceFrame="1" positionBase="0 0 0" orientationBase="0 0 0 1" />
Cheers,
Hugo
24 November 2016 at 09:39 in reply to: [SOLVED] Problem with identifying the initial coordination and carving. #7962HugoKeymasterDear Mingling,
I succeeded to get the right rotation for both by writing:
... <Node name="Tooth" > <Node name="VisualModel" > <OglModel name="ToothVisualModel" fileMesh="Demos/Dentistry/data/mesh/skull_and_teeth.obj" color="white" rotation="0 180 90"/> </Node> <Node name="CollisionModel" > <MeshObjLoader filename="Demos/Dentistry/data/mesh/skull_and_teeth_coarse.obj" name="loader" rotation="0 180 90"/> ...
Let me know if it works.
About carving, please look at the links I just sent you.Best,
Hugo
24 November 2016 at 00:43 in reply to: [SOLVED] Multiple Errors when building SOFA on Win7, VS2012 #7959HugoKeymasterDear Nathol,
I never saw an error on this m_componentstate (which is a parameter in a class).
Do you need to compile SOFA yourself? You don’t want to use binaries of SOFA?Moreover, VS2012 is not supported anymore.
We are now moving at least on VS2013 and VS2015 (see the dashboard). This might be the cause of your issue.Cheers,
Hugo
24 November 2016 at 00:39 in reply to: [SOLVED] Problem with identifying the initial coordination and carving. #7958HugoKeymasterHi Mingming,
Thank you for choosing and experimenting SOFA!
We would need more detail to answer you: what scene are you talking about?
on which object did you apply the rotation ?For topological changes, please see:
- https://www.sofa-framework.org/community/forum/topic/problem-with-carving-on-rigid-tissues/
- https://www.sofa-framework.org/community/forum/topic/how-to-incise-3d-object/
Cheers,
Hugo
24 November 2016 at 00:33 in reply to: [SOLVED] How to achieve simulation of liver deformation using SOFA framework? #7957HugoKeymasterDear Lujain,
Thank you for choosing SOFA!
As you might have noticed, we already have a basic liver simulation example in examples/Demos/liver.scn. You can use this model for your research of course.However, your question “which component should I use” is too vague. In SOFA, you need to know what simulation you want to achieve. This means that you need to know what spatial an time integration you want to use. Then, I could answer your question.
Cheers,
Hugo
HugoKeymasterDear Ben,
The attached ensures that forces are exchanged and added between the constraint points with the same DOF (Vec3d with Vec3d). I guess it isn’t working since you are trying to relate Vec3d and Rigid.
I guess a solution would be to have a rigid object, one Vec3d mechanical (with one single DOF) mapped together with a RigidMapping. And finally, a AttachContraint between your 1-DOF MechanicalObject and your deformable object.
I hope I’m clear, it’s late!
Cheers,Hugo
HugoKeymasterDear Rob,
Sorry for the delay.
Indeed, SOFA would be a good choice I think. A company in the SOFA community (Anatoscope) has expertise in this field. I would advise to contact them.Best,
Hugo
24 November 2016 at 00:19 in reply to: [SOLVED] Modify fields of a node components (such as translation/rotation) from C++ API. #7954HugoKeymasterCiao Albert,
We are not that much writing scene in Cpp now, we all rather use Python.
But, to answer your question, we you have your simulation:sofa::simulation::Node::SPtr childNode = rootNode->getChild("name_of_the_child_node")
OglModel< ExtVec3f >* my_OglModel = childNode->get< OglModel < ExtVec3f > >(); my_OglModel->translation.setValue(set_here_a_Vec3_translation);
I am writing from memory, so take is as a hint,
my two cents.Hugo
HugoKeymasterHi Luigi,
What you want to do is to load a mesh ?
The cuboid is generated in the .scn file by :<Node name="Visu"> <OglModel name="Visual" position="-1 -0.5 -0.5 -1 0.5 -0.5 -1 0.5 0.5 -1 -0.5 0.5 1 -0.5 -0.5 1 0.5 -0.5 1 0.5 0.5 1 -0.5 0.5 -1 -0.5 -0.5 -1 0.5 -0.5 -1 0.5 0.5 -1 -0.5 0.5 1 -0.5 -0.5 1 0.5 -0.5 1 0.5 0.5 1 -0.5 0.5 -1 -0.5 -0.5 -1 0.5 -0.5 -1 0.5 0.5 -1 -0.5 0.5 1 -0.5 -0.5 1 0.5 -0.5 1 0.5 0.5 1 -0.5 0.5 -1 -0.5 -0.5 -1 0.5 -0.5 -1 0.5 0.5 -1 -0.5 0.5 1 -0.5 -0.5 1 0.5 -0.5 1 0.5 0.5 1 -0.5 0.5" triangles="3 1 0 3 2 1 3 6 2 3 7 6 7 5 6 7 4 5 4 1 5 4 0 1 5 1 2 2 6 5 4 7 3 4 3 0 11 9 8 11 10 9 11 14 10 11 15 14 15 13 14 15 12 13 12 9 13 12 8 9 13 9 10 10 14 13 12 15 11 12 11 8 19 17 16 19 18 17 19 22 18 19 23 22 23 21 22 23 20 21 20 17 21 20 16 17 21 17 18 18 22 21 20 23 19 20 19 16 27 25 24 27 26 25 27 30 26 27 31 30 31 29 30 31 28 29 28 25 29 28 24 25 29 25 26 26 30 29 28 31 27 28 27 24" /> <RigidMapping template="Rigid3d,ExtVec3f" rigidIndexPerPoint="0 8 8 8 8" input="@.." output="@Visual" /> </Node>
To replace the cuboid, all you need to do is to set the mesh you want to visualize in the field filename of the OglModel:
<OglModel name="VisualModel" fileMesh="path_to/my_mesh.obj"/>
and taking care of the rigidIndexPerPoint parameter in the RigidMapping.
Hope this helps,Cheers,
Hugo
HugoKeymasterHi Sen,
You can use the TopologicalChangeProcessor component as an example. Many example scenes illustrate it in example/Components/topology/TopologyModifers/.
Best regards,
Hugo
23 November 2016 at 23:43 in reply to: [SOLVED] Using Sensable plugin in custion c++ application #7951HugoKeymasterHi Ruslan,
Could you let us know about the SOFA version you are using ?
Is it the master branch ? up-to-date ?Isn’t it just the creation of your component that would require a new to allow dynamic memory allocation? I haven’t been writing a scene in Cpp for a long time, I’d rather use Python.
By the way, there is now a Geomagic plugin to interface with the haptic devices from Geomagic. You should have a look at it: https://www.sofa-framework.org/about/news/new-geomagic-plugin/
Hope this helps,
Cheers,Hugo
7 November 2016 at 17:40 in reply to: Problem while opening the sensable example- SOFA crashes while opening example #7747HugoKeymasterDear Malli,
As announced previously, we just released a Geomagic plugin dedicated to latest haptic devices Geomagic:
- pull this new plugin by updating your SOFA
- find the plugin on GitHub: sofa/applications/plugins/Geomagic/
- refer to the associated commits (747d720 and b945d51)
This plugin is compatible for both Linux and Windows.
Please, give us feedback about it!
Hope this will help you in your work,Cheers,
Hugo
7 November 2016 at 17:39 in reply to: [SOLVED] Building v16.08 sofa, errors in sensable plugin. #7746HugoKeymasterDear Minmin,
As announced previously, we just released a Geomagic plugin dedicated to latest haptic devices Geomagic:
- pull this new plugin by updating your SOFA
- find the plugin on GitHub: sofa/applications/plugins/Geomagic/
- refer to the associated commits (747d720 and b945d51)
This plugin is compatible for both Linux and Windows.
Please, give us feedback about it!
Hope this will help you in your work,Cheers,
Hugo
7 November 2016 at 17:39 in reply to: [SOLVED] Sensable plugin cannot be added into plugin manager #7745HugoKeymasterDear Cece,
As announced previously, we just released a Geomagic plugin dedicated to latest haptic devices Geomagic:
- pull this new plugin by updating your SOFA
- find the plugin on GitHub: sofa/applications/plugins/Geomagic/
- refer to the associated commits (747d720 and b945d51)
This plugin is compatible for both Linux and Windows.
Please, give us feedback about it!
Hope this will help you in your work,Cheers,
Hugo
HugoKeymasterDear Korcan,
As announced previously, we just released a Geomagic plugin dedicated to latest haptic devices Geomagic:
- pull this new plugin by updating your SOFA
- find the plugin on GitHub: sofa/applications/plugins/Geomagic/
- refer to the associated commits (747d720 and b945d51)
This plugin is compatible for both Linux and Windows.
Please, give us feedback about it!
Hope this will help you in your work,Cheers,
Hugo
HugoKeymasterDear Karthik,
As announced previously, we just released a Geomagic plugin dedicated to latest haptic devices Geomagic:
- pull this new plugin by updating your SOFA
- find the plugin on GitHub: sofa/applications/plugins/Geomagic/
- refer to the associated commits (747d720 and b945d51)
This plugin is compatible for both Linux and Windows.
Please, give us feedback about it!
Hope this will help you in your work,Cheers,
Hugo
HugoKeymasterThank you very much for your input Mermail !
Nice work.Cheers,
Hugo
HugoKeymasterHi Binesh,
There is unfortunately no doc on solvers yet. We are working (slowly) on it.
What kind of solvers would you intend to develop?
Some topics on the forum discussed shortly the solvers, but it remains very light:Cheers,
Hugo
HugoKeymasterHi Mermail,
Could you shortly detail your solution?
Thanks for sharing.Best,
Hugo
HugoKeymasterDear Mao,
Indeed, the Modeler is not provided in the binaries.
To use it, you need to use and compile the sources.
The Modeler is not sufficiently maintained to be provided in the binaries. We are working on distributing a new Tutorial application with the binaries.
Would this suit your needs?Cheers,
Hugo
HugoKeymasterThank you for sharing Jaime!
11 October 2016 at 09:49 in reply to: [SOLVED] Using a Novint Falcon with SOFA on a 64 bits architecture #7567HugoKeymasterDear Benoit,
I am very sorry you did not get an answer yet.
We are not big users of Novint Falcon in Strasbourg.Hopefully, some other SOFA developers may give some feedback about it!
Anyone ?Best,
Hugo
19 September 2016 at 17:20 in reply to: [SOLVED] Sofa (version Github) CMake V2.x backward compatibility #7490HugoKeymasterHugoKeymasterHervé,
Can you share with us an example of your scene so that I can try a workaround?
Cheers,Hugo
HugoKeymasterHi Jason,
In this case, I would rather use :
- MeshVTKLoader
- and a VTKExporter
Could you try this ?
Note: ReadState is usually used to “replay” a previous simulation whose positions where saved with a WriteState.
-
AuthorPosts