Skip to content

Commit

Permalink
rebase on top of master
Browse files Browse the repository at this point in the history
  • Loading branch information
mebbaid committed Jan 10, 2024
1 parent aba51f0 commit c6d76e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ReducedModelControllers/tests/StableCentroidalMPCTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ TEST_CASE("StableCentroidalMPC")
std::chrono::nanoseconds currentTime = 0s;
auto phaseIt = phaseList.getPresentPhase(currentTime);

constexpr int simulationHorizon = 10;
constexpr int simulationHorizon = 30;
std::vector<Eigen::Vector3d> comTrajectoryRecedingHorizon;
for (int i = 0; i < simulationHorizon; i++)
{
Expand Down Expand Up @@ -377,7 +377,7 @@ TEST_CASE("StableCentroidalMPC")
const auto& [com, dcom, angularMomentum] = system->getState();

// We check that the robot walked forward keeping the CoM height almost constant
REQUIRE(com(0) > 0.05);
REQUIRE(com(0) > 0.1);
REQUIRE(std::abs(com(1) - com0(1)) < 0.1);
REQUIRE(std::abs(com(2) - com0(2)) < 0.005);
}

0 comments on commit c6d76e5

Please sign in to comment.