From fe2d9d2c29f66888ec253a60ca3af4998329182b Mon Sep 17 00:00:00 2001 From: Frederick Roy Date: Tue, 24 Sep 2024 23:28:28 +0900 Subject: [PATCH] fix alias and missing plugin (#305) --- .../constraint/scenes/SurfacePressureConstraint.scn | 2 +- tests/component/controller/AnimationEditorTest.cpp | 3 +++ tests/component/engine/VolumeFromTetrahedronsTest.cpp | 7 ++++++- tests/component/engine/VolumeFromTrianglesTest.cpp | 3 +++ 4 files changed, 13 insertions(+), 2 deletions(-) diff --git a/tests/component/constraint/scenes/SurfacePressureConstraint.scn b/tests/component/constraint/scenes/SurfacePressureConstraint.scn index 3ce3bfc0..937afbb6 100644 --- a/tests/component/constraint/scenes/SurfacePressureConstraint.scn +++ b/tests/component/constraint/scenes/SurfacePressureConstraint.scn @@ -31,7 +31,7 @@ - + diff --git a/tests/component/controller/AnimationEditorTest.cpp b/tests/component/controller/AnimationEditorTest.cpp index 0d434321..5a1ddd36 100644 --- a/tests/component/controller/AnimationEditorTest.cpp +++ b/tests/component/controller/AnimationEditorTest.cpp @@ -59,6 +59,7 @@ using softrobots::controller::AnimationEditor ; #include using sofa::core::behavior::MechanicalState; +#include namespace softrobots { @@ -122,6 +123,8 @@ struct AnimationEditorTest : public sofa::testing::BaseTest, controller::Animati void simpleSceneTest() { + sofa::simpleapi::importPlugin("Sofa.Component.StateContainer"); + string scene = "" " " diff --git a/tests/component/engine/VolumeFromTetrahedronsTest.cpp b/tests/component/engine/VolumeFromTetrahedronsTest.cpp index 23032f8d..b40fc42e 100644 --- a/tests/component/engine/VolumeFromTetrahedronsTest.cpp +++ b/tests/component/engine/VolumeFromTetrahedronsTest.cpp @@ -63,6 +63,7 @@ using softrobots::engine::VolumeFromTetrahedrons ; #include using sofa::helper::system::DataRepository; +#include namespace softrobots { @@ -110,7 +111,11 @@ struct VolumeFromTetrahedronsTest : public sofa::testing::BaseTest, VolumeFromTe return ; } - void simpleSceneTest(){ + void simpleSceneTest() + { + + sofa::simpleapi::importPlugin("Sofa.Component.StateContainer"); + string scene = "" " " diff --git a/tests/component/engine/VolumeFromTrianglesTest.cpp b/tests/component/engine/VolumeFromTrianglesTest.cpp index 3d3646d7..2db6b8c7 100644 --- a/tests/component/engine/VolumeFromTrianglesTest.cpp +++ b/tests/component/engine/VolumeFromTrianglesTest.cpp @@ -63,6 +63,7 @@ using softrobots::engine::VolumeFromTriangles ; #include using sofa::helper::system::DataRepository; +#include namespace softrobots { @@ -113,6 +114,8 @@ struct VolumeFromTrianglesTest : public sofa::testing::BaseTest, VolumeFromTrian void simpleSceneTest() { + sofa::simpleapi::importPlugin("Sofa.Component.StateContainer"); + string scene = "" ""