-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rebase from 'debian/noetic/openhrp3'
- Loading branch information
Showing
73 changed files
with
1,401 additions
and
486 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,43 @@ | ||
on: | ||
push: | ||
branches: | ||
# - master | ||
pull_request: | ||
|
||
env: | ||
DISPLAY: '0:0' | ||
|
||
jobs: | ||
linuxs: | ||
runs-on: ubuntu-latest | ||
# continue-on-error: ${{ matrix.experimental }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- ROS_DISTRO: indigo | ||
CONTAINER: ubuntu:14.04 | ||
- ROS_DISTRO: kinetic | ||
CONTAINER: ubuntu:16.04 | ||
- ROS_DISTRO: melodic | ||
CONTAINER: ubuntu:18.04 | ||
- ROS_DISTRO: noetic | ||
CONTAINER: ubuntu:20.04 | ||
|
||
container: ${{ matrix.CONTAINER }} | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: remove esm repos | ||
if: ${{ matrix.CONTAINER == 'ubuntu:14.04' }} | ||
run: sudo rm /etc/apt/sources.list.d/ubuntu-esm-infra-trusty.list ## fix Err https://esm.ubuntu.com trusty-infra-security/main amd64 Packages, gnutls_handshake() failed: Handshake failed | ||
|
||
- name: Run test | ||
shell: bash | ||
run: | | ||
set -x | ||
export ROS_DISTRO=${{ matrix.ROS_DISTRO }} | ||
ls -al | ||
. ./.travis.sh |
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,31 @@ | ||
diff --git a/util/simulator/CMakeLists.txt b/util/simulator/CMakeLists.txt | ||
index beb53389..2fb81821 100644 | ||
--- a/util/simulator/CMakeLists.txt | ||
+++ b/util/simulator/CMakeLists.txt | ||
@@ -32,12 +32,20 @@ add_library(hrpsysext SHARED | ||
PyShape.cpp | ||
) | ||
|
||
-find_package(Boost REQUIRED COMPONENTS python) | ||
-target_link_libraries(hrpsysext | ||
- Boost::python | ||
- hrpsysUtil | ||
- ${PYTHON_LIBRARIES} | ||
- ) | ||
+find_package(Boost COMPONENTS python) | ||
+if(Boost_python_FOUND) # Boost::python released since 1.67 https://www.boost.org/doc/libs/1_71_0/libs/python/doc/html/rn.html | ||
+ target_link_libraries(hrpsysext | ||
+ Boost::python | ||
+ hrpsysUtil | ||
+ ${PYTHON_LIBRARIES} | ||
+ ) | ||
+else() | ||
+ target_link_libraries(hrpsysext | ||
+ boost_python | ||
+ hrpsysUtil | ||
+ ${PYTHON_LIBRARIES} | ||
+ ) | ||
+endif() | ||
|
||
set_target_properties(hrpsysext PROPERTIES PREFIX "") | ||
set_target_properties(hrpsysext PROPERTIES SUFFIX ".so") |
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,51 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -x | ||
set -e | ||
|
||
export TZ=Asia/Tokyo; echo "${TZ}" > /etc/timezone # configure tzdata | ||
apt-get update -qq | ||
echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections | ||
apt-get install -y -qq git wget gnupg lsb-release build-essential | ||
# Define some config vars | ||
export CI_SOURCE_PATH=$(pwd) | ||
export REPOSITORY_NAME=${PWD##*/} | ||
echo "Testing branch $TRAVIS_BRANCH of $REPOSITORY_NAME" | ||
if [[ "$ROS_DISTRO" == "hydro" || "$ROS_DISTRO" == "jade" || "$ROS_DISTRO" == "lunar" ]]; then | ||
sh -c 'echo "deb http://snapshots.ros.org/$ROS_DISTRO/final/ubuntu $(lsb_release -sc) main" >> /etc/apt/sources.list.d/ros-latest.list' | ||
apt-key adv --keyserver keyserver.ubuntu.com --recv-key 0xCBF125EA | ||
else | ||
sh -c 'echo "deb http://packages.ros.org/ros-testing/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list' | ||
wget http://packages.ros.org/ros.key -O - | apt-key add - | ||
fi | ||
apt-get update -qq | ||
apt-get install dpkg -y # for https://github.com/ros/rosdistro/issues/19481 | ||
# install: # Use this to install any prerequisites or dependencies necessary to run your build | ||
apt-get install -qq -y f2c libopencv-dev libf2c2 libf2c2-dev doxygen cmake libeigen3-dev libjpeg-dev git jython libatlas-base-dev libboost-all-dev libpng-dev | ||
apt-get install -qq -y collada-dom-dev || apt-get install -qq -y libcollada-dom2.4-dp-dev # libcollada-dom2.4 for melodic | ||
apt-get install -qq -y ros-$ROS_DISTRO-openrtm-aist ros-$ROS_DISTRO-mk ros-$ROS_DISTRO-rosbuild ros-$ROS_DISTRO-rostest ros-$ROS_DISTRO-roslang | ||
apt-get install -qq -y ros-$ROS_DISTRO-openrtm-aist-python || echo "try without openrtm-aist-python" | ||
apt-get install -qq -y python-rosdep || apt-get install -qq -y python3-rosdep | ||
cd $CI_SOURCE_PATH | ||
# before_script: # Use this to prepare your build for testing e.g. copy database configurations, environment variables, etc. | ||
source /opt/ros/$ROS_DISTRO/setup.bash | ||
# script: # All commands must exit with code 0 on success. Anything else is considered failure. | ||
export ROS_PARALLEL_JOBS="-j2 -l2" | ||
mkdir -p ~/ws/src | ||
ln -sf ${CI_SOURCE_PATH} ~/ws/src/${REPOSITORY_NAME} | ||
git clone http://github.com/fkanehiro/hrpsys-base ~/ws/src/hrpsys | ||
patch -d ~/ws/src/hrpsys -p1 < ${CI_SOURCE_PATH}/.github/workflows/trusty-hrpsys-util.patch | ||
sed -i "s@if(ENABLE_DOXYGEN)@if(0)@" ~/ws/src/hrpsys/CMakeLists.txt # disable doc generation | ||
cd ~/ws | ||
rosdep init | ||
rosdep update --include-eol-distros | ||
rosdep install -r -q -n --from-paths src --ignore-src --rosdistro $ROS_DISTRO -y || echo "use libpng-dev in package.xml" | ||
catkin_make_isolated | ||
|
||
if [[ "$ROS_DISTRO" == "noetic" ]]; then exit 0; fi | ||
source devel_isolated/setup.bash | ||
export ROS_PACKAGE_PATH=`pwd`/devel_isolated:$ROS_PACKAGE_PATH | ||
export EXIT_STATUS=0; [ "`find devel_isolated/openhrp3/share/openhrp3 -iname '*.test'`" == "" ] && echo "[openhrp3] No tests ware found!!!" || find devel_isolated/openhrp3/share/openhrp3 -iname "*.test" -print0 | xargs -0 -n1 rostest || export EXIT_STATUS=$?; [ $EXIT_STATUS == 0 ] | ||
/etc/init.d/omniorb4-nameserver stop || echo "stop omniserver just in case..." | ||
export EXIT_STATUS=0; [ "`find devel_isolated/hrpsys/share/hrpsys -iname '*.test'`" == "" ] && echo "[hrpsys] No tests ware found!!!" || find devel_isolated/hrpsys/share/hrpsys -iname "*.test" -print0 | xargs -0 -n1 rostest || export EXIT_STATUS=$?; [ $EXIT_STATUS == 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 |
---|---|---|
@@ -1,37 +1,13 @@ | ||
language: | ||
- cpp | ||
- python | ||
python: | ||
- "2.7" | ||
compiler: | ||
- gcc | ||
before_install: # Use this to prepare the system to install prerequisites or dependencies | ||
# Define some config vars | ||
- export CI_SOURCE_PATH=$(pwd) | ||
- export REPOSITORY_NAME=${PWD##*/} | ||
- echo "Testing branch $TRAVIS_BRANCH of $REPOSITORY_NAME" | ||
- sudo sh -c 'echo "deb http://packages.ros.org/ros-shadow-fixed/ubuntu precise main" > /etc/apt/sources.list.d/ros-latest.list' | ||
- wget http://packages.ros.org/ros.key -O - | sudo apt-key add - | ||
- sudo apt-get update -qq | ||
install: # Use this to install any prerequisites or dependencies necessary to run your build | ||
- sudo apt-get install -qq -y f2c libf2c2 libf2c2-dev doxygen cmake libeigen3-dev libjpeg-dev collada-dom-dev git jython libatlas-base-dev libboost-all-dev libpng12-dev | ||
- sudo apt-get install -qq -y ros-hydro-openrtm-aist ros-hydro-openrtm-aist-python ros-hydro-mk ros-hydro-rosbuild ros-hydro-rostest ros-hydro-roslang python-rosdep | ||
- cd $CI_SOURCE_PATH | ||
before_script: # Use this to prepare your build for testing e.g. copy database configurations, environment variables, etc. | ||
- source /opt/ros/hydro/setup.bash | ||
sudo: required | ||
dist: bionic | ||
service: docker | ||
env: | ||
matrix: | ||
# travis + jsk jenkins | ||
- ROS_DISTRO=hydro DOCKER_IMAGE=ubuntu:12.04 | ||
- ROS_DISTRO=indigo DOCKER_IMAGE=ubuntu:14.04 | ||
- ROS_DISTRO=kinetic DOCKER_IMAGE=ubuntu:16.04 | ||
- ROS_DISTRO=melodic DOCKER_IMAGE=ubuntu:18.04 | ||
script: # All commands must exit with code 0 on success. Anything else is considered failure. | ||
- export ROS_PARALLEL_JOBS="-j2 -l2" | ||
- mkdir -p ~/ws/src | ||
- ln -sf ${CI_SOURCE_PATH} ~/ws/src/${REPOSITORY_NAME} | ||
- git clone http://github.com/fkanehiro/hrpsys-base ~/ws/src/hrpsys | ||
- cd ~/ws | ||
- sudo rosdep init | ||
- rosdep update | ||
- rosdep install -r -q -n --from-paths src --ignore-src --rosdistro hydro -y | ||
- catkin_make_isolated | ||
- source devel_isolated/setup.bash | ||
- export ROS_PACKAGE_PATH=`pwd`/devel_isolated:$ROS_PACKAGE_PATH | ||
- export EXIT_STATUS=0; [ "`find devel_isolated/openhrp3/share/openhrp3 -iname '*.test'`" == "" ] && echo "[openhrp3] No tests ware found!!!" || find devel_isolated/openhrp3/share/openhrp3 -iname "*.test" -print0 | xargs -0 -n1 rostest || export EXIT_STATUS=$?; [ $EXIT_STATUS == 0 ] | ||
- sudo /etc/init.d/omniorb4-nameserver stop || echo "stop omniserver just in case..." | ||
- export EXIT_STATUS=0; [ "`find devel_isolated/hrpsys/share/hrpsys -iname '*.test'`" == "" ] && echo "[hrpsys] No tests ware found!!!" || find devel_isolated/hrpsys/share/hrpsys -iname "*.test" -print0 | xargs -0 -n1 rostest || export EXIT_STATUS=$?; [ $EXIT_STATUS == 0 ] | ||
after_failure: | ||
- docker run --rm -v $(pwd):/root/ -e ROS_DISTRO -ti $DOCKER_IMAGE /bin/bash -c "cd /root/; source ./.travis.sh | grep -v '\(Preparing to\|Selecting previously\|Setting up\|Unpacking \|Processing \|Collada \)' | grep -v '\(Joint\|Segment\) node' | grep -v -- '-- \(Up-to-date\|Installing\|Set runtime path\|Removed\)' | grep -v '^Scanning dependencies' | grep -v '%] \(Generating\|Building\)'" | sed 's/\x1b\[.*]*//g' | sed '/^$/d' | ||
|
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
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
Oops, something went wrong.