Skip to content

Commit

Permalink
Merge pull request #66 from robotology/fix_idyntree_deprecations
Browse files Browse the repository at this point in the history
Fix idyntree deprecations
  • Loading branch information
S-Dafarra authored May 31, 2024
2 parents ddd2a72 + be3f51e commit be2771d
Show file tree
Hide file tree
Showing 30 changed files with 65 additions and 66 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name: C++ CI Workflow
on:
push:
pull_request:

env:
iDynTree_TAG: v4.3.0
iDynTree_TAG: v10.0.0


jobs:
build:
Expand Down Expand Up @@ -48,15 +48,15 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install libeigen3-dev
- name: Cache Source-based Dependencies
id: cache-source-deps
uses: actions/cache@v1
with:
path: ${{ github.workspace }}/install/deps
# Including ${{ runner.temp }} is a workaround taken from https://github.com/robotology/whole-body-estimators/pull/62 to fix macos configuration failure on https://github.com/dic-iit/bipedal-locomotion-framework/pull/45
key: source-deps-${{ runner.os }}-${{runner.temp}}-build-type-${{ matrix.build_type }}-iDynTree-${{ env.iDynTree_TAG }}

- name: Source-based Dependencies [Ubuntu/macOS]
if: steps.cache-source-deps.outputs.cache-hit != 'true' && (startsWith(matrix.os, 'ubuntu') || matrix.os == 'macos-latest')
shell: bash
Expand Down Expand Up @@ -108,4 +108,4 @@ jobs:
run: |
cd build
ctest --output-on-failure -C ${{ matrix.build_type }} .
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ if(NOT CMAKE_CONFIGURATION_TYPES)
endif()
endif()

find_package(iDynTree 4.3.0 REQUIRED)
find_package(iDynTree 10.0.0 REQUIRED)
find_package(Eigen3 REQUIRED)

