ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
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("~");