Skip to content

Fixes for aligator 0.15 #59

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,13 @@ source install/setup.bash

#### Dependencies

* [proxsuite-nlp](https://github.com/Simple-Robotics/proxsuite-nlp.git)
* [proxsuite](https://github.com/Simple-Robotics/proxsuite.git)
* [Eigen3](https://eigen.tuxfamily.org) >= 3.3.7
* [Boost](https://www.boost.org) >= 1.71.0
* OpenMP
* [hpp-fcl](https://github.com/humanoid-path-planner/hpp-fcl)
* [Pinocchio](https://github.com/stack-of-tasks/pinocchio) | [conda](https://anaconda.org/conda-forge/pinocchio)
* [Aligator](https://github.com/Simple-Robotics/aligator.git) devel branch
* [Aligator](https://github.com/edantec/aligator) temporary_fix branch
* [example-robot-data](https://github.com/Gepetto/example-robot-data)
* [ndcurves](https://github.com/loco-3d/ndcurves)
* (optional) [eigenpy](https://github.com/stack-of-tasks/eigenpy)>=3.9.0 (Python bindings)
Expand Down
2 changes: 1 addition & 1 deletion dependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ find_package(example-robot-data 4.0.9 REQUIRED)
ADD_PROJECT_DEPENDENCY(OpenMP REQUIRED)
ADD_PROJECT_DEPENDENCY(proxsuite REQUIRED)
ADD_PROJECT_DEPENDENCY(pinocchio REQUIRED)
ADD_PROJECT_DEPENDENCY(aligator 0.13.0 REQUIRED)
ADD_PROJECT_DEPENDENCY(aligator 0.15.0 REQUIRED)

function(get_ndcurves)
find_package(ndcurves QUIET)
Expand Down
6 changes: 1 addition & 5 deletions devel-git-deps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ repositories:
aligator:
type: git
url: git@github.com:edantec/aligator.git
version: devel
version: temporary_fix
eigenpy:
type: git
url: git@github.com:stack-of-tasks/eigenpy.git
Expand All @@ -23,7 +23,3 @@ repositories:
type: git
url: git@github.com:stack-of-tasks/pinocchio.git
version: devel
proxsuite-nlp:
type: git
url: git@github.com:simple-robotics/proxsuite-nlp.git
version: main
11 changes: 6 additions & 5 deletions include/simple-mpc/ocp-handler.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@
#include "simple-mpc/robot-handler.hpp"

#include <aligator/core/traj-opt-problem.hpp>
#include <aligator/modelling/constraints/box-constraint.hpp>
#include <aligator/modelling/constraints/equality-constraint.hpp>
#include <aligator/modelling/constraints/negative-orthant.hpp>
#include <aligator/modelling/costs/quad-state-cost.hpp>
#include <aligator/modelling/costs/sum-of-costs.hpp>
#include <aligator/modelling/function-xpr-slice.hpp>
#include <proxsuite-nlp/modelling/constraints/box-constraint.hpp>
#include <proxsuite-nlp/modelling/constraints/negative-orthant.hpp>

namespace simple_mpc
{
Expand All @@ -26,9 +27,9 @@ namespace simple_mpc
using QuadraticStateCost = QuadraticStateCostTpl<double>;
using QuadraticResidualCost = QuadraticResidualCostTpl<double>;
using StateErrorResidual = StateErrorResidualTpl<double>;
using BoxConstraint = proxsuite::nlp::BoxConstraintTpl<double>;
using NegativeOrthant = proxsuite::nlp::NegativeOrthantTpl<double>;
using EqualityConstraint = proxsuite::nlp::EqualityConstraintTpl<double>;
using BoxConstraint = BoxConstraintTpl<double>;
using NegativeOrthant = NegativeOrthantTpl<double>;
using EqualityConstraint = EqualityConstraintTpl<double>;
using FunctionSliceXpr = FunctionSliceXprTpl<double>;

#define SIMPLE_MPC_DEFINE_DEFAULT_MOVE_CTORS(Type) \
Expand Down
1 change: 0 additions & 1 deletion package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
<build_depend>doxygen</build_depend>
<depend>boost</depend>
<depend>pinocchio</depend>
<depend>proxsuite-nlp</depend>
<depend>proxsuite</depend>
<depend>aligator</depend>
<depend>std_msgs</depend>
Expand Down
2,291 changes: 1,113 additions & 1,178 deletions pixi.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pkg-config = ">=0.29.2"
libboost-python-devel = ">=1.80.0"
python = "3.11"
eigenpy = ">=3.10.1"
aligator = ">=0.13"
aligator = ">=0.15"
proxsuite = ">=0.7.2"
benchmark = ">=1.8.0"
pytest = ">=8.3.0"
Expand Down
2 changes: 1 addition & 1 deletion src/centroidal-dynamics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
namespace simple_mpc
{
using namespace aligator;
using VectorSpace = proxsuite::nlp::VectorSpaceTpl<double>;
using VectorSpace = aligator::VectorSpaceTpl<double>;
using CentroidalFwdDynamics = dynamics::CentroidalFwdDynamicsTpl<double>;
using CentroidalAccelerationResidual = CentroidalAccelerationResidualTpl<double>;
using AngularAccelerationResidual = AngularAccelerationResidualTpl<double>;
Expand Down
4 changes: 2 additions & 2 deletions src/fulldynamics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ namespace simple_mpc
using namespace aligator;
using ContactForceResidual = ContactForceResidualTpl<double>;
using CentroidalMomentumResidual = CentroidalMomentumResidualTpl<double>;
using MultibodyPhaseSpace = proxsuite::nlp::MultibodyPhaseSpace<double>;
using MultibodyWrenchConeResidual = aligator::MultibodyWrenchConeResidualTpl<double>;
using MultibodyPhaseSpace = MultibodyPhaseSpace<double>;
using MultibodyWrenchConeResidual = MultibodyWrenchConeResidualTpl<double>;
using MultibodyFrictionConeResidual = MultibodyFrictionConeResidualTpl<double>;
using MultibodyConstraintFwdDynamics = dynamics::MultibodyConstraintFwdDynamicsTpl<double>;
using FramePlacementResidual = FramePlacementResidualTpl<double>;
Expand Down
2 changes: 1 addition & 1 deletion src/kinodynamics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
namespace simple_mpc
{
using namespace aligator;
using MultibodyPhaseSpace = proxsuite::nlp::MultibodyPhaseSpace<double>;
using MultibodyPhaseSpace = MultibodyPhaseSpace<double>;
using KinodynamicsFwdDynamics = dynamics::KinodynamicsFwdDynamicsTpl<double>;
using CentroidalMomentumDerivativeResidual = CentroidalMomentumDerivativeResidualTpl<double>;
using CentroidalMomentumResidual = CentroidalMomentumResidualTpl<double>;
Expand Down
2 changes: 1 addition & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ set(
TEST_NAMES
robot_handler
problem
mpc
#mpc
friction
qpsolvers
interpolator
Expand Down
2 changes: 1 addition & 1 deletion tests/qpsolvers.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

#include <aligator/core/manifold-base.hpp>
#include <boost/test/unit_test.hpp>
#include <proxsuite-nlp/manifold-base.hpp>

#include "simple-mpc/qp-solvers.hpp"
#include "simple-mpc/robot-handler.hpp"
Expand Down
Loading