ROS message subfolder
Hi, I noticed that ROS does not correctly see message files in subfolders of the "msg" folder. The add_message_files command can take a DIRECTORY command which works partly:
add_message_files(
DIRECTORY
msg/subfolder1
FILES
testmessage.msg
)
Both catkin_make_isolated
and catkin build
run perfectly but after a source devel/setup.bash
, the rosmsg list
command does not show this testmessage. If I change the subfolder name to something different in the CMakeLists file, cmake complaints about the missing path. Hence, the folder path is recognized partly.
The only solution I found was to move all message files out of subfolders such they are directly placed at e.g., msg/testmessage.msg
. Then, the rosmsg list
command shows the message.
Is there another way to use subfolders for message definitions?
Thanks!