Skip to content

Fix package installation for ros2 - #156

Merged
Gonzalo-Mier merged 14 commits into
Fields2Cover:mainfrom
aosmw:main
Jun 17, 2024
Merged

Gonzalo-Mier merged 14 commits into
Fields2Cover:mainfrom
aosmw:main

Conversation

@aosmw

@aosmw aosmw commented Jun 5, 2024 •

Copy link
Copy Markdown
Contributor

This is not yet ready but might be worth more eyes.

I install the ortools into opt/f2c_ortools
I tweak the fields2coverConfig.cmake to find it.

You may not want the change I did to pull spline.h into the repository rather than use it through FetchContent.
It does some packaging stuff that I don't think is correct.
It is a header only library.

The python/swig setup is needs help to find the ortools libraries.

export LD_LIBRARY_PATH=/opt/ros/rolling/opt/f2c_ortools/lib
$python3
Python 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import fields2cover

@aosmw
aosmw marked this pull request as draft June 5, 2024 12:17
@Gonzalo-Mier

Gonzalo-Mier commented Jun 5, 2024 •

Copy link
Copy Markdown
Member

I was actually planning to remove the spline library and use https://github.com/SplineLib/SplineLib instead if any.

aosmw added 2 commits June 8, 2024 11:29
With ortools_vendor working properly this would be the
preferred version to work with ROS2.

Change default document to need -DUSE_ORTOOLS_RELEASE=ON

The alternative would be to put the relevant build
flags into the ros release description
https://github.com/ros2-gbp/fields2cover-release

Remove ros dependency protobuf-dev as it is provided
by a properly released ortools_vendor
@aosmw

aosmw commented Jun 8, 2024

Copy link
Copy Markdown
Contributor Author

Requires Fields2Cover/ortools_vendor#3 to be merged and bloom released.

@aosmw

aosmw commented Jun 10, 2024

Copy link
Copy Markdown
Contributor Author

Fields2Cover/ortools_vendor#3 got merged but https://build.ros2.org has been down since 8th June 2024 1:37pm so there is no package of ortools_vendor to allow the next step.

image

@Gonzalo-Mier

Copy link
Copy Markdown
Member

@aosmw aosmw left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Gonzalo-Mier - Ready for review.

Comment thread CMakeLists.txt Resolved
Comment thread swig/python/CMakeLists.txt Resolved
Comment thread include/spline/spline.h Resolved
Comment thread swig/python/CMakeLists.txt Resolved
Comment thread package.xml Resolved
Comment thread CMakeLists.txt Resolved
Comment thread cmake/Fields2CoverConfig.cmake.in Resolved
Comment thread cmake/Fields2CoverConfig.cmake.in Resolved
@aosmw aosmw changed the title WIP Not ready for merge - Fix package installation for ros2 Fix package installation for ros2 Jun 14, 2024
@aosmw
aosmw marked this pull request as ready for review June 14, 2024 00:25
@Gonzalo-Mier
Gonzalo-Mier merged commit 485988e into Fields2Cover:main Jun 17, 2024
@Gonzalo-Mier

Copy link
Copy Markdown
Member

Thank you really much for the PR. I'm not completely sure how easy is for non-ROS-users to install F2C now, mainly due to ortools_vendors.

AronMeyn pushed a commit to AronMeyn/Fields2Cover---tryouttool that referenced this pull request Sep 12, 2025
Fix package installation for ros2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants