I am experiencing an issue exactly like the one found here, but maybe I can re-explain the steps that led me to the issue. Every package in my workspace can no longer can find header files for any of my custom service messages.
I was able to compile and run my packages, I logged off and when I came back I encountered this error:
/home/user/catkin_ws/src/my_cpp_class/src/bb8_move_duration_srv_class.cpp:2:42: fatal error: my_cpp_class/durationservice.h: No such file or directory
The package that is causing error was not a package I was working on at the time. If I delete this package and try catkin make, then the next package with custom service messages raises this same error.
Now, if I do the following then everything works:
- comment out the add executable lines in my makefile
- compile the package
- source devel/setup.bash
- uncomment the add executable lines
What is puzzling to me is that all of these packages (makefiles, launch, executables, etc.) were not edited and working before encountering this error.