Skip to content

Commit

Permalink
Fixes for Python wrappers (tesseract-robotics#329)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnwason authored Jun 27, 2023
1 parent 1596d75 commit 53c3df8
Show file tree
Hide file tree
Showing 16 changed files with 1,063 additions and 57 deletions.
75 changes: 75 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: Windows

on:
push:
branches:
- master
pull_request:
paths:
- 'tesseract**'
- '.github/workflows/windows.yml'
- '.github/workflows/windows_dependencies.repos'
schedule:
- cron: '0 5 * * *'

jobs:
ci:
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-2019, windows-2022]
steps:
- uses: actions/checkout@v3
with:
path: workspace/src/tesseract_planning

- name: vcpkg build
uses: johnwason/vcpkg-action@v4
with:
pkgs: >-
fcl bullet3[multithreading,double-precision,rtti] octomap
console-bridge eigen3 yaml-cpp benchmark tinyxml2 assimp orocos-kdl pcl
lapack-reference boost-dll boost-filesystem boost-serialization
boost-program-options boost-graph urdfdom ccd[double-precision] gtest
ompl taskflow jsoncpp flann benchmark
triplet: x64-windows-release
extra-args: --clean-after-build
token: ${{ github.token }}
cache-key: ci-${{ matrix.os }}
revision: master

- name: install-depends
shell: cmd
run: |
python -m pip install vcstool -q
python -m pip install colcon-common-extensions -q
python -m pip install ninja -q
- name: configure-msvc
uses: ilammy/msvc-dev-cmd@v1
with:
arch: x64

- name: build-workspace
working-directory: workspace
shell: cmd
run: |
set PATH=%PATH%;%GITHUB_WORKSPACE%\vcpkg\installed\x64-windows-release\bin
set CMAKE_PREFIX_PATH=%GITHUB_WORKSPACE%\vcpkg\installed\x64-windows-release
vcs import --input "${{ github.workspace }}/workspace/src/tesseract_planning/.github/workflows/windows_dependencies.repos" src/
if %ERRORLEVEL% GEQ 1 exit 1
colcon build --event-handlers console_direct+ --cmake-args -G "Ninja" -DVCPKG_TARGET_TRIPLET=x64-windows-release -DCMAKE_BUILD_TYPE=Release -DTESSERACT_ENABLE_TESTING=ON -DBUILD_IPOPT=OFF -DBUILD_SNOPT=OFF
if %ERRORLEVEL% GEQ 1 exit 1
- name: run-test
working-directory: workspace
shell: cmd
run: |
call ./install/setup.bat
set PATH=%PATH%;%GITHUB_WORKSPACE%\vcpkg\installed\x64-windows-release\bin
colcon test --event-handlers console_direct+ --return-code-on-test-failure --packages-select tesseract_command_language tesseract_motion_planners tesseract_task_composer tesseract_time_parameterization
if %ERRORLEVEL% GEQ 1 exit 1
colcon test-result --verbose
if %ERRORLEVEL% GEQ 1 exit 1
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,14 @@
local-name: ros_industrial_cmake_boilerplate
uri: https://github.com/ros-industrial/ros_industrial_cmake_boilerplate.git
version: 0.4.5
- git:
local-name: tesseract_ext
uri: https://github.com/ros-industrial-consortium/tesseract_ext.git
version: master
- git:
local-name: tesseract
uri: https://github.com/ros-industrial-consortium/tesseract.git
version: 0.17.0
version: master
- git:
local-name: trajopt
uri: https://github.com/ros-industrial-consortium/trajopt_ros.git
version: 0.5.2
version: master
- git:
local-name: descartes_light
uri: https://github.com/swri-robotics/descartes_light.git
Expand Down
45 changes: 0 additions & 45 deletions .github/workflows/windows_noetic_build.yml

This file was deleted.

2 changes: 1 addition & 1 deletion tesseract_examples/src/glass_upright_example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
*/
#include <tesseract_common/macros.h>
TESSERACT_COMMON_IGNORE_WARNINGS_PUSH
#include <jsoncpp/json/json.h>
#include <json/json.h>
#include <console_bridge/console.h>
TESSERACT_COMMON_IGNORE_WARNINGS_POP

Expand Down
2 changes: 1 addition & 1 deletion tesseract_examples/src/pick_and_place_example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
*/
#include <tesseract_common/macros.h>
TESSERACT_COMMON_IGNORE_WARNINGS_PUSH
#include <jsoncpp/json/json.h>
#include <json/json.h>
#include <console_bridge/console.h>
TESSERACT_COMMON_IGNORE_WARNINGS_POP

Expand Down
Loading

0 comments on commit 53c3df8

Please sign in to comment.