Thanks for the reply. Yes, I’ve also source after the 2nd catkin_make. Not just one file, all files return the same error.
This topic could be closed
I’ve solved the issue: Step 1:rosrun pkgname nodename to verify the node Step 2: Confirm that catkin_package(...) & include_directories(...) are placed before any executables Step 3:catkin_make and source
Thanks for the help, Girish. I’d suggest to add a reminder for 4.2 CMakeLists.txt in the course notebook.
On a side note, I would advise you to not delete the commented lines in the contents of CMakeLists.txt file.
I am assuming that you removed all the commented lines from CMakeLists.txt file and only retained the lines that are necessary - which made you jumble up the positions of the commands in the file.
So, just append or modify the existing contents in the future. DO NOT REMOVE / DELETE ANY LINES. Comment them out if you don’t require those lines.