Hello everybody,

I know that this question has been asked several times, I have looked at all the existing subjects but I have not found the solution to my problem.

I created a "Num.msg" message that I want to use, but I can't include its "Num.h" header because it can't be found.

I don't have any error when I do catkin_make.

here is my CmakeLists

cmake_minimum_required(VERSION 3.0.2)
project(shelflocation_state_coordinator)

find_package(catkin REQUIRED COMPONENTS
roscpp
rospy
std_msgs
message_generation
)

DIRECTORY msg
FILES
Num.msg
)

generate_messages(
DEPENDENCIES
std_msgs
)

catkin_package(
INCLUDE_DIRS include
CATKIN_DEPENDS message_runtime std_msgs

)

include_directories(
include
${catkin_INCLUDE_DIRS} ) add_library(Channel src/Channel.cpp) add_library(TX_DB src/TX_DB.cpp) add_library(LimitSwitch src/LimitSwitch.cpp) add_library(DrivingMotor src/DrivingMotor.cpp) add_library(Encoder src/Encoder.cpp) add_library(Shelf src/Shelf.cpp) add_library(Display src/Display.cpp) add_library(Curtain src/Curtain.cpp) add_library(Location src/Location.cpp) add_executable(Controller src/Controller.cpp) target_link_libraries(Controller Location Display Curtain Shelf Encoder DrivingMotor LimitSwitch TX_DB Channel${catkin_LIBRARIES})