ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
I had this problem before. In my case, I call a function that has ros publisher in it before declare pub = n.advertise ... in main()
Maybe this will help you