ROS NodeHandles : nh_ vs nh_priv_
1) What exactly is a Nodehandle? Why are they only in C++ and not in Python?
2) In many C++ header files of a ROS package (for example this one), I have seen people declaring 2 NodeHandles namely, nh_
and nh_priv_
.
Why are there 2 NodeHandles in the same code and what does the underscore _ at the end of both the identifiers mean?
Would like to know about these in more detail, resources would be amazing to get.
Help is appreciated, TIA
Probably not what you came here to hear, but could you list the Q&As you've already found on this site which discuss this topic? Personally I always use Google to search and append
site:answers.ros.org
to my query.There's a very good chance both of your questions have been discussed before, and we should try to a) avoid duplicates and b) avoid repeating discussions.
By listing existing Q&As in your own question, you can help us help you.