Re: [ros-users] Param from launch file: node vs nodelet

Top Pagina
Bijlagen:
Bericht als e-mail
+ (text/plain)
Delete this message
Reply to this message
Auteur: User discussions
Datum:  
Aan: User discussions
Onderwerp: Re: [ros-users] Param from launch file: node vs nodelet
Hi Ivan,

When you create NH nh_private("~"), it makes a handle that references
the nodelet manager's private namespace, not that of the individual
nodelet. If possible you should use the
[nodelet::Nodelet::]getPrivateNodeHandle() method to find the proper
namespace. If you have a non-private NH for your nodelet already, you
could also use something like `NodeHandle private_nh(public_nh, "~")`

- Ken