Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: humanoid-path-planner/hpp-corbaserver
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v4.14.0
Choose a base ref
...
head repository: humanoid-path-planner/hpp-corbaserver
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Loading
Showing with 1,327 additions and 671 deletions.
  1. +20 −0 .github/workflows/nix.yml
  2. +1 −1 .gitlab-ci.yml
  3. +11 −0 .mergify.yml
  4. +42 −36 .pre-commit-config.yaml
  5. +41 −5 CMakeLists.txt
  6. 0 COPYING → LICENSE
  7. +1 −1 cmake
  8. +4 −4 cmake-modules/omniidl/cxx_impl/__init__.py
  9. +136 −162 cmake-modules/omniidl/cxx_impl/main.py
  10. +22 −0 cmake-modules/omniidl/cxx_impl/template.py
  11. +47 −0 flake.lock
  12. +45 −0 flake.nix
  13. +1 −1 idl/hpp/common.idl
  14. +0 −9 idl/hpp/constraints_idl/constraints.idl
  15. +14 −0 idl/hpp/corbaserver/problem.idl
  16. +2 −0 idl/hpp/corbaserver/tools.idl
  17. +4 −0 idl/hpp/core_idl/_constraints.idl
  18. +2 −2 idl/hpp/core_idl/_problem.idl
  19. +9 −2 idl/hpp/core_idl/configuration_shooters.idl
  20. +2 −0 idl/hpp/core_idl/distances.idl
  21. +6 −6 idl/hpp/core_idl/path_planners.idl
  22. +10 −0 idl/hpp/core_idl/path_validations.idl
  23. +6 −0 idl/hpp/core_idl/paths.idl
  24. +21 −0 idl/hpp/core_idl/steering_methods.idl
  25. +22 −1 idl/hpp/pinocchio_idl/robots.idl
  26. +12 −15 include/hpp/corbaserver/conversions.hh
  27. +7 −11 include/hpp/corbaserver/fwd.hh
  28. +5 −5 include/hpp/corbaserver/object-map.hh
  29. +70 −0 include/hpp/corbaserver/read-write-lock.hh
  30. +26 −10 include/hpp/corbaserver/servant-base.hh
  31. +18 −18 include/hpp/corbaserver/server.hh
  32. +20 −38 include/hpp/corbaserver/{basic-server.hh → steering-method.hh}
  33. +4 −4 package.xml
  34. +27 −2 pyproject.toml
  35. +0 −4 setup.cfg
  36. +5 −3 src/CMakeLists.txt
  37. +40 −19 src/conversions.cc
  38. +6 −1 src/hpp-corbaserver.cc
  39. +1 −1 src/hpp/__init__.py
  40. +3 −3 src/hpp/corbaserver/__init__.py
  41. +9 −6 src/hpp/corbaserver/benchmark.py
  42. +19 −10 src/hpp/corbaserver/client.py
  43. +45 −68 src/hpp/corbaserver/ompl_benchmark_statistics.py
  44. +1 −1 src/hpp/corbaserver/problem_solver.py
  45. +1 −1 src/hpp/corbaserver/robot.py
  46. +11 −12 src/hpp/corbaserver/tools.py
  47. +6 −6 src/hpp/quaternion.py
  48. +3 −3 src/hpp/rostools.py
  49. +15 −12 src/hpp/test_quaternion.py
  50. +3 −2 src/hpp/transform.py
  51. +1 −0 src/hpp/utils.py
  52. +9 −9 src/object-map.cc
  53. +17 −21 src/obstacle.impl.cc
  54. +1 −1 src/obstacle.impl.hh
  55. +149 −83 src/problem.impl.cc
  56. +9 −0 src/problem.impl.hh
  57. +14 −38 src/robot.impl.cc
  58. +1 −1 src/robot.impl.hh
  59. +87 −25 src/server.cc
  60. +12 −0 tests/CMakeLists.txt
  61. +1 −2 tests/check_core_idl.py
  62. +19 −0 tests/delete_servant.py
  63. +3 −0 tests/hppcorbaserver.sh
  64. +52 −0 tests/path_serialization.py
  65. +42 −0 tests/port.py
  66. +46 −0 tests/problem.py
  67. +7 −4 tests/quat.py
  68. +30 −2 tests/robot.py
  69. +1 −0 tests/utils.py
