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

One of the reasons this is happening is because you are using a public nodehandle, instead of a private one. For the difference between the two, go through this page - http://wiki.ros.org/roscpp/Overview/NodeHandles

A private nodehandle is initialized as so - ros::NodeHandle nh_private("~");