Skip to content

Commit

Permalink
Fix CI build
Browse files Browse the repository at this point in the history
  • Loading branch information
otamachan committed Jun 13, 2021
1 parent 634b9e7 commit 778be90
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 17 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ jobs:
env:
PYTHON_VERSION: ${{ matrix.python-version }}
run: |
sudo apt-get update
sudo apt install liblz4-dev sip-dev libeigen3-dev sip-dev libboost-all-dev
echo BRANCH_NAME=Linux_${PYTHON_VERSION} >> $GITHUB_ENV
- name: Install packages(MacOS)
Expand All @@ -93,10 +94,16 @@ jobs:
run: |
curl -LO -s "https://github.com/lz4/lz4/archive/v1.9.2.zip"
unzip -q v1.9.2.zip -d roslz4
"/c/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/MSBuild/Current/Bin/MSBuild.exe" "roslz4\lz4-1.9.2\visual\VS2017\lz4.sln" //t:liblz4 //p:Configuration=Release //p:Platform="x64" //p:ForceImportBeforeCppTargets="D:\a\simple\simple\roslz4\build.props" //p:WindowsTargetPlatformVersion="10.0.18362.0"
"/c/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/MSBuild/Current/Bin/MSBuild.exe" "roslz4\lz4-1.9.2\visual\VS2017\liblz4\liblz4.vcxproj" //t:Build //p:Configuration=Release //p:Platform="x64" //p:ForceImportBeforeCppTargets="D:\a\simple\simple\roslz4\build.props" //p:WindowsTargetPlatformVersion="10.0.19041.0"
curl -LO -s "https://gitlab.com/libeigen/eigen/-/archive/3.3.7/eigen-3.3.7.zip"
unzip -q eigen-3.3.7.zip -d PyKDL
echo BOOST_ROOT=${BOOST_ROOT_1_72_0} >> $GITHUB_ENV
curl -LO -s "https://sourceforge.net/projects/boost/files/boost-binaries/1.72.0/boost_1_72_0-msvc-14.2-64.exe"
./boost_1_72_0-msvc-14.2-64.exe //SILENT //SP- //SUPPRESSMSGBOXES //DIR=boost_1_72_0
mkdir -p boost_1_72_0/include
mv boost_1_72_0/boost boost_1_72_0/include
mv boost_1_72_0/lib64-msvc-14.2 boost_1_72_0/lib
ls boost_1_72_0/include
echo BOOST_ROOT=$(cmd //c cd)\\boost_1_72_0 >> $GITHUB_ENV
echo EIGEN_ROOT=eigen-3.3.7 >> $GITHUB_ENV
echo BRANCH_NAME=Windows_${PYTHON_VERSION} >> $GITHUB_ENV
shell: bash
Expand Down
12 changes: 8 additions & 4 deletions PyKDL/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
include config.h
include include/kdl/config.h
include kdl/*.hpp
include kdl/*.inl
include kdl/utilities/*
include kdl/utilities/*.h
include kdl/utilities/*.hpp
include orocos_kinematics_dynamics/orocos_kdl/src/*.cpp
include orocos_kinematics_dynamics/orocos_kdl/src/*.hpp
include orocos_kinematics_dynamics/orocos_kdl/src/*.inl
include orocos_kinematics_dynamics/orocos_kdl/src/utilities/*.cpp
include orocos_kinematics_dynamics/orocos_kdl/src/utilities/*.cxx
include orocos_kinematics_dynamics/python_orocos_kdl/PyKDL/pybind11/*.cpp
include orocos_kinematics_dynamics/python_orocos_kdl/PyKDL/pybind11/*.h
include orocos_kinematics_dynamics/orocos_kdl/src/utilities/*.hpp
include orocos_kinematics_dynamics/orocos_kdl/src/utilities/*.h
include orocos_kinematics_dynamics/python_orocos_kdl/PyKDL/*.cpp
include orocos_kinematics_dynamics/python_orocos_kdl/PyKDL/*.h
recursive-include orocos_kinematics_dynamics/python_orocos_kdl/pybind11/include *.h
2 changes: 1 addition & 1 deletion PyKDL/orocos_kinematics_dynamics
Submodule orocos_kinematics_dynamics updated 85 files
+10 −0 .github/dependabot.yml
+103 −0 .github/workflows/main.yml
+1 −1 .gitmodules
+0 −67 .travis.yml
+15 −0 README.md
+9 −4 orocos_kdl/CMakeLists.txt
+0 −16 orocos_kdl/INSTALL
+37 −0 orocos_kdl/INSTALL.md
+0 −8 orocos_kdl/README
+4 −2 orocos_kdl/examples/chainiksolverpos_lma_demo.cpp
+17 −21 orocos_kdl/examples/geometry.cpp
+6 −9 orocos_kdl/examples/trajectory_example.cpp
+5 −4 orocos_kdl/models/puma560.cpp
+3 −3 orocos_kdl/package.xml
+1 −1 orocos_kdl/src/chain.cpp
+2 −2 orocos_kdl/src/chaindynparam.cpp
+3 −3 orocos_kdl/src/chaindynparam.hpp
+214 −0 orocos_kdl/src/chainexternalwrenchestimator.cpp
+128 −0 orocos_kdl/src/chainexternalwrenchestimator.hpp
+4 −3 orocos_kdl/src/chainfdsolver.hpp
+1 −1 orocos_kdl/src/chainfdsolver_recursive_newton_euler.cpp
+3 −4 orocos_kdl/src/chainfksolver.hpp
+2 −1 orocos_kdl/src/chainfksolverpos_recursive.cpp
+2 −1 orocos_kdl/src/chainfksolvervel_recursive.cpp
+522 −0 orocos_kdl/src/chainhdsolver_vereshchagin.cpp
+535 −0 orocos_kdl/src/chainhdsolver_vereshchagin.hpp
+1 −1 orocos_kdl/src/chainidsolver_recursive_newton_euler.cpp
+4 −450 orocos_kdl/src/chainidsolver_vereshchagin.cpp
+10 −163 orocos_kdl/src/chainidsolver_vereshchagin.hpp
+1 −1 orocos_kdl/src/chainiksolverpos_lma.cpp
+1 −1 orocos_kdl/src/chainjnttojacdotsolver.cpp
+1 −1 orocos_kdl/src/chainjnttojacsolver.cpp
+1 −4 orocos_kdl/src/chainjnttojacsolver.hpp
+3 −4 orocos_kdl/src/frames.cpp
+1 −1 orocos_kdl/src/jacobian.cpp
+3 −3 orocos_kdl/src/jntspaceinertiamatrix.cpp
+3 −3 orocos_kdl/src/jntspaceinertiamatrix.hpp
+1 −1 orocos_kdl/src/joint.cpp
+1 −1 orocos_kdl/src/joint.hpp
+2 −2 orocos_kdl/src/kinfam.hpp
+1 −1 orocos_kdl/src/path_roundedcomposite.hpp
+1 −1 orocos_kdl/src/segment.hpp
+1 −1 orocos_kdl/src/tree.cpp
+2 −2 orocos_kdl/src/treeidsolver.hpp
+1 −1 orocos_kdl/src/treeidsolver_recursive_newton_euler.cpp
+2 −2 orocos_kdl/src/treeidsolver_recursive_newton_euler.hpp
+1 −1 orocos_kdl/src/utilities/ldl_solver_eigen.cpp
+2 −2 orocos_kdl/src/utilities/ldl_solver_eigen.hpp
+3 −3 orocos_kdl/src/utilities/svd_eigen_Macie.cpp
+7 −5 orocos_kdl/src/utilities/utility.cxx
+6 −0 orocos_kdl/src/utilities/utility.h
+70 −70 orocos_kdl/tests/framestest.cpp
+659 −34 orocos_kdl/tests/solvertest.cpp
+7 −2 orocos_kdl/tests/solvertest.hpp
+27 −39 python_orocos_kdl/CMakeLists.txt
+48 −0 python_orocos_kdl/INSTALL.md
+2 −1 python_orocos_kdl/PyKDL/PyKDL.cpp
+2 −1 python_orocos_kdl/PyKDL/PyKDL.h
+2 −1 python_orocos_kdl/PyKDL/dynamics.cpp
+15 −10 python_orocos_kdl/PyKDL/frames.cpp
+13 −12 python_orocos_kdl/PyKDL/framevel.cpp
+19 −15 python_orocos_kdl/PyKDL/kinfam.cpp
+0 −40 python_orocos_kdl/PyKDL/sip/PyKDL.sip
+0 −99 python_orocos_kdl/PyKDL/sip/dynamics.sip
+0 −496 python_orocos_kdl/PyKDL/sip/frames.sip
+0 −395 python_orocos_kdl/PyKDL/sip/framevel.sip
+0 −750 python_orocos_kdl/PyKDL/sip/kinfam.sip
+0 −78 python_orocos_kdl/PyKDL/sip/std_string.sip
+0 −435 python_orocos_kdl/PyKDL/sip/std_vector.sip
+0 −67 python_orocos_kdl/cmake/FindSIP.cmake
+0 −15 python_orocos_kdl/cmake/FindSIP.py
+0 −117 python_orocos_kdl/cmake/SIPMacros.cmake
+5 −3 python_orocos_kdl/doc/conf.py
+0 −1 python_orocos_kdl/env-hooks/python_orocos_kdl_site_packages.bash.in
+0 −1 python_orocos_kdl/env-hooks/python_orocos_kdl_site_packages.sh.in
+0 −1 python_orocos_kdl/env-hooks/python_orocos_kdl_site_packages.tcsh.in
+0 −1 python_orocos_kdl/env-hooks/python_orocos_kdl_site_packages.zsh.in
+9 −9 python_orocos_kdl/package.xml
+1 −1 python_orocos_kdl/pybind11
+8 −6 python_orocos_kdl/tests/PyKDLtest.py
+3 −2 python_orocos_kdl/tests/dynamicstest.py
+2 −1 python_orocos_kdl/tests/framestest.py
+2 −1 python_orocos_kdl/tests/frameveltest.py
+2 −1 python_orocos_kdl/tests/jointtypetest.py
+34 −15 python_orocos_kdl/tests/kinfamtest.py
13 changes: 6 additions & 7 deletions PyKDL/setup.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
import glob
import os
import platform
import subprocess
from distutils.cmd import Command
from setuptools import setup, Extension
from setuptools.command.sdist import sdist
from setuptools.command.build_ext import build_ext


orocos_root = "orocos_kinematics_dynamics/"
Expand All @@ -23,20 +19,23 @@
if platform.system() == "Darwin":
include_dirs += ["/usr/local/include/eigen3"]

extra_compile_args = []
if platform.system() != "Windows":
extra_compile_args += ["-std=c++11"]

setup(
name="PyKDL",
packages=["PyKDL"],
version="1.4.post3",
version="1.5",
ext_package="PyKDL",
ext_modules=[Extension(
"PyKDL",
glob.glob(orocos_root + "python_orocos_kdl/PyKDL/pybind11/*.cpp") +
glob.glob(orocos_root + "python_orocos_kdl/PyKDL/*.cpp") +
glob.glob(orocos_root + "orocos_kdl/src/*.cpp") +
glob.glob(orocos_root + "orocos_kdl/src/utilities/*.cpp") +
glob.glob(orocos_root + "orocos_kdl/src/utilities/*.cxx"),
include_dirs=include_dirs,
extra_compile_args=['-std=c++11'],
extra_compile_args=extra_compile_args,
)],
zip_safe=False,
)
6 changes: 4 additions & 2 deletions roslz4/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,22 @@
if platform.system() == "Windows":
# these are special value for Github Action build
include_dirs += ["lz4-1.9.2/lib"]
libraries = ["lz4-1.9.2/visual/VS2017/bin/x64_Release/liblz4_static"]
libraries = ["lz4-1.9.2/visual/VS2017/liblz4/bin/x64_Release/liblz4_static"]
else:
extra_compile_args += [
"-Wno-strict-prototypes",
"-Wno-missing-field-initializers",
"-Wno-unused-variable",
"-Wno-strict-aliasing",
]
if platform.system() == "Darwin":
extra_compile_args += [""]


setup(
name="roslz4",
packages=["roslz4"],
version="1.14.3.post1",
version="1.14.3.post2",
package_dir={"": "ros_comm/utilities/roslz4/src"},
install_requires=[],
ext_package="roslz4",
Expand Down
7 changes: 6 additions & 1 deletion tf2_py/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"roscpp_core/rostime/include",
"stubs/include",
]
extra_compile_args = []
library_dirs = []
libraris = []

Expand All @@ -25,11 +26,14 @@

if platform.system() == "Windows":
define_macros += [("_WINDOWS", None)]
else:
extra_compile_args += ["-std=c++11"]


setup(
name="tf2_py",
packages=["tf2_py"],
version="0.6.5.post0",
version="0.6.5.post1",
package_dir={"": "geometry2/tf2_py/src"},
install_requires=["rospy", "geometry_msgs", "tf2_msgs"],
ext_package="tf2_py",
Expand All @@ -46,5 +50,6 @@
include_dirs=include_dirs,
library_dirs=library_dirs,
define_macros=define_macros,
extra_compile_args=extra_compile_args,
)],
)

0 comments on commit 778be90

Please sign in to comment.