-
Guillaume started the topic Cpp controller in the forum Programming with SOFA 1 year, 2 months ago
From @lakehanne on 28 January 2020 at 15 h 20 min
The Soft Robots plugin is really nice.
Is there a C++ Controller equivalent to the PythonScriptController utilized in that plugin?
Tagging you @Hugo.
-
Hugo replied to the topic in the forum Cpp controller 1 year, 2 months ago
Hi @lakehanne
Usually C++ controllers tend to disappear with the growth of the Python scripting. This is due to the fact that Python allows for an easy, live scripting providing a maximum freedom to the user. On the other hand, C++ requires C++ coding, compilation and a controller usually implements one “controlling” feature.
If you implemented…[Read more]
-
Hugo replied to the topic Extracting tetrahedron forcefield indices in the forum Programming with SOFA 1 year, 2 months ago
Hi @lakehanne
I’m glad if it helped. Can we close the topic?
Anyway, keep us posted from your progress (papers, video, pull-requests etc.)!Best,
Hugo
-
Hugo replied to the topic Extracting tetrahedron forcefield indices in the forum Programming with SOFA 1 year, 2 months ago
Dear @lakehanne
Yes the new SOFAPython plugin (using Python3 instead of Python2) allows such an implementation, you can see an example for a forcefield here.
You might have to rewrite the entire scene. We had a script translating a *.scn into a *.py (see scn2python.py script) but this was compatible for Python2.
Best,
Hugo
-
Hugo replied to the topic Extracting tetrahedron forcefield indices in the forum Programming with SOFA 1 year, 2 months ago
Dear @lakehanne
Your variable
dr_pos_vecs
will contain the field ‘position’ of your Vec3 MechanicalObject. It will therefore be a vector with a size corresponding to the number of nodes in your mesh, with 3 reals (x,y,z) for each node.
How many points does your mesh include?
What is the size returned by the MechanicalObject position vector?Best…[Read more]
-
Hugo replied to the topic Error with plugins with "SofaROSConnector" in the forum Building SOFA 1 year, 6 months ago
Hi @shuo
Let me poke Lekan with the correct forum nickname.
@lakehanne Hitss needs you help. Could you share us how you solved the problem?Best
Hugo
-
Hugo replied to the topic Citing SOFA Framework in the forum Announcements / Infos 1 year, 7 months ago
Hi @lakehanne
You are doing well asking about citing SOFA. It is maybe not clear on the website.
All info for citation is given on the Publications page.Best wishes,
Hugo
-
Hugo replied to the topic Software Engineer position in the SOFA team in the forum Announcements / Infos 1 year, 8 months ago
Hi @lakehanne
The SOFA community is made of SMEs, companies, universities and research centers. Job offers posted online are onsite positions for now. I guess it might depend on the institution. The only engineers working remotely are independent developers.
However, do not hesitate to contact any institution if one is of interest to ask about…[Read more] -
Hugo replied to the topic Dockerized Sofa + ROS 2 + SofaROSConnector etc in the forum Announcements / Infos 1 year, 8 months ago
-
Hugo replied to the topic Change default pose of scene in the forum Using SOFA 1 year, 10 months ago
Hi @lakehanne
1. I am not familiar with ROS and not sure of what you need. As I understand it, something would solve your question: either use python in which you can have global variable in your script or in xml, you can use *.pscn files (e.g. see /data/Softwares/sofa/src/master/examples/Benchmark/Performance/Bar16-fem-implicit-Vec3f.pscn or any…[Read more]
-
Hugo replied to the topic Change default pose of scene in the forum Using SOFA 1 year, 10 months ago
Hi @lakehanne
In the SOFA GUI, you have a button “Save View” allowing you to save the current camera position. This actually generates a file (*.scn.view) storing these information (position and orientation).
If you are in python, an alternative is to use an
<InteractiveCamera />
. You can find the API of InteractiveCamera here.Let me know if…[Read more]
-
Hugo replied to the topic Change default pose of scene in the forum Using SOFA 1 year, 10 months ago
Hi @lakehanne
I am glad to see that you are already using the ROS plugin from Dr. Aichele, Olalekan! Congrats.
Are you talking about changing the point of view in the scene?
Hugo