Unify master and ros2 branches (merge ros2 into master)#158
Unify master and ros2 branches (merge ros2 into master)#158clalancette merged 64 commits intoros:masterfrom
Conversation
This reverts commit 2884900.
fix install routine
* find debug libraries correctly * cleanup cmake file. remove messages * set optimized/debug keywords correctly in place * style
We're shadowing this key for r2b2 since upstream is out of date but we should use the rosdep key so we can eventually target upstream. ros2/robot_model#1
fix CMake policy 42 warning
* skip test directory when building tests is not requested * include CTest
Port upstream PRs 111 and 112 addressing linker warning
* Change debug / optimized for generator expressions Signed-off-by: Luca Della Vedova <luca@openrobotics.org> * Fixed brackets and variable name Signed-off-by: Luca Della Vedova <luca@openrobotics.org>
Signed-off-by: Dirk Thomas <dirk-thomas@users.noreply.github.com>
Before doing that, I did a refactor since all libraries were repeating a good bunch of code. bab00d9 On top of that:
Ouch, my bad. Reverted d6d0303
I think all them are fixed. CI seems happy https://github.com/j-rivero/urdfdom/actions Thanks Chris for the review. |
clalancette
left a comment
There was a problem hiding this comment.
I've left a few more comments. This is getting pretty close now.
| target_compile_features(${add_urdfdom_library_LIBNAME} PUBLIC cxx_std_14) | ||
| endif() | ||
| set_target_properties(${add_urdfdom_library_LIBNAME} PROPERTIES | ||
| DEFINE_SYMBOL URDFDOM_EXPORTS |
There was a problem hiding this comment.
I'm OK with making this change, but we need to make sure that this still compiles on Windows in both Release and Debug mode, and that downstream packages can still call it.
Signed-off-by: Jose Luis Rivero <jrivero@osrfoundation.org>
Signed-off-by: Jose Luis Rivero <jrivero@osrfoundation.org>
Signed-off-by: Jose Luis Rivero <jrivero@osrfoundation.org>
Signed-off-by: Jose Luis Rivero <jrivero@osrfoundation.org>
Signed-off-by: Jose Luis Rivero <jrivero@osrfoundation.org>
Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
… jrivero/ros2-merge
clalancette
left a comment
There was a problem hiding this comment.
I left one nit inline, and it looks like @traversaro did as well. Other than those two things, this looks good to me, so I'm going to approve. Once the nits are fixed, we should definitely run CI on this full change in the context of ROS 2.
Co-authored-by: Silvio Traversaro <silvio.traversaro@iit.it>
Signed-off-by: Jose Luis Rivero <jrivero@osrfoundation.org>
This is fine for a first pass, but before we merge I'll suggest we run another CI run with testing |
clalancette
left a comment
There was a problem hiding this comment.
CI looks good here, and Windows Debug was happy as well, so this looks good to me.
The failures on macOS are because the vendored version of gtest in urdfdom is way out of date (1.7.0 vs 1.10.0 that we use in ament). In order to keep the size of this PR down, I discussed with @j-rivero offline about opening a separate PR that just updates gtest to 1.10.0. I'll suggest we hold off on merging this PR until that one is ready to go; once that one is ready, we can merge this, then quickly merge that one, and keep CI green.
In ros/urdfdom#158 and ros/urdfdom#161, we merged the ros2 branch onto the master branch so there would be single, unified release branch for all of urdfdom. Now that that is done, we should switch to using the master branch of urdfdom.
In ros/urdfdom#158 and ros/urdfdom#161, we merged the ros2 branch onto the master branch so there would be single, unified release branch for all of urdfdom. Now that that is done, we should switch to using the master branch of urdfdom.
In ros/urdfdom#158 and ros/urdfdom#161, we merged the ros2 branch onto the master branch so there would be single, unified release branch for all of urdfdom. Now that that is done, we should switch to using the master branch of urdfdom.
This PR is a continuation of the work done by @clalancette in #157 (please read all details in the description), after the proposal of modifying the way of merging (merge and not rebase) both branches #157 (comment).
I've made a merge in the
masterbranch ofros2branch in ae6b61d and solve/import some missing pieces in 5a729c1.Some details I changed on top of Chris work:
e577e81 for the lack of components in CMake.
Testing is not enabled yet in this repo, can be checked out in my fork https://github.com/j-rivero/urdfdom/actions
CI can be easily extended to all the existing platforms and with a bit more of effort to Mac and Windows. The option of including more or change ROS1/ROS2 distributions could go into this PR, for new operative system I would prefer to do it in different PRs.