Skip to content

fixing the test utilities in moveit core - #1409

Merged
mlautman merged 4 commits into
masterfrom
test-util-fixup
Mar 20, 2019
Merged

mlautman merged 4 commits into
masterfrom
test-util-fixup

Conversation

@mlautman

Copy link
Copy Markdown
Contributor

This fixes an issue with the test utils where it was only getting built during testing and wasn't being exported as a library.

This enables moveit/moveit_tutorials#295 to build and run as expected

@mlautman

Copy link
Copy Markdown
Contributor Author

Of interest to @rhaschke and @BryceStevenWilley

@rhaschke rhaschke left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Originally, libmoveit_test_utils was intended to be used during testing mode only.
That's why it wasn't installed. I'm fine though, to change this if we accept moveit_resources to become a dependency of moveit_core.

Comment thread moveit_core/utils/CMakeLists.txt Outdated
@@ -1,35 +1,30 @@
set(MOVEIT_LIB_NAME moveit_utils)

find_package(moveit_resources REQUIRED)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Lifting moveit_resources to the normal build, requires an appropriate dependency change in package.xml - one reason, why we decided to build this lib in testing mode only.

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.

Good point.

It seems to me that elevating moveit_resources to a normal dependency is inevitable if we want to be able to use libmoveit_test_utils outside of the moveit_core package. At that point, I'm not entirely sure we need moveit_test_utils to be separate from moveit_utils.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

libmoveit_test_utils should be definitely different from moveit_utils, as it depends on gtest!
One option to avoid the moveit_resources dependency, is to find another way (e.g. using rospack) to find the path to the moveit_resources package.

@mlautman mlautman Mar 20, 2019 •

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.

The most recent commit keeps moveit_resources as a test_depend and replaces MOVEIT_TEST_RESOURCES_DIR with ros::packages::getPath(moveit_resources)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Great work! If you replaced all occurrences of MOVEIT_TEST_RESOURCES_DIR, in future we might want to remove the corresponding generator code from cmake as well, which I always considered clumsy.

@mlautman
mlautman requested a review from zkingston as a code owner March 20, 2019 19:19

@rhaschke rhaschke left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. Let's wait for Travis to verify this as well 😉

@mlautman
mlautman merged commit e1e13bc into master Mar 20, 2019
@mlautman
mlautman deleted the test-util-fixup branch March 20, 2019 21:39
rhaschke added a commit to ubi-agni/moveit that referenced this pull request Mar 23, 2019
@davetcoleman

Copy link
Copy Markdown
Member

Great fixup Mike!

vmayoral added a commit to AcutronicRobotics/moveit2 that referenced this pull request Mar 30, 2019
rhaschke pushed a commit to ubi-agni/moveit that referenced this pull request May 11, 2019
* fixing the test utilities in moveit core
* replacing MOVEIT_TEST_RESOURCES_DIR with getPath(moveit_resources)
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.

3 participants