Repository navigation
fixing the test utilities in moveit core - #1409
Conversation
|
Of interest to @rhaschke and @BryceStevenWilley |
rhaschke
left a comment
There was a problem hiding this comment.
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.
| @@ -1,35 +1,30 @@ | |||
| set(MOVEIT_LIB_NAME moveit_utils) | |||
|
|
|||
| find_package(moveit_resources REQUIRED) | |||
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
The most recent commit keeps moveit_resources as a test_depend and replaces MOVEIT_TEST_RESOURCES_DIR with ros::packages::getPath(moveit_resources)
There was a problem hiding this comment.
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.
f3b47bd to
298e601
Compare
rhaschke
left a comment
There was a problem hiding this comment.
LGTM. Let's wait for Travis to verify this as well 😉
|
Great fixup Mike! |
* fixing the test utilities in moveit core * replacing MOVEIT_TEST_RESOURCES_DIR with getPath(moveit_resources)
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