Skip to content

Commit

Permalink
short sim time for unit mem check test
Browse files Browse the repository at this point in the history
  • Loading branch information
mebbaid committed Nov 7, 2023
1 parent c54b8bd commit 17b1a0f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
All notable changes to this project are documented in this file.

## [Unreleased]
- Restructured the `ReducedModelControllers` adding the `StableCentroidalMPC` (https://github.com/ami-iit/bipedal-locomotion-framework/pull/734)

### Added
- Add the possibility to control a subset of coordinates in `TSID::CoMTask` (https://github.com/ami-iit/bipedal-locomotion-framework/pull/724, https://github.com/ami-iit/bipedal-locomotion-framework/pull/727)
- Add the possibility to set the maximum number of accepted deadline miss in `System::AdvanceableRunner` (https://github.com/ami-iit/bipedal-locomotion-framework/pull/726)
Expand Down
4 changes: 2 additions & 2 deletions src/ReducedModelControllers/tests/StableCentroidalMPCTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ TEST_CASE("StableCentroidalMPC")
std::chrono::nanoseconds currentTime = 0s;
auto phaseIt = phaseList.getPresentPhase(currentTime);

constexpr int simulationHorizon = 30;
constexpr int simulationHorizon = 10;
std::vector<Eigen::Vector3d> comTrajectoryRecedingHorizon;
for (int i = 0; i < simulationHorizon; i++)
{
Expand Down Expand Up @@ -379,7 +379,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.0);
REQUIRE(com(0) > 0.05);
REQUIRE(std::abs(com(1) - com0(1)) < 0.1);
REQUIRE(std::abs(com(2) - com0(2)) < 0.005);
}

0 comments on commit 17b1a0f

Please sign in to comment.