-
Hi, I would like to use a target_pose_generator plugin with reach but outside the reach folder. What works I wrote a I added these lines in the
And this in the reach CMakelist:
And then I called it in the What I would like to do The thing I would like to do is to bundle this plugin in another package (that would be in the same catkin workspace than reach and reach_ros) . What I've tried My plugin code is in
To do that I got inspired by the reach_ros CMakeList. Here is my CMakeList:
What doesn't work With this setup, the workspace compiles successfully. However, when I try to use the plugin, I get the following error while trying to run the reach study node:
My workspace is sourced after compilation so this is not the problem. Do you have any idea about what could be the issue ? Am I doing anything wrong ? Thank you for your help. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
Did you set the |
Beta Was this translation helpful? Give feedback.
-
As discussed earlier, the error of the plugin not found by reach is now solved. However, I still have an issue related to the plugin being outside the reach folder. That's why I'll continue in this discussion. My plugin is basically inspired from the My factory has a create method, working exactly on the same structure than
However, this method only work when the plugin is inside the When I try to use it outside of the The only way I found to fix the error is to put this line I have no clue why this happen but I am pretty sure that there is no difference between the code outside the folder and inside the folder. Do you think something might be wrong with the reach code ? Or you are sure the error comes from my code ? Thanks a lot for your help. |
Beta Was this translation helpful? Give feedback.
Did you set the
REACH_PLUGINS
environment variable per this section of the README? This is how the plugin loader knows what libraries to look in for plugins. You don't have to set this for plugins defined in thereach
library because I've defined compile definitions to define the library and then add it manually to the plugin loader. For thereach_ros
demo, I set this environment variable in the start launch file