Skip to content
Merged
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
80 changes: 80 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
name: C++ CI Workflow

on:
push:
pull_request:
schedule:
# * is a special character in YAML so you have to quote this string
# Execute a "nightly" build at 2 AM UTC
- cron: '0 2 * * *'


jobs:
build:
name: '[${{ matrix.os }}@${{ matrix.build_type }}]'
runs-on: ${{ matrix.os }}
strategy:
matrix:
build_type: [Release]
os: [ubuntu-latest, windows-latest, macos-latest]
fail-fast: false


steps:
- uses: actions/checkout@master

- uses: conda-incubator/setup-miniconda@v3
with:
miniforge-variant: Miniforge3
miniforge-version: latest
channel-priority: true
conda-remove-defaults: true
channels: conda-forge, robotology

# ============
# DEPENDENCIES
# ============

- name: Dependencies
shell: bash -l {0}
run: |
conda install cmake cxx-compiler make ninja pkg-config yarp ycm-cmake-modules icub-main eigen "idyntree>=10.0.0" libunicycle-footstep-planner osqp-eigen "bipedal-locomotion-framework>=0.18.0" libtrintrin icub-contrib-common

- name: Print used environment
shell: bash -l {0}
run: |
conda list
env
# ===================
# CMAKE-BASED PROJECT
# ===================

- name: Configure [Windows]
# Use bash also on Windows (otherwise cd, mkdir, ... do not work)
if: matrix.os == 'windows-latest'
shell: bash -l {0}
run: |
mkdir -p build
cd build
cmake -G"Visual Studio 17 2022" \
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DCMAKE_INSTALL_PREFIX=${GITHUB_WORKSPACE}/install ..

- name: Configure [Ubuntu/macOS]
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macOS-latest'
shell: bash -l {0}
run: |
mkdir -p build
cd build
cmake -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DCMAKE_INSTALL_PREFIX=${GITHUB_WORKSPACE}/install ..

- name: Build
shell: bash -l {0}
run: |
cd build
cmake --build . --config ${{ matrix.build_type }}

- name: Install
shell: bash -l {0}
run: |
cd build
cmake --build . --config ${{ matrix.build_type }} --target install
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ Eprint = {arXiv:1809.02167},

# :page_facing_up: Dependencies
* [YARP](http://www.yarp.it/): to handle the comunication with the robot;
* [trintrin](https://github.com/ami-iit/trintrin): a library with common messages for interprocess communication in robotics applications.
* [iDynTree](https://github.com/robotology/idyntree): to handle the robot kinematics;
* [iCubContrib](https://github.com/robotology/icub-contrib-common): to configure the modules;
* [icub-main](https://github.com/robotology/icub-main): to smooth and integrate signals;
Expand Down
1 change: 1 addition & 0 deletions cmake/WalkingControllersDependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ find_package(iDynTree 10.0.0 REQUIRED)
find_package(Eigen3 REQUIRED)
find_package(UnicyclePlanner 0.8.0 REQUIRED)
find_package(OsqpEigen 0.4.0 REQUIRED)
find_package(trintrin 0.0.1 REQUIRED)
find_package(BipedalLocomotionFramework 0.18.0
COMPONENTS VectorsCollection IK ParametersHandlerYarpImplementation
ContinuousDynamicalSystem ManifConversions Contacts
Expand Down
2 changes: 1 addition & 1 deletion src/RetargetingHelper/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ add_walking_controllers_library(
NAME RetargetingHelper
SOURCES src/Helper.cpp
PUBLIC_HEADERS include/WalkingControllers/RetargetingHelper/Helper.h
PUBLIC_LINK_LIBRARIES WalkingControllers::HumanState WalkingControllers::YarpUtilities WalkingControllers::KinDynWrapper ${iDynTree_LIBRARIES} ctrlLib
PUBLIC_LINK_LIBRARIES trintrin::msgs WalkingControllers::YarpUtilities WalkingControllers::KinDynWrapper ${iDynTree_LIBRARIES} ctrlLib
PRIVATE_LINK_LIBRARIES Eigen3::Eigen)
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include <iCub/ctrl/minJerkCtrl.h>

#include <WalkingControllers/KinDynWrapper/Wrapper.h>
#include <WalkingControllers/YarpUtilities/HumanState.h>
#include <trintrin/msgs/HumanState.h>

namespace WalkingControllers
{
Expand Down Expand Up @@ -67,7 +67,7 @@ class RetargetingClient
T velocity;
};

struct HDERetargeting : public RetargetingElement<WalkingControllers::YarpUtilities::HumanState>
struct HDERetargeting : public RetargetingElement<trintrin::msgs::HumanState>
{
KinematicState<iDynTree::VectorDynSize> joints;
KinematicState<double> com;
Expand Down
5 changes: 0 additions & 5 deletions src/YarpUtilities/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,3 @@ add_walking_controllers_library(
SOURCES ${YARP_UTILITIES_SRC}
PUBLIC_HEADERS ${YARP_UTILITIES_HDR}
PUBLIC_LINK_LIBRARIES ${YARP_LIBRARIES} ${iDynTree_LIBRARIES})

add_walking_controllers_yarp_thrift(
NAME HumanState
THRIFT thrifts/WalkingControllers/YarpUtilities/HumanState.thrift
INSTALLATION_FOLDER YarpUtilities)

This file was deleted.

Loading