ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

Well, the node you try to compile (I guess from this Tutorial, not the one you linked) doesn't find the header AddTwoInts.h for including.

Have you (strictly) followed this part of the tutorial for creating msg and srv? Is the ´AddTwoInts.srvin yourbeginner_tutorials` package?

If this doesn't help you, please post the contents of your CMakeLists.txt (by editing your post above).

Well, the node you try to compile (I guess from this Tutorial, not the one you linked) doesn't find the header AddTwoInts.h for including.

Have you (strictly) followed this part of the tutorial for creating msg and srv? Is the ´AddTwoInts.srvAddTwoInts.srv in youryour beginner_tutorialsbeginner_tutorials` package?

If this doesn't help you, please post the contents of your CMakeLists.txt (by editing your post above).

Well, the node you try to compile (I guess from this Tutorial, not the one you linked) doesn't find the header AddTwoInts.h for including.

Have you (strictly) followed this part of the tutorial for creating msg and srv? Is the AddTwoInts.srv in your beginner_tutorials package?

If this doesn't help you, please post the contents of your CMakeLists.txt (by editing your post above).


EDIT

Alright, the problem seems to be that you actually called the package/directory/project begginer_tutorials. The error says it cannot in include beginner_tutorials/AddTwoInts.h. Note the different spelling of begginer/beginner.

When you create msgs/srvs, the generated headers are placed in a subfolder with the name of the project. So please change the include to begginer_tutorials/AddTwoInts.h. This should resolve the issue. (Or, alternatively, rename the package as well as all occurences of begginer with beginner).