Nodelets from 2 different pkg
Hi. How Can I use different node as a nodelet in my pkg?
For example, I have two pkg: first: just pkg, just node, without nodelet. second: nodelet pkg. And I want to include node from first pkg as a nodelet.
Asked by listenreality on 2019-10-16 06:25:21 UTC
Answers
How Can I use different node as a nodelet in my pkg?
Nodes cannot be used as nodelets. So what you ask is not supported right now.
Whether something is a node or a nodelet is a programming-time decision (ie: there are different ways in which you create a node or a nodelet). This cannot be changed in ROS 1.
If however you are asking whether it's possible to load a nodelet from another package, then that would be fully supported. If you could clarify we can address that question.
Edit:
So, it means: one nodelet manager = one pkg. Cannot include nodelet from other pkg?
from your edit it would appear you're actually interested in loading nodelets from other packages.
That is fully supported. Nodelets are "just" plugins (literally: they're stored in .so
(shared libraries)).
As long as the nodelets you want to load into a manager are on the search path (ie: part of your workspace, or any of its underlays) you can load them.
Asked by gvdhoorn on 2019-10-16 06:42:42 UTC
Comments
Want to clarify " This cannot be changed" you can change package 1 to be a nodelet if you want, it requires some programming but shouldn't be too hard then you can do as they've described. But to echo, what the user is asking for is not possible.
Asked by stevemacenski on 2019-10-16 13:13:13 UTC
Of course, everything can be changed. But that could very well require non-trivial effort.
And you're assuming that you have access to the source. Which may not actually be true.
My answer was an answer for the general question as stated by the OP: "how can I use a [different] node as a nodelet?"
Asked by gvdhoorn on 2019-10-16 14:27:47 UTC
So, it means: one nodelet manager = one pkg. Cannot include nodelet from other pkg?
Asked by listenreality on 2019-10-16 21:39:21 UTC
one nodelet manager can load any nodelet from any package. Any nodelet manager cannot load any node
Asked by stevemacenski on 2019-10-16 21:42:49 UTC
thank you all for help!
Asked by listenreality on 2019-10-16 21:54:35 UTC
Comments