Skip to content
Merged
Show file tree
Hide file tree
Changes from 60 commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
daa79ad
[lfc] Add the first Ctor unittest including cmake target
ArthurVal Jan 8, 2025
c29e357
[lfc] Add LoadEmptyParams unit-test
ArthurVal Jan 8, 2025
535e3e2
[lfc] Fix wrong merge conflics resolution (missing ')')
ArthurVal Jan 10, 2025
b7463be
[lfc] Fix merge conflict resolution (missing example- deps on lf)
ArthurVal Jan 10, 2025
2763133
[lfc] Remove example-robot-data deps
ArthurVal Jan 20, 2025
f3dfd86
[lfc] Fix wrong rebase merge conflict resolution
ArthurVal Jan 22, 2025
9ac5b1f
[lfc] Add .Load* tests templates
ArthurVal Jan 22, 2025
ed07ee4
[utils] Add individual function to create the Joint names lists
ArthurVal Jan 22, 2025
c2ce62c
[lfc] Add all Load tests with param setup
ArthurVal Jan 22, 2025
3bdf08b
[lf_controller] Refactor ModelDesc param name into PrintTo
ArthurVal Jan 23, 2025
2f2b3e1
[lfc] Fix URDF new line format
ArthurVal Jan 23, 2025
a6a947c
[lfc] Use custom type instead of tuple to set the TestParams
ArthurVal Jan 23, 2025
1bcb70b
[lfc] Refactor some names
ArthurVal Jan 24, 2025
b7f4b80
[lfc] Refactor in order to take ControllerParameters as test param
ArthurVal Jan 24, 2025
066fc36
[lfc] Add missing header
ArthurVal Jan 24, 2025
2377b52
[lfc] Use GTest EXPECT_PRED with matchers
ArthurVal Jan 24, 2025
2233bb0
[lfc] Fix missing FailsToLoad() call
ArthurVal Jan 24, 2025
1bcf3cc
[lfc] Refactor Predicates names
ArthurVal Jan 24, 2025
8e11682
[lfc] Add test to Refs size mismatches
ArthurVal Jan 24, 2025
257878e
[lfc] Add valid SetInitialState tests
ArthurVal Jan 24, 2025
f9b2be0
[lfc] Rename SizeMismatchInternal to SizeMismatch
ArthurVal Jan 24, 2025
919f5e0
[lfc] Add Nan test to set_initial_state
ArthurVal Jan 24, 2025
bd6c71a
[lfc] Rename Loads -> Load + Add tempalte ComputeControl
ArthurVal Jan 24, 2025
c9b1b31
[utils] Remove useless static assert from mutation
ArthurVal Jan 24, 2025
c376199
[lfc] Disable SetInitialStateSpecialDouble test
ArthurVal Jan 27, 2025
216e6e3
[lfc] Add additional expectations in SetInitialState
ArthurVal Jan 27, 2025
6061fa4
[lfc] Add RMB ptr expectations on Load* tests
ArthurVal Jan 27, 2025
fc369c0
[lfc] Refactor DoNot predicate into utils/core
ArthurVal Jan 27, 2025
ae9d308
[pd_controller] Refactor the expected computation of compute_control
ArthurVal Jan 27, 2025
ce63362
[pd_controller] Rename Expected* function
ArthurVal Jan 27, 2025
f90b3fc
[lfc] Rename SizeMismatch PRED
ArthurVal Jan 27, 2025
3658a32
[pd_controller] Force the Eigen type return by ExpectedPD* function
ArthurVal Jan 27, 2025
9ffe30f
[pd_controller] Fix missing function rename
ArthurVal Jan 27, 2025
194e4d7
[lfc] Implements ComputeControl test (still miss gravitation stuff)
ArthurVal Jan 27, 2025
a352cbc
[lfc] Update ComputeControl test with weighted computation
ArthurVal Jan 27, 2025
3551eb6
[lfc] Minor update on the ComputeControl test
ArthurVal Jan 27, 2025
28e57ee
[lfc] Alias the time_point and use the clock from it
ArthurVal Jan 27, 2025
6b49775
[lfc] Update LoadSizeMismatch test
ArthurVal Jan 27, 2025
7569b83
[utils] Replace `#pragma once` with include guards
ArthurVal Jan 30, 2025
e4bb0ec
[lfc] Rename transition to pd_timeout
ArthurVal Jan 30, 2025
261d2c2
[lfc] Remove the Weights related lambdas
ArthurVal Jan 30, 2025
45a2024
[lfc] Remove core.hpp
ArthurVal Jan 30, 2025
403bf30
[utils] Reorder the ExpectedLFController* function args
ArthurVal Jan 30, 2025
ef1e61a
[lfc] Use 5e-6 as double comparison espilon
ArthurVal Jan 30, 2025
2bde3b2
[lfc] Add doc to the functions used to create the predicates
ArthurVal Jan 30, 2025
5d7048d
[lfc] Rename ComputeControl to ComputeControlWithoutGravity
ArthurVal Jan 30, 2025
eb847a2
[utils] Refactor MakePairOfNamesFrom as factory of JointNamesPair
ArthurVal Jan 31, 2025
90cafad
[lfc] Move define on top of the file
ArthurVal Jan 31, 2025
39981c4
[lfc] Use TimePoint directly
ArthurVal Jan 31, 2025
3df7a5e
[lfc] Add templates for the missing tests
ArthurVal Jan 31, 2025
91c2392
[lfc] Refactor all test data construction
ArthurVal Jan 31, 2025
8febf09
[lfc] Remove wrong input ComputeControl tests
ArthurVal Jan 31, 2025
6b7ea9f
[lfc] Merge With/Without GRavity stuff into ComputeControl
ArthurVal Feb 3, 2025
79233e7
[lfc] Update gravity_compensation SCOPE_TRACE format
ArthurVal Feb 3, 2025
fceb0e0
[lfc] Remove PRED stuff (easier to understand for reviewers)
ArthurVal Feb 4, 2025
2128ac3
[utils] Use vector ctor directly instead of .resize() call
ArthurVal Feb 6, 2025
df17605
[utils] Remove FIXME - Confirmed used of controlled joints for gains
ArthurVal Feb 6, 2025
e909f4d
[utils] Use const within range-for loop
ArthurVal Feb 6, 2025
68bbca2
[lfc] Rename wrong variable name to be more explicits
ArthurVal Feb 6, 2025
46ed05a
[lfc] Remove side effect checks for SetInitialState
ArthurVal Feb 6, 2025
82873e9
[lfc] Use random number when appending to vectors
ArthurVal Feb 6, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ if(BUILD_TESTING)

ament_auto_add_gtest(test_lf_controller tests/test_lf_controller.cpp)
target_link_libraries(test_lf_controller ${PROJECT_NAME})

ament_auto_add_gtest(test_linear_feedback_controller
tests/test_linear_feedback_controller.cpp)
target_link_libraries(test_linear_feedback_controller ${PROJECT_NAME})
endif()

#
Expand Down
22 changes: 5 additions & 17 deletions tests/test_lf_controller.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include <sstream>
#include <string_view>
#include <tuple>

Expand Down Expand Up @@ -234,23 +235,10 @@ INSTANTIATE_TEST_SUITE_P(
{.name = "l12"},
},
})),
[](auto&& info) {
std::string str;
if (info.param.has_free_flyer) {
str.append("FreeFlyer_");
}

str.append(std::to_string(size(info.param.joint_list)));
str.append("_Joints");

for (const auto& [name, type] : info.param.joint_list) {
str.append("_");
str.append(name);
str.append("_");
str.append(ToString(type));
}

return str;
[](const auto& info) {
std::stringstream stream;
PrintTo(info.param, &stream, {.as_param_name = true});
return stream.str();
});

} // namespace
Loading