set(UCPLANNER_SOURCES src/ControlledUnicycle.cpp
Expand Down
4 changes: 2 additions & 2 deletions include/ControlledUnicycle.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

#include <iDynTree/DynamicalSystem.h>
#include <iDynTree/Controller.h>
#include <iDynTree/Core/VectorDynSize.h>
#include <iDynTree/Core/VectorFixSize.h>
#include <iDynTree/VectorDynSize.h>
#include <iDynTree/VectorFixSize.h>
#include <memory>

class ControlledUnicycle : public iDynTree::optimalcontrol::DynamicalSystem{
Expand Down
2 changes: 1 addition & 1 deletion include/DCMTrajectoryGenerator.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

#include <StepPhase.h>
#include <FootPrint.h>
#include <iDynTree/Core/VectorFixSize.h>
#include <iDynTree/VectorFixSize.h>

#include <vector>
#include <memory>
Expand Down
2 changes: 1 addition & 1 deletion include/DCMTrajectoryGeneratorHelper.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <Eigen/Dense>

// iDynTree
#include <iDynTree/Core/VectorFixSize.h>
#include <iDynTree/VectorFixSize.h>

#include <FootPrint.h>
#include <StepPhase.h>
Expand Down
2 changes: 1 addition & 1 deletion include/FeetCubicSplineGenerator.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include <FootPrint.h>
#include <FeetGenerator.h>

#include <iDynTree/Core/Transform.h>
#include <iDynTree/Transform.h>

#include <vector>
#include <memory>
Expand Down
2 changes: 1 addition & 1 deletion include/FeetGenerator.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include <StepPhase.h>
#include <FootPrint.h>

#include <iDynTree/Core/Transform.h>
#include <iDynTree/Transform.h>

#include <vector>

Expand Down
2 changes: 1 addition & 1 deletion include/FeetMinimumJerkGenerator.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include <FootPrint.h>
#include <FeetGenerator.h>

#include <iDynTree/Core/Transform.h>
#include <iDynTree/Transform.h>

#include <vector>
#include <memory>
Expand Down
2 changes: 1 addition & 1 deletion include/FootPrint.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

#include <deque>
#include <memory>
#include "iDynTree/Core/VectorFixSize.h"
#include "iDynTree/VectorFixSize.h"

struct Step{
iDynTree::Vector2 position;
Expand Down
4 changes: 2 additions & 2 deletions include/FreeSpaceEllipse.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
#ifndef FREESPACEELLIPSE_H
#define FREESPACEELLIPSE_H

#include <iDynTree/Core/MatrixFixSize.h>
#include <iDynTree/Core/VectorFixSize.h>
#include <iDynTree/MatrixFixSize.h>
#include <iDynTree/VectorFixSize.h>

class FreeSpaceEllipse
{
Expand Down
6 changes: 3 additions & 3 deletions include/PersonFollowingController.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
#include "FreeSpaceEllipse.h"
#include "UnicycleBaseController.h"
#include <iDynTree/TimeRange.h>
#include <iDynTree/Core/VectorFixSize.h>
#include <iDynTree/Core/VectorDynSize.h>
#include <iDynTree/Core/MatrixDynSize.h>
#include <iDynTree/VectorFixSize.h>
#include <iDynTree/VectorDynSize.h>
#include <iDynTree/MatrixDynSize.h>
#include <deque>

typedef struct{
Expand Down
4 changes: 2 additions & 2 deletions include/UnicycleBaseController.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
#define UNICYCLEBASECONTROLLER_H

#include <iDynTree/Controller.h>
#include <iDynTree/Core/VectorFixSize.h>
#include <iDynTree/Core/VectorDynSize.h>
#include <iDynTree/VectorFixSize.h>
#include <iDynTree/VectorDynSize.h>

class UnicycleBaseController : public iDynTree::optimalcontrol::Controller{

Expand Down
4 changes: 2 additions & 2 deletions include/UnicycleFoot.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
#include <memory>
#include "FootPrint.h"
#include "UnicycleState.h"
#include "iDynTree/Core/VectorFixSize.h"
#include "iDynTree/Core/MatrixDynSize.h"
#include "iDynTree/VectorFixSize.h"
#include "iDynTree/MatrixDynSize.h"

class UnicycleFoot {
std::shared_ptr<FootPrint> m_steps_ptr;
Expand Down
4 changes: 2 additions & 2 deletions include/UnicycleOptimization.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
#include <iDynTree/Constraint.h>
#include <iDynTree/Cost.h>
#include <iDynTree/OptimalControlProblem.h>
#include <iDynTree/Core/VectorDynSize.h>
#include <iDynTree/Core/VectorFixSize.h>
#include <iDynTree/VectorDynSize.h>
#include <iDynTree/VectorFixSize.h>
#include <cmath>
#include <string>
#include <iostream>
Expand Down
2 changes: 1 addition & 1 deletion include/UnicycleState.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#ifndef UNICYCLE_STATE_H
#define UNICYCLE_STATE_H
#include "iDynTree/Core/VectorFixSize.h"
#include "iDynTree/VectorFixSize.h"

struct UnicycleState
{
Expand Down
4 changes: 2 additions & 2 deletions src/CoMHeightTrajectoryGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
#include <mutex>

#include <CoMHeightTrajectoryGenerator.h>
#include <iDynTree/Core/VectorDynSize.h>
#include <iDynTree/Core/CubicSpline.h>
#include <iDynTree/VectorDynSize.h>
#include <iDynTree/CubicSpline.h>


class CoMHeightTrajectoryGenerator::CoMHeightTrajectoryGeneratorImplementation {
Expand Down
2 changes: 1 addition & 1 deletion src/DCMTrajectoryGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#include <DCMTrajectoryGenerator.h>
#include <DCMTrajectoryGeneratorHelper.h>
#include <iDynTree/Core/EigenHelpers.h>
#include <iDynTree/EigenHelpers.h>
#include <cassert>
#include <iostream>
#include <cmath>
Expand Down
4 changes: 2 additions & 2 deletions src/DCMTrajectoryGeneratorHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
#include <Eigen/Dense>

// iDynTree
#include <iDynTree/Core/VectorFixSize.h>
#include <iDynTree/Core/EigenHelpers.h>
#include <iDynTree/VectorFixSize.h>
#include <iDynTree/EigenHelpers.h>

//--------General Support Trajectory definition

Expand Down
11 changes: 5 additions & 6 deletions src/FeetCubicSplineGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
*/

#include <FeetCubicSplineGenerator.h>
#include <iDynTree/Core/EigenHelpers.h>
#include <iDynTree/Core/VectorDynSize.h>
#include <iDynTree/Core/CubicSpline.h>
#include <iDynTree/Core/Twist.h>
#include <iDynTree/Core/SpatialAcc.h>
#include <iDynTree/EigenHelpers.h>
#include <iDynTree/VectorDynSize.h>
#include <iDynTree/CubicSpline.h>
#include <iDynTree/Twist.h>
#include <iDynTree/SpatialAcc.h>
#include <cassert>
#include <mutex>

Expand Down Expand Up @@ -65,7 +65,6 @@ class FeetCubicSplineGenerator::FeetCubicSplineGeneratorImplementation {
size_t instant = 0;
iDynTree::Transform newTransform;
iDynTree::Position newPosition;
double dummyAcceleration;
double swingLength, pitchAngle, yawAngle;
size_t endOfPhase;
iDynTree::Vector3 linearVelocity;
Expand Down
10 changes: 5 additions & 5 deletions src/FeetMinimumJerkGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
*/

#include <FeetMinimumJerkGenerator.h>
#include <iDynTree/Core/VectorDynSize.h>
#include <iDynTree/Core/CubicSpline.h>
#include <iDynTree/Core/EigenHelpers.h>
#include <iDynTree/Core/Twist.h>
#include <iDynTree/Core/SpatialAcc.h>
#include <iDynTree/VectorDynSize.h>
#include <iDynTree/CubicSpline.h>
#include <iDynTree/EigenHelpers.h>
#include <iDynTree/Twist.h>
#include <iDynTree/SpatialAcc.h>
#include <cassert>
#include <mutex>

Expand Down
2 changes: 1 addition & 1 deletion src/FreeSpaceEllipse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

#include <Eigen/Core>
#include <iDynTree/Core/EigenHelpers.h>
#include <iDynTree/EigenHelpers.h>
#include <FreeSpaceEllipse.h>
#include <cassert>
#include <iostream>
Expand Down
2 changes: 1 addition & 1 deletion src/PersonFollowingController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

#include "PersonFollowingController.h"
#include "iDynTree/Core/EigenHelpers.h"
#include "iDynTree/EigenHelpers.h"
#include "Eigen/Core"
#include <iostream>
#include <cmath>
Expand Down
2 changes: 1 addition & 1 deletion src/UnicycleFoot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#include "UnicycleFoot.h"
#include "Eigen/Core"
#include "iDynTree/Core/EigenHelpers.h"
#include "iDynTree/EigenHelpers.h"
#include <cmath>
#include <iostream>

Expand Down
2 changes: 1 addition & 1 deletion src/UnicycleGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include <cstddef>
#include <mutex>

#include <iDynTree/Core/EigenHelpers.h>
#include <iDynTree/EigenHelpers.h>

typedef StepList::const_iterator StepsIndex;

Expand Down
2 changes: 1 addition & 1 deletion src/UnicycleOptimization.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

#include "UnicycleOptimization.h"
#include "iDynTree/Core/VectorFixSize.h"
#include "iDynTree/VectorFixSize.h"

void UnicycleOptimization::updateState(const iDynTree::Vector2 &rPl, double deltaAngle, double deltaTime, const iDynTree::Vector2 &newStepPosition, const iDynTree::Vector2 &newStepRelativePosition)
{
Expand Down
4 changes: 2 additions & 2 deletions src/UnicyclePlanner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
*/

#include "UnicyclePlanner.h"
#include "iDynTree/Core/Utils.h"
#include "iDynTree/Utils.h"
#include "Eigen/Core"
#include "iDynTree/Core/EigenHelpers.h"
#include "iDynTree/EigenHelpers.h"
#include <iostream>

bool UnicyclePlanner::getInitialStateFromFeet(double initTime)
Expand Down
8 changes: 4 additions & 4 deletions src/ZMPTrajectoryGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
*/

#include <ZMPTrajectoryGenerator.h>
#include <iDynTree/Core/VectorDynSize.h>
#include <iDynTree/Core/CubicSpline.h>
#include <iDynTree/Core/Position.h>
#include <iDynTree/Core/Transform.h>
#include <iDynTree/VectorDynSize.h>
#include <iDynTree/CubicSpline.h>
#include <iDynTree/Position.h>
#include <iDynTree/Transform.h>
#include <cassert>
#include <iostream>
#include <cmath>
Expand Down
6 changes: 3 additions & 3 deletions tests/DcmInterpolationTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
#include <ctime>

// iDynTree
#include <iDynTree/Core/VectorDynSize.h>
#include <iDynTree/Core/VectorFixSize.h>
#include <iDynTree/Core/TestUtils.h>
#include <iDynTree/VectorDynSize.h>
#include <iDynTree/VectorFixSize.h>
#include <iDynTree/TestUtils.h>

#include "utils.h"
#include <UnicycleGenerator.h>
Expand Down
10 changes: 5 additions & 5 deletions tests/InterpolationTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
*/

#include "UnicycleGenerator.h"
#include "iDynTree/Core/TestUtils.h"
#include "iDynTree/TestUtils.h"
#include <memory>
#include "iDynTree/Core/VectorDynSize.h"
#include "iDynTree/Core/VectorFixSize.h"
#include "iDynTree/Core/Twist.h"
#include "iDynTree/Core/SpatialAcc.h"
#include "iDynTree/VectorDynSize.h"
#include "iDynTree/VectorFixSize.h"
#include "iDynTree/Twist.h"
#include "iDynTree/SpatialAcc.h"
#include <fstream>
#include <ctime>

Expand Down
8 changes: 4 additions & 4 deletions tests/UnicycleTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
*
*/
#include "UnicyclePlanner.h"
#include <iDynTree/Core/TestUtils.h>
#include <iDynTree/Core/Utils.h>
#include <iDynTree/TestUtils.h>
#include <iDynTree/Utils.h>
#include <Eigen/Core>
#include "iDynTree/Core/EigenHelpers.h"
#include "iDynTree/Core/MatrixDynSize.h"
#include "iDynTree/EigenHelpers.h"
#include "iDynTree/MatrixDynSize.h"
#include <cmath>
#include <memory>
#include <iostream>
Expand Down

0 comments on commit be2771d

Please sign in to comment.