File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
gz-sim-yarp-plugins-check-model Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 1
1
find_package (GTest REQUIRED )
2
+ find_package (ICUB QUIET )
2
3
3
4
add_subdirectory (forcetorque )
4
5
add_subdirectory (imu )
Original file line number Diff line number Diff line change @@ -17,6 +17,16 @@ gsyp_add_tutorial_model_check(forcetorque-model-one-sensor forcetorque/model_one
17
17
gsyp_add_tutorial_model_check (forcetorque-model-two-sensors forcetorque/model_two_sensors/model2sensors.sdf )
18
18
gsyp_add_tutorial_model_check (single-pendulum single_pendulum/model.sdf )
19
19
20
+ if (ICUB_FOUND )
21
+ option (ENABLE_COUPLED_PENDULUM_TEST "Enable coupled pendulum tests that require ICUB" ON )
22
+ else ()
23
+ set (ENABLE_COUPLED_PENDULUM_TEST OFF )
24
+ endif ()
25
+
26
+ if (ENABLE_COUPLED_PENDULUM_TEST )
27
+ gsyp_add_tutorial_model_check (coupled-pendulum coupled_pendulum/model.sdf )
28
+ endif ()
29
+
20
30
# Then check that the command correctly exit a failure if we pass it a invalid model
21
31
add_test (NAME gz-sim-yarp-plugins-check-model-fails-as-expected-with-wrong-world-file
22
32
COMMAND gz-sim-yarp-plugins-check-model --world-file ./world_with_robotinterface_with_non_existing_filename.sdf
You can’t perform that action at this time.
0 commit comments