Skip to content

Plugin not found: "CosseratPlugin" #53

@0707yiliu

Description

@0707yiliu

I‘m trying to add this plugin into the SofaGym-CartStemContactScene.
When I import it into sofa without using the test selection, it's working.

And Using the SofaGym test_env.py to make env, it would feedback the error like:

[ERROR] [RequiredPlugin(SofaPlugins)] Plugin not found: "CosseratPlugin"

Failed to load: ["CosseratPlugin"]

Init cartstem_config...
Init CartStem...
[ERROR] [SofaRuntime] ValueError: Object type BeamHookeLawForceField<> was not created
The object is not in the factory.

Traceback (most recent call last):
File "/home/yi/peg_in_hole/SofaGym/sofagym/env/common/rpc_client.py", line 178, in
root = init_simulation(config, _startCmd, mode='simu')
File "/home/yi/peg_in_hole/SofaGym/sofagym/env/common/../../../sofagym/env/common/simulate.py", line 50, in init_simulation
create_scene(root, config, mode = mode)
File "/home/yi/peg_in_hole/SofaGym/sofagym/env/common/../../../sofagym/env/CartStemContact/CartStemContactScene.py", line 68, in createScene
cartstem.onEnd(rootNode)
File "/home/yi/peg_in_hole/SofaGym/sofagym/env/common/../../../sofagym/env/CartStemContact/CartStemContact.py", line 55, in onEnd
self.path = cosserat(self.cartstem, path_config, name="Path", orientation=[0, 0, 0, 1], radius=0.5)
File "/home/yi/peg_in_hole/SofaGym/sofagym/env/common/../../../sofagym/env/CartStemContact/../common/utils.py", line 136, in createCosserat
BeamHookeLawForce = rateAngularDeformNode.addObject('BeamHookeLawForceField',

Exception in thread Thread-2:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions