Forum Replies Created
-
AuthorPosts
-
HugoKeymaster
Hi @brunob81hk
For your information, a plugin has recently been released by @froy : SOFA GLFW. This plugin now brings a simple GUI based on GLFW in SOFA. The PR #2062 integrates it within SOFA (subdir) so that you can run :
./runSofa -g glfw
Regarding your problem, I am sure @froy would be able to help. Sorry I am not myself an expert in rendering paths. I guess here the openGL path and GLFW path are not always compatible.
I hope this helps already a bit.
BestHugo
HugoKeymasterHi @sergiopm23
Sorry for the latency.
Yes there is, you should find in the SofaPython3 plugin an example folder containing two examples:
– emptyController.py
– example-scriptcontroller.pyHope this helps.
Best wishesHugo
HugoKeymasterDear @arsalan
If by virtual commissioning, you mean perform a simulation of a virtual version of your mechanical system, yes. Could you elaborate a bit more about your expectations?
Best wishes,
Hugo
HugoKeymasterYou are using a SOFA binary which have been compiled using python3.7, you have the python3.8 installed on your machine.
You need to install the 3.7 version as stated here.
Best wishes
Hugo
HugoKeymasterCiao @chiarasapo
Sorry for keeping you waiting, the organization of the STC#11 is keeping us busy.
Thank you for your feeback.
Would you be able to make us a video of your interaction?
Could you try to activate the View option “Interaction” and “Collision Models” (in the left hand side panel)?
Do you have an idea of the approximate volume of your object?
If I compare to the scene Geomagic-RigidSkull.scn I see that the VectorSpringForceField are missing, right?Best,
Hugo
HugoKeymasterHi @pasquale94
You are referring to a private plugin. This does therefore not make sense to discuss it here. I close the topic. We keep in touch anyway 😉
Hugo
31 May 2021 at 23:16 in reply to: During installation of sofa in Cmke-gui I have got following Configuration error #19615HugoKeymasterHi @dinary
I think the answer is in the error: you are missingsystem filesystem program_options. I think it found the headers but not the libs. As suggested on this forum, you need to set
BOOST_ROOT
orBoost_DIR
How did you install boost?
Best wishes,
Hugo
HugoKeymasterHi @SergioPM23,
1) If you want to compile yourself (as you mentioned in the first place), you must make sure that you use the same compatible branches for SOFA and the SofaPython3 plugin (like v20.12 branch for both or the master branch for both).
Then, once SOFA is compiled and installed, when compiling your SofaPython3 plugin out-of-tree, you will need to define the path to the SOFA install dir in the variable CMAKE_PREFIX_PATH. All the installation steps are detailed here for SofaPython3.
2) An alternative is to use the binaries. SofaPython3 is already compiled and shipped with these binaries. How to use it? Please see the associated page here.
Best wishes,
Hugo
HugoKeymasterHi @zaread
When does this error occur? At the loading of the plugin SoftRobots? at the launching of the step5.pyscn file?
Best
Hugo
HugoKeymasterDear @zilinsi
Did you compile both SOFA and SofaPython3 yourself from sources? or did you use the binary distributed on our download page?
Best,
Hugo
HugoKeymasterFirst of all, sorry for the delay. We are kept busy with the organization of the STC#11.
Have you tried this example of a controller: example-scriptcontroller.py or emptyController.py? I will investigate the issue with the keyEvent.py (due to Sofa.constants)
Best wishes,
Hugo
HugoKeymasterDo not forget to keep us posted in this forum thread as well about your progresses!
Looking forward to hearing from you again.
Best,Hugo
HugoKeymasterCiao @chiarasapo
Thanks for sharing your code, it helps in assisting you!
I did not test it because I do not have the Geomagic plugin compiled here.But could you try to set a data compliance in the UncoupledConstraintCorrection of the skin :
skin.addObject('UncoupledConstraintCorrection', compliance=0.001)
and tell me if it moves?
If it works I would explain 😉Hugo
HugoKeymasterHi @brunob81hk
Sorry but by reading throughout the topic again, I realize your purpose is to build a connector between an interface and a virtual object in the scene.
The way we usually do it is by building a C++ driver component (recovering information from your interface). As being a SOFA component, this driver has Data which a mechanical object could then be linked against.
Could you take a look at the Geomagic plugin (especially the class GeomagicDriver)?
Best
Hugo
HugoKeymasterYou can follow this documentation page. step by step.
All info is in it.
Let us know if a section is unclear.Hugo
HugoKeymasterHi @aryakarani
The kind of ConstraintCorrection you use will affect how the compliance matrix W is built. As you can see from the equation:
W is homogeneous to A-1. In mechanics, A mostly include the mass and possibly stiffness matrix. Therefore, when using the UncoupledConstraintCorrection which is simplifying W as a diagonal constant matrix, I proposed to set the compliance to 1/mass_per_vertex. Do you see my point?
Regarding your scene, it is strange to me to set your floor as a child of the deformable object. Can you share your scene and explain what you expect from your simulation (deformable object / floor)?
Hugo
HugoKeymasterHi @anthony
You can follow Chris advice. The error seems to assume that the dll is not in the given path. Can you see it?
Hugo
HugoKeymasterOla @sergiopm23
Are you using the binary version of SOFA (if so which version) or the sources compiled yourself (if so which branch)?
Now, you downloaded the SofaPython3 plugin sources. On which branch are you currently?
My questions will help me confirming that it is a compatibility problem between your SOFA and your SofaPython3 plugin.
Best,Hugo
HugoKeymaster8 May 2021 at 18:24 in reply to: During installation of sofa in Cmke-gui I have got following Configuration error #19416HugoKeymasterNo but you may have to specify this path where you installed boost in the CMake configuration step.
Best wishes,Hugo
HugoKeymasterYes, using a controller in python you will be able to do so.
You have an example of it here: https://github.com/sofa-framework/SofaPython3/blob/master/examples/emptyController.pyThe documentation about the SofaPython3 plugin is available here.
Best
Hugo
HugoKeymasterHugoKeymasterSince January 2021, we moved to the SofaPython3 plugin which allow to use SOFA with python3 and from a python3.* environment.
Scenes are written in a slightly different way. You can find a list of examples in SofaPython3/examples/.
You can especially look at :
– basic.py
– basic-GUI.py
– example-scriptcontroller.pyBest
Hugo
7 May 2021 at 23:25 in reply to: During installation of sofa in Cmke-gui I have got following Configuration error #19407HugoKeymasterAs CMake is outputting in the error message you need to install boost.
It appears in the required dependencies.Boost must be with version >= 1.65.1
Download and install latest Boost from https://boost.teeks99.com.
– Users with Windows 64-bit and VS 2019: choose boost_X_X_X-msvc-14.2-64.exe
– Users with Windows 64-bit and VS 2017: choose boost_X_X_X-msvc-14.1-64.exe
– Users with Windows 32-bit and VS 2019: choose boost_X_X_X-msvc-14.2-32.exe
– Users with Windows 32-bit and VS 2017: choose boost_X_X_X-msvc-14.1-32.exeBest wishes,
Hugo
HugoKeymasterHi @jjcasmar
As said on Gitter, you can give a look at Jean Nicolas’ work in Caribou : https://github.com/jnbrunet/caribou/tree/master/src/SofaCaribou/Solver
I think it is pretty close to what you are looking for.
Could you keep us posted about your journey?Best
Hugo
-
AuthorPosts