20 changes: 20 additions & 0 deletions .github/workflows/nix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: "CI - Nix"

on:
push:

jobs:
tests:
name: "Nix build on ${{ matrix.os }}"
runs-on: "${{ matrix.os }}-latest"
strategy:
matrix:
os: [ubuntu]
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v27
- uses: cachix/cachix-action@v15
with:
name: gepetto
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: nix build -L
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include: http://rainboard.laas.fr/project/hpp-corbaserver/.gitlab-ci.yml
include: https://rainboard.laas.fr/project/hpp-corbaserver/.gitlab-ci.yml
11 changes: 11 additions & 0 deletions .mergify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
pull_request_rules:
- name: merge automatically when CI passes and PR is approved
conditions:
- check-success = "gitlab-ci"
- check-success = "Nix build on ubuntu"
- check-success = "pre-commit.ci - pr"
- or:
- author = pre-commit-ci[bot]
- author = dependabot[bot]
actions:
merge:
78 changes: 42 additions & 36 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,38 +1,44 @@
ci:
autoupdate_branch: 'devel'
autoupdate_branch: devel
repos:
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v14.0.6
hooks:
- id: clang-format
args: [--style=Google]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: check-added-large-files
- id: check-ast
- id: check-executables-have-shebangs
- id: check-json
- id: check-merge-conflict
- id: check-symlinks
- id: check-toml
- id: check-yaml
- id: debug-statements
- id: destroyed-symlinks
- id: detect-private-key
- id: end-of-file-fixer
- id: fix-byte-order-marker
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 22.8.0
hooks:
- id: black
- repo: https://github.com/PyCQA/flake8
rev: 5.0.4
hooks:
- id: flake8
- repo: https://github.com/cheshirekow/cmake-format-precommit
rev: v0.6.13
hooks:
- id: cmake-format
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.1
hooks:
- id: ruff
args:
- --fix
- --exit-non-zero-on-fix
- id: ruff-format
- repo: https://github.com/cheshirekow/cmake-format-precommit
rev: v0.6.13
hooks:
- id: cmake-format
- repo: https://github.com/pappasam/toml-sort
rev: v0.24.2
hooks:
- id: toml-sort-fix
exclude: poetry.lock
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v19.1.4
hooks:
- id: clang-format
args:
- --style=Google
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: check-ast
- id: check-executables-have-shebangs
- id: check-json
- id: check-merge-conflict
- id: check-symlinks
- id: check-toml
- id: check-yaml
- id: debug-statements
- id: destroyed-symlinks
- id: detect-private-key
- id: end-of-file-fixer
- id: fix-byte-order-marker
- id: mixed-line-ending
- id: trailing-whitespace
46 changes: 41 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -21,7 +21,7 @@
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

cmake_minimum_required(VERSION 3.1)
cmake_minimum_required(VERSION 3.10)

set(PROJECT_NAME hpp-corbaserver)
set(PROJECT_DESCRIPTION "Corba server for Humanoid Path Planner applications")
@@ -30,9 +30,40 @@ set(PROJECT_USE_CMAKE_EXPORT TRUE)
set(PROJECT_USE_KEYWORD_LINK_LIBRARIES TRUE)
set(CXX_DISABLE_WERROR true)

