ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version
  1. A nodehandle is a RAII (resource acquisition is initialization) type according to source: ros.org. RAII is a C++ term meaning that resources are cleanup up afterwards when the object goes out of scope. In rospy the nodehandle-like class is the rospy module itself. Both solutions seems more idiomatic to their languages, but that is a guess on my part.
  2. Private node handles are a way to access names private to the ROS node, which would create ambiguous names in some situations otherwise. They are a nodehandle to a different namespace. AccessingPrivateNamesWithNodeHandle. I have not used them myself.
  3. underscores at the end of a member variable are a C++ convention. As with all C++ things, this is not universal and will differ in different organisations.
  1. A nodehandle is a RAII (resource acquisition is initialization) type according to source: ros.orgros.org - NodeHandles. RAII is a C++ term meaning that resources are cleanup up afterwards when the object goes out of scope. In rospy the nodehandle-like class is the rospy module itself. Both solutions seems more idiomatic to their languages, but that is a guess on my part.
  2. Private node handles are a way to access names private to the ROS node, which would create ambiguous names in some situations otherwise. They are a nodehandle to a different namespace. ros.org - AccessingPrivateNamesWithNodeHandle. I have not used them myself.
  3. underscores at the end of a member variable are a C++ convention. As with all C++ things, this is not universal and will differ in different organisations. organisations.