-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use cmake options for including optional solvers and robot models,
Move test case to subfolders for easier cmake structure
- Loading branch information
Showing
73 changed files
with
306 additions
and
246 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,77 +1,99 @@ | ||
# Controllers | ||
echo "Testing controllers ..." | ||
cd build/test/controllers | ||
cd build/src | ||
cd controllers/test | ||
./test_pid_controllers | ||
./test_pos_pd_controllers | ||
./test_pot_field_controllers | ||
cd ../.. | ||
|
||
# Core | ||
echo "Testing core library ..." | ||
cd ../core | ||
cd core/test | ||
./test_core | ||
cd ../.. | ||
|
||
# Robot Models | ||
echo "Testing robot models ..." | ||
echo "Testing RobotModelRBDL ..." | ||
cd ../robot_models/rbdl | ||
cd robot_models/rbdl/test | ||
./test_robot_model_rbdl | ||
cd .. | ||
cd ../.. | ||
if [ -d "kdl" ]; then | ||
echo "Testing RobotModelKDL ..." | ||
cd kdl | ||
cd kdl/test | ||
./test_robot_model_kdl | ||
cd .. | ||
cd ../.. | ||
fi | ||
if [ -d "pinocchio" ]; then | ||
echo "Testing RobotModelPinocchio ..." | ||
cd ../robot_models/pinocchio | ||
cd pinocchio/test | ||
./test_robot_model_pinocchio | ||
cd .. | ||
cd ../.. | ||
fi | ||
if [ -d "hyrodyn" ]; then | ||
echo "Testing RobotModelHyrodyn ..." | ||
cd hyrodyn | ||
cd hyrodyn/test | ||
./test_robot_model_hyrodyn | ||
cd .. | ||
cd ../.. | ||
fi | ||
cd .. | ||
|
||
# Scenes | ||
echo "Testing scenes ..." | ||
cd ../scenes | ||
|
||
echo "Testing VelocityScene ..." | ||
cd scenes/velocity/test | ||
./test_velocity_scene | ||
cd ../.. | ||
|
||
echo "Testing VelocitySceneQuadraticCost ..." | ||
cd velocity_qp/test | ||
./test_velocity_scene_quadratic_cost | ||
cd ../.. | ||
|
||
|
||
echo "Testing AccelerationScene ..." | ||
cd acceleration/test | ||
./test_acceleration_scene | ||
cd ../.. | ||
|
||
echo "Testing AccelerationSceneTSID ..." | ||
cd acceleration_tsid/test | ||
./test_acceleration_scene_tsid | ||
cd ../.. | ||
|
||
echo "Testing AccelerationSceneReducedTSID ..." | ||
cd acceleration_reduced_tsid/test | ||
./test_acceleration_scene_reduced_tsid | ||
cd ../../.. | ||
|
||
# Solvers | ||
echo "Testing hls ..." | ||
cd ../solvers/hls | ||
cd solvers/hls/test | ||
./test_hls_solver | ||
cd ../.. | ||
|
||
echo "Testing QPOasesSolver ..." | ||
cd ../qpoases | ||
cd qpoases/test | ||
./test_qpoases_solver | ||
cd .. | ||
cd ../.. | ||
if [ -d "eiquadprog" ]; then | ||
echo "Testing EiquadprogSolver ..." | ||
cd eiquadprog | ||
cd eiquadprog/test | ||
./test_eiquadprog_solver | ||
cd .. | ||
cd ../.. | ||
fi | ||
if [ -d "proxqp" ]; then | ||
echo "Testing ProxQPSolver ..." | ||
cd proxqp | ||
cd proxqp/test | ||
./test_proxqp_solver | ||
cd .. | ||
cd ../.. | ||
fi | ||
if [ -d "qpswift" ]; then | ||
echo "Testing QPSwiftSolver ..." | ||
cd qpswift | ||
cd qpswift/test | ||
./test_qpswift_solver | ||
cd ../../.. | ||
cd ../.. | ||
fi | ||
cd .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 4 additions & 3 deletions
7
test/controllers/CMakeLists.txt → src/controllers/test/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
add_executable(test_pot_field_controllers test_pot_field_controllers.cpp ../suite.cpp) | ||
find_package(Boost COMPONENTS system filesystem unit_test_framework serialization REQUIRED) | ||
add_executable(test_pot_field_controllers test_pot_field_controllers.cpp) | ||
target_link_libraries(test_pot_field_controllers | ||
wbc-controllers | ||
Boost::unit_test_framework) | ||
|
||
add_executable(test_pos_pd_controllers test_pos_pd_controllers.cpp ../suite.cpp) | ||
add_executable(test_pos_pd_controllers test_pos_pd_controllers.cpp) | ||
target_link_libraries(test_pos_pd_controllers | ||
wbc-controllers | ||
Boost::unit_test_framework) | ||
|
||
|
||
add_executable(test_pid_controllers test_pid_controllers.cpp ../suite.cpp) | ||
add_executable(test_pid_controllers test_pid_controllers.cpp) | ||
target_link_libraries(test_pid_controllers | ||
wbc-controllers | ||
Boost::unit_test_framework) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
find_package(Boost COMPONENTS system filesystem unit_test_framework serialization REQUIRED) | ||
add_executable(test_core test_core.cpp) | ||
target_link_libraries(test_core | ||
wbc-core | ||
Boost::unit_test_framework) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
add_subdirectory(rbdl) | ||
if(USE_PINOCCHIO) | ||
if(ROBOT_MODEL_PINOCCHIO) | ||
add_subdirectory(pinocchio) | ||
endif() | ||
if(USE_HYRODYN) | ||
if(ROBOT_MODEL_HYRODYN) | ||
add_subdirectory(hyrodyn) | ||
endif() | ||
if(USE_KDL) | ||
if(ROBOT_MODEL_KDL) | ||
add_subdirectory(kdl) | ||
endif() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
test/robot_models/hyrodyn/CMakeLists.txt → src/robot_models/hyrodyn/test/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
add_executable(test_robot_model_hyrodyn test_robot_model_hyrodyn.cpp ../../suite.cpp ../test_robot_model.cpp) | ||
find_package(Boost COMPONENTS system filesystem unit_test_framework serialization REQUIRED) | ||
add_executable(test_robot_model_hyrodyn test_robot_model_hyrodyn.cpp ../../test/test_robot_model.cpp) | ||
target_link_libraries(test_robot_model_hyrodyn | ||
wbc-robot_models-hyrodyn | ||
Boost::unit_test_framework) | ||
|
Oops, something went wrong.