ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
You are probably missing the #ifndef guards in your header file. In C++ you need to add:
#ifndef FOO_H
#define FOO_H
... header file contents ...
#endif
I really suggest that you dive into C++ a little more before continuing with ROS. A solid knowledge of that language will save you a lot of time.