Closed Barbany closed 1 year ago
Hi,
It seems to be a problem with the visualization. We made some changes in the last RP last night. Can you update and test to see if the problem still exists?
Cheers,
Etienne
Thanks for your solutions! It looks like it works so I'll close the issue.
Just for the record and in case it is useful for you: I had to do some modifications for the code to work:
splib
to splib3
to use the package inside https://github.com/SofaDefrost/STLIB.sofagym/header.py
.
With these changes the simulation seems to work (example with cartstemcontact-v0`):
However, I get the following error
[ERROR] [RequiredPlugin(SofaPlugins)] Plugin not found: "SofaGeneralRigid"
Plugin not found: "SofaSparseSolver"
Plugin not found: "SofaSimpleFem"
Plugin not found: "SofaTopologyMapping"
Plugin not found: "SofaEngine"
Plugin not found: "SofaGeneralLinearSolver"
Plugin not found: "SofaRigid"
Plugin not found: "SofaGeneralAnimationLoop"
Plugin not found: "SofaBoundaryCondition"
Plugin not found: "SofaConstraint"
Plugin not found: "SofaMiscCollision"
Plugin not found: "SofaPreconditioner"
Plugin not found: "SofaDeformable"
Plugin not found: "SofaGeneralEngine"
Plugin not found: "SofaImplicitOdeSolver"
Plugin not found: "SofaMeshCollision"
Plugin not found: "SofaOpenglVisual"
Plugin not found: "SofaLoader"
Plugin not found: "SofaGeneralLoader"
Failed to load: ["SofaGeneralRigid", "SofaSparseSolver", "SofaSimpleFem", "SofaTopologyMapping", "SofaEngine", "SofaGeneralLinearSolver", "SofaRigid", "SofaGeneralAnimationLoop", "SofaBoundaryCondition", "SofaCo nstraint", "SofaMiscCollision", "SofaPreconditioner", "SofaDeformable", "SofaGeneralEngine", "SofaImplicitOdeSolver", "SofaMeshCollision", "SofaOpenglVisual", "SofaLoader", "SofaGeneralLoader"]
Removing all packages in RequiredPlugin of `sofagym/header.py` except the Shader added in (2) seems to have no effect in the simulation and get rid of the command line error.
Besides, I also got:
[ERROR] [RequiredPlugin(SofaPlugins)] Plugin not found: "SofaRigid"
Plugin not found: "SofaLoader"
Failed to load: ["SofaRigid", "SofaLoader"]
[ERROR] [SofaRuntime] ValueError: Object type BeamHookeLawForceField<> was not created
The object 'BeamHookeLawForceField' is not in the factory.
But the following exits:
: BeamFEMForceField (71% match)
: LinearForceField (63% match)
: SphereForceField (63% match)
: HexahedralFEMForceField (62% match)
: TorsionForceField (61% match)
: FrameSpringForceField (60% match)
which I solved by doing the change:
in `sofagym/utils.py`.
After a clean installation following the README, I run
python test_env.py
and got the following error regarding the GLSLShader and the viewport:On a side note, it looks like the signature of
Animation
insplib3.animation.animete
changed and now requires arealTimeClock
boolean as argument.