@rainvector
Active 8 months ago-
PengYu replied to the topic Simulating Geomagic Touch in the forum Programming with SOFA 9 months, 3 weeks ago
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 -
PengYu replied to the topic Simulating Geomagic Touch in the forum Programming with SOFA 10 months ago
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…[Read more]
-
PengYu replied to the topic How to attach a beam with a rigid body in the forum Using SOFA 10 months, 1 week ago
Yes, the needle and suture can move.
However, the error keeps printing in the console which would slow down the simulation.
What’ more, I find that the BilaterialConstraints don’t work. The needle and suture can move independently as shown in the image below.Best wishes,
Peng Yu -
PengYu's profile was updated 10 months, 1 week ago
-
PengYu replied to the topic How to attach a beam with a rigid body in the forum Using SOFA 10 months, 3 weeks ago
Hi @Hugo, the image shows 404 error.
And the console image is as below
After removing the FixedConstraint, the content of my scene is
[Read more]
<?xml version="1.0"?>
<Node name="root" dt="0.01" gravity="0 0 -9.81">
<RequiredPlugin name="SofaOpenglVisual"/>
<VisualStyle displayFlags="showBehaviorModels showForceFields showCollisionModels" />… -
PengYu replied to the topic How to attach a beam with a rigid body in the forum Using SOFA 10 months, 3 weeks ago
Hi @Hugo. Thanks for your reply.
I’ve deleted all FixedConstraint. But the same error occurs. -
PengYu replied to the topic Failed to load plugins when debugging in the forum Programming with SOFA 10 months, 3 weeks ago
Ok, all the above problems are solved by this PR (#1328).
-
PengYu replied to the topic Failed to load plugins when debugging in the forum Programming with SOFA 10 months, 3 weeks ago
The path of
source file
(system/PluginManager.cp) inset_property
is not complete.
The correct method is :
# D:sofasrcSofaKernelmodulesSofaHelperCMakeLists.txt line 339
set_property(SOURCE ${SRC_ROOT}/system/PluginManager.cpp APPEND PROPERTY COMPILE_DEFINITIONS_DEBUG "SOFA_LIBSUFFIX=_d" )
Then,
SOFA_LIBSUFFIX
would be defined as-d
.But what…[Read more]
-
PengYu started the topic Failed to load plugins when debugging in the forum Programming with SOFA 10 months, 3 weeks ago
I’ve successfully built the debug version of sofa. But when I tried to run
runSofa_d.exe
, it can’t load plugins as below
After debugging, I found that the suffix is not got correctly.
c++
[Read more]
// PluginManager.h, line 130
std::string PluginManager::getDefaultSuffix()
{
#ifdef SOFA_LIBSUFFIX
return sofa_tostring(SOFA_LIBSUFFIX);
#else
return… -
PengYu started the topic Failed to build on Windows in the forum Building SOFA 10 months, 3 weeks ago
Hi, guys.
I’ve successfully configure and generate sofa on Windows 10, VS 2017. But when I tried to build the project. The errors shown as below:
[Read more]
Severity Code Description Project File Line Suppression State
Error MSB3191 Unable to create directory "D:sofabuildv19.12binRelease". Cannot create "D:sofabuildv19.12binRelease" because a file or… -
PengYu posted an update 10 months, 3 weeks ago
Hi @hugo, I’m a little confused about sending private messages in sofa forum. Is it ok to talk here?
-
PengYu replied to the topic How to attach a beam with a rigid body in the forum Using SOFA 10 months, 3 weeks ago
-
PengYu started the topic How to attach a beam with a rigid body in the forum Using SOFA 10 months, 3 weeks ago
Hi, everyone.
I’m working on a suturing simulation project. Then, I want to attach a flexible suture (beam) with a rigid needle by using BilateralInteractionConstraint. But the scene I created didn’t work.
The error log is
[ERROR] [MechanicalObject (mObject1)] Invalid vOp operation 1 (null (V_DERIV), 0(0), 0(0), 1)
-
PengYu replied to the topic The collision detection algorithm in suturing simualtion in the forum Using SOFA 10 months, 4 weeks ago
Hi @hugo, I am really excited to receive your reply. I would appreciate that if I have an opportunity to cooperate with you about suturing simulation.
Indeed, suturing simulation is a complex project. I’ve read some related papers of Christian Duriez and Prof. Stephane Cotin. I find that the animation loop (FreeMotion Loop) was already…[Read more]
-
PengYu posted a new activity comment 11 months ago
What do you mean something important?
-
PengYu replied to the topic Vec3d forcefield for suface mesh model with skeleton instead of Rigid3d BeamFEMF in the forum Using SOFA 11 months ago
I think hugo is clear about your question in his first answer.
The surface mesh is just a triangle mesh. According to this plugin, the force filed is BeamFEMForcefield for the blood vessels simulation. Thus, you don’t have to create tetrahedron mesh. -
PengYu started the topic The collision detection algorithm in suturing simualtion in the forum Using SOFA 11 months, 1 week ago
Hi, I saw a suture simulation demo here.
After investigating the sofa source code, I found there are only collision detections between simple primitives or triangle surface mesh (correct me if I’m wrong). However, the suture simulation application needs to know the collision between suture or needle and the volume mesh of soft tissue.
Thus, I…[Read more] -
PengYu replied to the topic How can I use python to create a scene? in the forum Using SOFA 11 months, 3 weeks ago
Hi @Sarah, thanks for your reply.
1. I can load a scene which is only defined in a python file like
houseOfCards.py
in directoryapplications/plugin/SofaPlugin/examples/
.2. I add the plugins in the warning log using
rootNode.createObject('RegquiredPlugin', pluginName='...')
, but the collision is still not work. And I want to know How can I find…[Read more] -
PengYu replied to the topic How can I use python to create a scene? in the forum Using SOFA 11 months, 3 weeks ago
@Hugo I’m still confused about creating scene using python scripts.
I have three questions.
1. Is it necessary to create a.scn
file for each scene?
2. Do I have to setRequiredPlugin
in a.scn
file?
3. In a python scripts likehouseofcards.py
, it starts fromcreateScene(node)
other thancreateScene(sofa.PythonScriptController)
. Is it o…[Read more] -
PengYu replied to the topic How can I use python to create a scene? in the forum Using SOFA 11 months, 3 weeks ago
@Hugo I’m still confused about creating scene usin python scripts.
I have two questions.
1. Is it necessary to creat a.scn
file for each scene?
2. Do I have to setRequiredPlugin
in a.scn
file?
3. In a python scripts likehouseofcards.py
, it starts fromcreateScene(node)
other thancreateScene(sofa.PythonScriptController)
. Is it ok?
According t…[Read more] - Load More