Skip to content

Commit

Permalink
[utils] Reorder the ExpectedLFController* function args
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurVal committed Jan 30, 2025
1 parent 9392c2a commit a808958
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/test_lf_controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ TEST_P(LFControllerTest, ComputeControl) {

const auto sensor = MakeValidRandomSensorFor(*model_ptr);
const auto control = MakeValidRandomControlFor(*model_ptr);
EXPECT_EQ(ExpectedLFControlFrom(sensor, control, *model_ptr),
EXPECT_EQ(ExpectedLFControlFrom(*model_ptr, sensor, control),
ctrl.compute_control(sensor, control));
}

Expand Down
2 changes: 1 addition & 1 deletion tests/test_linear_feedback_controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ TEST_P(LinearFeedbackControllerTest, ComputeControl) {
gains, refs, sensor.joint_state.position, sensor.joint_state.velocity);

const auto expected_lf_control =
ExpectedLFControlFrom(sensor, control, *ctrl.get_robot_model());
ExpectedLFControlFrom(*ctrl.get_robot_model(), sensor, control);

using time_point = linear_feedback_controller::TimePoint;
const time_point first_call = time_point::clock::now();
Expand Down
4 changes: 2 additions & 2 deletions tests/utils/lf_controller.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ inline auto MakeValidRandomControlFor(
}

inline auto ExpectedLFControlFrom(
const linear_feedback_controller::RobotModelBuilder& model,
const linear_feedback_controller_msgs::Eigen::Sensor& sensor,
const linear_feedback_controller_msgs::Eigen::Control& control,
const linear_feedback_controller::RobotModelBuilder& model)
const linear_feedback_controller_msgs::Eigen::Control& control)
-> Eigen::VectorXd {
Eigen::VectorXd out;

Expand Down

0 comments on commit a808958

Please sign in to comment.