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

answered 2012-04-18 06:07:22 -0500

joq gravatar image

As a general rule (there are exceptions), you should access parameters using getPrivateNodeHandle(), and topics via getNodeHandle().

That is because parameters are (generally) private to your nodelet, while topics will be shared with other nodes and nodelets.