Ben and HP,
I was just now investigating that behavior and found the same issue. I've been experimenting with a fix and was able to resolve it as follows (in Windows using Visual Studio 2022, I have not tested in Linux yet):
In src\architecture\messaging\CMakeLists.txt, change line 51 to
COMMAND ${PYTHON_EXECUTABLE} generatePackageInit.py "${CMAKE_BINARY_DIR}/Basilisk/architecture/messaging/" "../../msgPayloadDefC/" "../../msgPayloadDefCpp/" "${EXTERNAL_MODULES_PATH}/msgPayloadDefC/" "${EXTERNAL_MODULES_PATH}/msgPayloadDefCpp/"
insert after line 29
include_directories("${EXTERNAL_MODULES_PATH}/")
insert after line 23
"-I${EXTERNAL_MODULES_PATH}/"
replace line 9 with
file(GLOB_RECURSE message_files RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}/" "../${searchDir}/*Payload.h"
"${EXTERNAL_MODULES_PATH}/${searchDir}/*Payload.h")
In src\architecture\messaging\newMessaging.ih change lines 33-35 to (ie remove "architecture/")
#include "folder/messageTypePayload.h"
%}
%include "folder/messageTypePayload.h"
(this is necessary because the external module messages are not nested under the "architecture" folder)
Cheers,
Chris Roscoe
Ten One Aerospace, LLC