Forum Replies Created
-
AuthorPosts
-
JieYing
BlockedJieYing
BlockedThanks for the info. A code snippet would be useful if it’s not too much trouble.
Jie Ying
JieYing
BlockedThanks, 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 wondering since SOFA does have all the information, whether it’s possible to stream out RGBD frames from a particular camera view point (given the camera’s intrinsic and extrinsic properties).
Jie Ying
JieYing
BlockedHi 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 YingJieYing
BlockedHi Eugene,
I changed this line
rootNode.createObject('DefaultContactManager', name='Response', response='FrictionContact')
so that the response is FrictionContact.Hope that helps!
Jie Ying
JieYing
BlockedHi @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
BlockedTry 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
BlockedSo 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
BlockedHi 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
BlockedHi 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
BlockedHi 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 YingJieYing
BlockedYes – 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>', from='@FloorScene/Floor/mecha.position', to='@CylinderScene/Cylinder/Cyl.position')
-
AuthorPosts