include(cmake/hpp.cmake)
include(cmake/idl.cmake)
include(cmake/python.cmake)
# Check if the submodule cmake have been initialized
set(JRL_CMAKE_MODULES "${CMAKE_CURRENT_LIST_DIR}/cmake")
if(EXISTS "${JRL_CMAKE_MODULES}/base.cmake")
message(STATUS "JRL cmakemodules found in 'cmake/' git submodule")
else()
find_package(jrl-cmakemodules QUIET CONFIG)
if(jrl-cmakemodules_FOUND)
get_property(
JRL_CMAKE_MODULES
TARGET jrl-cmakemodules::jrl-cmakemodules
PROPERTY INTERFACE_INCLUDE_DIRECTORIES)
message(STATUS "JRL cmakemodules found on system at ${JRL_CMAKE_MODULES}")
elseif(${CMAKE_VERSION} VERSION_LESS "3.14.0")
message(
FATAL_ERROR
"\nCan't find jrl-cmakemodules. Please either:\n"
" - use git submodule: 'git submodule update --init'\n"
" - or install https://github.com/jrl-umi3218/jrl-cmakemodules\n"
" - or upgrade your CMake version to >= 3.14 to allow automatic fetching\n"
)
else()
message(STATUS "JRL cmakemodules not found. Let's fetch it.")
include(FetchContent)
FetchContent_Declare(
"jrl-cmakemodules"
GIT_REPOSITORY "https://github.com/jrl-umi3218/jrl-cmakemodules.git")
FetchContent_MakeAvailable("jrl-cmakemodules")
FetchContent_GetProperties("jrl-cmakemodules" SOURCE_DIR JRL_CMAKE_MODULES)
endif()
endif()

include("${JRL_CMAKE_MODULES}/hpp.cmake")
include("${JRL_CMAKE_MODULES}/idl.cmake")
include("${JRL_CMAKE_MODULES}/python.cmake")

include(cmake-modules/omniidl.cmake)

@@ -46,12 +77,15 @@ project(${PROJECT_NAME} ${PROJECT_ARGS})
# Dependencies
add_required_dependency("omniORB4 >= 4.1.4")
add_required_dependency("omniDynamic4 >= 4.1.4")
findpython()
if(NOT CLIENT_ONLY)
add_project_dependency("hpp-core" REQUIRED)
add_project_dependency("hpp-template-corba" REQUIRED)
endif(NOT CLIENT_ONLY)

if(NOT FINDPYTHON_ALREADY_CALLED)
findpython()
endif()

set(ALL_IDL_CPP_STUBS "")
set(ALL_IDL_CPP_IMPL_STUBS "")
set(ALL_IDL_PYTHON_STUBS "")
@@ -68,6 +102,8 @@ if(NOT CLIENT_ONLY)
include/hpp/corbaserver/servant-base.hh
include/hpp/corbaserver/server.hh
include/hpp/corbaserver/server-plugin.hh
include/hpp/corbaserver/steering-method.hh
include/hpp/corbaserver/read-write-lock.hh
include/hpp/corbaserver/conversions.hh)
endif(NOT CLIENT_ONLY)

File renamed without changes.
2 changes: 1 addition & 1 deletion cmake
Submodule cmake updated 114 files
8 changes: 4 additions & 4 deletions cmake-modules/omniidl/cxx_impl/__init__.py
Original file line number Diff line number Diff line change
@@ -36,8 +36,9 @@

import os

from omniidl_be.cxx import id, config, util, ast, output, support, descriptor
from cxx_impl import main
from omniidl_be.cxx import ast, config, descriptor, id, output, support, util

from cxx_impl.main import Main

cpp_args = ["-D__OMNIIDL_CXX_IMPL__"]
usage_string = """\
@@ -238,8 +239,7 @@ def run(tree, backend_args):
hpp_stream = output.Stream(output.createFile(hpp_filename), 2)
hxx_stream = output.Stream(output.createFile(hxx_filename), 2)
cc_stream = output.Stream(output.createFile(cc_filename), 2)
main.self = main
main.__init__(
main = Main(
hpp_stream,
hxx_stream,
cc_stream,
Loading