-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35 from robotology/devel
Merge Devel to Master
- Loading branch information
Showing
59 changed files
with
2,618 additions
and
194 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,189 @@ | ||
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] | ||
|
||
steps: | ||
- uses: actions/checkout@master | ||
|
||
# Print environment variables to simplify development and debugging | ||
- name: Environment Variables | ||
shell: bash | ||
run: env | ||
|
||
# ============ | ||
# DEPENDENCIES | ||
# ============ | ||
|
||
# Remove apt repos that are known to break from time to time | ||
# See https://github.com/actions/virtual-environments/issues/323 | ||
- name: Remove broken apt repos [Ubuntu] | ||
if: matrix.os == 'ubuntu-latest' | ||
run: | | ||
for apt_file in `grep -lr microsoft /etc/apt/sources.list.d/`; do sudo rm $apt_file; done | ||
- name: Dependencies [Windows] | ||
if: matrix.os == 'windows-latest' | ||
run: | | ||
git clone https://github.com/robotology-dependencies/robotology-vcpkg-binary-ports C:/robotology-vcpkg-binary-ports | ||
vcpkg.exe --overlay-ports=C:/robotology-vcpkg-binary-ports install --triplet x64-windows ace libxml2 eigen3 ipopt-binary catch2 | ||
- name: Dependencies [macOS] | ||
if: matrix.os == 'macOS-latest' | ||
run: | | ||
brew install ace boost eigen swig qt5 orocos-kdl catch2 | ||
- name: Dependencies [Ubuntu] | ||
if: matrix.os == 'ubuntu-latest' | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install git build-essential cmake libace-dev coinor-libipopt-dev libboost-system-dev libboost-filesystem-dev \ | ||
libboost-thread-dev liborocos-kdl-dev libeigen3-dev swig qtbase5-dev qtdeclarative5-dev qtmultimedia5-dev \ | ||
libxml2-dev liburdfdom-dev libtinyxml-dev liburdfdom-dev liboctave-dev python-dev valgrind | ||
- name: Source-based Dependencies [Windows] | ||
if: matrix.os == 'windows-latest' | ||
shell: bash | ||
run: | | ||
# YCM | ||
cd ${GITHUB_WORKSPACE} | ||
git clone https://github.com/robotology/ycm | ||
cd ycm | ||
mkdir -p build | ||
cd build | ||
cmake -A x64 -DCMAKE_TOOLCHAIN_FILE=${VCPKG_INSTALLATION_ROOT}/scripts/buildsystems/vcpkg.cmake \ | ||
-DCMAKE_INSTALL_PREFIX=${GITHUB_WORKSPACE}/install .. | ||
cmake --build . --config ${{ matrix.build_type }} --target INSTALL | ||
# YARP | ||
cd ${GITHUB_WORKSPACE} | ||
git clone https://github.com/robotology/yarp | ||
cd yarp | ||
mkdir -p build | ||
cd build | ||
cmake -A x64 -DCMAKE_TOOLCHAIN_FILE=${VCPKG_INSTALLATION_ROOT}/scripts/buildsystems/vcpkg.cmake \ | ||
-DCMAKE_PREFIX_PATH=${GITHUB_WORKSPACE}/install -DCMAKE_INSTALL_PREFIX=${GITHUB_WORKSPACE}/install .. | ||
cmake --build . --config ${{ matrix.build_type }} --target INSTALL | ||
# Workaround for https://github.com/robotology-dependencies/robotology-vcpkg-binary-ports/issues/3 | ||
export IPOPT_DIR=${VCPKG_INSTALLATION_ROOT}/installed/x64-windows | ||
# iDynTree | ||
cd ${GITHUB_WORKSPACE} | ||
git clone https://github.com/robotology/iDynTree | ||
cd iDynTree | ||
git checkout devel | ||
mkdir -p build | ||
cd build | ||
cmake -A x64 -DCMAKE_TOOLCHAIN_FILE=${VCPKG_INSTALLATION_ROOT}/scripts/buildsystems/vcpkg.cmake \ | ||
-DCMAKE_PREFIX_PATH=${GITHUB_WORKSPACE}/install \ | ||
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \ | ||
-DCMAKE_INSTALL_PREFIX=${GITHUB_WORKSPACE}/install .. | ||
cmake --build . --config ${{ matrix.build_type }} --target install | ||
# icub-main | ||
cd ${GITHUB_WORKSPACE} | ||
git clone https://github.com/robotology/icub-main.git --depth 1 --branch devel | ||
cd icub-main && mkdir -p build && cd build | ||
cmake -DCMAKE_PREFIX_PATH=${GITHUB_WORKSPACE}/install -DCMAKE_INSTALL_PREFIX=${GITHUB_WORKSPACE}/install -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \ | ||
-DENABLE_icubmod_cartesiancontrollerserver=ON -DENABLE_icubmod_cartesiancontrollerclient=ON -DENABLE_icubmod_gazecontrollerclient=ON .. | ||
cmake --build . --config ${{ matrix.build_type }} --target install | ||
- name: Source-based Dependencies [Ubuntu/macOS] | ||
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macOS-latest' | ||
shell: bash | ||
run: | | ||
# YCM | ||
cd ${GITHUB_WORKSPACE} | ||
git clone https://github.com/robotology/ycm | ||
cd ycm | ||
mkdir -p build | ||
cd build | ||
cmake -DCMAKE_INSTALL_PREFIX=${GITHUB_WORKSPACE}/install .. | ||
cmake --build . --config ${{ matrix.build_type }} --target install | ||
# YARP | ||
cd ${GITHUB_WORKSPACE} | ||
git clone https://github.com/robotology/yarp | ||
cd yarp | ||
mkdir -p build | ||
cd build | ||
cmake -DCMAKE_PREFIX_PATH=${GITHUB_WORKSPACE}/install -DCMAKE_INSTALL_PREFIX=${GITHUB_WORKSPACE}/install .. | ||
cmake --build . --config ${{ matrix.build_type }} --target install | ||
# iDynTree | ||
cd ${GITHUB_WORKSPACE} | ||
git clone https://github.com/robotology/iDynTree | ||
cd iDynTree | ||
git checkout devel | ||
mkdir -p build | ||
cd build | ||
cmake -DCMAKE_PREFIX_PATH=${GITHUB_WORKSPACE}/install -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \ | ||
-DCMAKE_INSTALL_PREFIX=${GITHUB_WORKSPACE}/install .. | ||
cmake --build . --config ${{ matrix.build_type }} --target install | ||
# icub-main | ||
cd ${GITHUB_WORKSPACE} | ||
git clone https://github.com/robotology/icub-main.git --depth 1 --branch devel | ||
cd icub-main && mkdir -p build && cd build | ||
cmake -DCMAKE_PREFIX_PATH=${GITHUB_WORKSPACE}/install -DCMAKE_INSTALL_PREFIX=${GITHUB_WORKSPACE}/install -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \ | ||
-DENABLE_icubmod_cartesiancontrollerserver=ON -DENABLE_icubmod_cartesiancontrollerclient=ON -DENABLE_icubmod_gazecontrollerclient=ON .. | ||
cmake --build . --config ${{ matrix.build_type }} --target install | ||
# =================== | ||
# CMAKE-BASED PROJECT | ||
# =================== | ||
|
||
- name: Configure [Windows] | ||
# Use bash also on Windows (otherwise cd, mkdir, ... do not work) | ||
if: matrix.os == 'windows-latest' | ||
shell: bash | ||
run: | | ||
mkdir -p build | ||
cd build | ||
cmake -A x64 -DCMAKE_TOOLCHAIN_FILE=${VCPKG_INSTALLATION_ROOT}/scripts/buildsystems/vcpkg.cmake \ | ||
-DCMAKE_PREFIX_PATH=${GITHUB_WORKSPACE}/install \ | ||
-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 | ||
run: | | ||
mkdir -p build | ||
cd build | ||
cmake -DCMAKE_PREFIX_PATH=${GITHUB_WORKSPACE}/install \ | ||
-DCMAKE_INSTALL_PREFIX=${GITHUB_WORKSPACE}/install .. | ||
- name: Build | ||
shell: bash | ||
run: | | ||
cd build | ||
# Attempt of fix for using YARP idl generators (that link ACE) in Windows | ||
# See https://github.com/robotology/idyntree/issues/569 | ||
export PATH=$PATH:${GITHUB_WORKSPACE}/install/bin:${VCPKG_ROBOTOLOGY_ROOT}/installed/x64-windows/bin | ||
cmake --build . --config ${{ matrix.build_type }} | ||
- name: Install | ||
shell: bash | ||
run: | | ||
cd build | ||
cmake --build . --config ${{ matrix.build_type }} --target install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,4 +42,5 @@ build/ | |
.\#*\# | ||
|
||
TAGS | ||
compile_commands.json | ||
compile_commands.json | ||
CMakeLists.txt.user |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name XsensRetargeting | ||
samplingTime 0.01 | ||
robot icub | ||
# if the following is enabled we will use smoothing with smoothingTime value (default is true) | ||
useSmoothing 0 | ||
smoothingTime 0.25 | ||
# The max difference (threshold) of a joint value coming from the human (rad) | ||
jointDifferenceThreshold 0.5 | ||
wholeBodyJointsPort /HumanStateWrapper/state:i | ||
controllerJointsPort /jointPosition:o | ||
controllerCoMPort /CoM:o | ||
|
||
# ROBOT JOINT LIST (Notice the order of the joint list is not wrong) | ||
# Indeed they are written according to the joint order of the walking-coordinator | ||
joints_list ( "neck_pitch", "neck_roll", "neck_yaw", | ||
"torso_pitch", "torso_roll", "torso_yaw", | ||
"l_shoulder_pitch", "l_shoulder_roll", "l_shoulder_yaw", "l_elbow", "l_wrist_prosup", | ||
"r_shoulder_pitch", "r_shoulder_roll", "r_shoulder_yaw", "r_elbow", "r_wrist_prosup" ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name XsensRetargeting | ||
samplingTime 0.01 | ||
robot icub | ||
# if the following is enabled we will use smoothing with smoothingTime value (default is true) | ||
useSmoothing 1 | ||
smoothingTime 0.25 | ||
# The max difference (threshold) of a joint value coming from the human (rad) | ||
jointDifferenceThreshold 0.5 | ||
wholeBodyJointsPort /HumanStateWrapper/state:i | ||
controllerJointsPort /jointPosition:o | ||
controllerCoMPort /CoM:o | ||
|
||
# ROBOT JOINT LIST (Notice the order of the joint list is not wrong) | ||
# Indeed they are written according to the joint order of the yoga-retargeting | ||
joints_list ( | ||
"torso_pitch", "torso_roll", "torso_yaw", | ||
"l_shoulder_pitch", "l_shoulder_roll", "l_shoulder_yaw", "l_elbow", | ||
"r_shoulder_pitch", "r_shoulder_roll", "r_shoulder_yaw", "r_elbow", | ||
"l_hip_pitch", "l_hip_roll", "l_hip_yaw", "l_knee", "l_ankle_pitch", "l_ankle_roll", | ||
"r_hip_pitch", "r_hip_roll", "r_hip_yaw", "r_knee", "r_ankle_pitch", "r_ankle_roll") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
remote_control_boards ("head") | ||
# Notice the order of the joint list is not wrong. | ||
# Indeed they are written according to the joint order of the icub-neck | ||
joints_list ("neck_pitch", "neck_roll", "neck_yaw") | ||
|
||
smoothingTime 1.0 | ||
PreparationSmoothingTime 3.0 | ||
PreparationJointReferenceValues (0.0 , 0.0 , 0.0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
remote_control_boards () | ||
joints_list () | ||
|
||
useVelocity 1 | ||
|
||
fingersScaling () |
Oops, something went wrong.