-
JieYing replied to the topic Multithreading in Python in the forum Using SOFA 10 months ago
-
JieYing replied to the topic Recording images of scenes in the forum Programming with SOFA 1 year, 4 months ago
Thanks for the info. A code snippet would be useful if it’s not too much trouble.
Jie Ying
-
JieYing replied to the topic Recording images of scenes in the forum Programming with SOFA 1 year, 4 months ago
Thanks, Hugo for the introduction.
Hi Omar,
I’m also working with an Intel Realsense camera (SR300). I’m trying to check the validity of my simulation by comparing the output of the depth camera with what the simulation shows. Currently, I’m reading out the positions of my mesh and comparing that to the point cloud. This is fine, but I was…[Read more]
-
JieYing replied to the topic Recording images of scenes in the forum Programming with SOFA 1 year, 4 months ago
Hi Hugo,
Thanks for the info! Yes, that sounds exactly like what I need. I’m currently using the MeshExporter as a workaround, but it would be interesting if SOFA can simulate the point cloud from a particular camera position.
Thanks!
Jie Ying -
JieYing started the topic Recording images of scenes in the forum Programming with SOFA 1 year, 5 months ago
Hi all,
I would like to compare the behaviour of a simulated phantom and a real one. As such, I captured a RGBD images of interactions with the real camera and was wondering if I can put a virtual depth camera in the simulation. It seems like I can set the viewpoint using OpenGL viewer and SOFA’s GUI allows to recording the screenshot. Is it…[Read more]
-
JieYing replied to the topic Rigid objects passing through deformable in the forum Programming with SOFA 1 year, 5 months ago
Hi Eugene,
I changed this line
rootNode.createObject('DefaultContactManager', name='Response', response='FrictionContact')
so that the response is FrictionContact.Hope that helps!
Jie Ying
-
JieYing replied to the topic Rigid objects passing through deformable in the forum Programming with SOFA 1 year, 5 months ago
Hi @Hugo,
Sorry I lost track of this thread somehow. Thanks for your suggestion. I think I solved the problem by a) addressing the issue you mentioned of intersecting before it started and b) changing the contact response to frictioncontact. I’m not sure why default or frictionless didn’t work for me.
Jie Ying
-
JieYing replied to the topic Setting up help in the forum Getting Started 1 year, 6 months ago
Try https://www.architectryan.com/2018/03/17/add-to-the-path-on-windows-10/. If you’re not sure what your SOFA path is, you can find where you installed it by right-clicking on the shortcut you’ve been opening runSofa from, and open file location.
-
JieYing replied to the topic Setting up help in the forum Getting Started 1 year, 6 months ago
So if you add runSofa on your windows environment path, you can then call it from cmd line with your own scene, ex. runSofa <filepath>.scn.
-
JieYing replied to the topic Setting up help in the forum Getting Started 1 year, 6 months ago
Hi sayan,
You should be able to just run the sofa binaries and then you should get an executable runSofa that you can launch and start playing with the examples. The other ones are necessary for building from source code, but if you don’t need all the features, the binary files should be sufficient.
Jie Ying
-
JieYing replied to the topic Rigid objects passing through deformable in the forum Programming with SOFA 1 year, 6 months ago
Hi Hugo,
Hmm that’s weird. It works for me, even in Private Browsing mode. Could you try https://github.com/JieYingWu/sofa_dvrk/ please and go to spring_table.py?
Jie Ying
-
JieYing started the topic Rigid objects passing through deformable in the forum Programming with SOFA 1 year, 6 months ago
Hi,
I’m trying to set up a flat platform, supported by 4 springs. The platform is modelled as a rigid objects and it should reach an equilibrium where it is suspended by the spring. However, it keeps falling through the spring. Any suggestions for how to fix that or what it’s caused by? My code is at…[Read more]
-
JieYing replied to the topic Multithreading in Python in the forum Using SOFA 1 year, 6 months ago
Hi Hugo,
My messages to post full scenes keeps on being flagged as spam but I’ve uploaded my code to https://github.com/JieYingWu/sofa_dvrk/blob/master/multithread.py and the scene file i s at the corresponding https://github.com/JieYingWu/sofa_dvrk/blob/master/multithread.scn.
Thanks,
Jie Ying -
JieYing replied to the topic Multithreading in Python in the forum Using SOFA 1 year, 6 months ago
Yes – I simplified my scene so it’s only two objects, and now it shows a different error. Adding the DataExchange line breaks the simulation in Python, with the error that it is invalid syntax, but the same scene does what I’d expect as a .scn file.
rootNode.createObject('DataExchange', name='exchangeData1', template='vector<float>',…
[Read more] -
JieYing started the topic Multithreading in Python in the forum Using SOFA 1 year, 7 months ago
Hi,
Does anyone have experience running multithreading in Python. I tried to add the following
rootNode.createObject('AnimationLoopParallelScheduler', threadNumber='0')
and this gives a bunch of errors as
[ERROR] [ExecParams] [THREAD 2]: invalid ExecParams used, belonging to thread 3
and
[Read more]
[ERROR] [MechanicalObject(spring)] Invalid… -
JieYing became a registered member 1 year, 7 months ago