Problem generating message headers for arduino [closed]
Hello !
I generate Encoders.h from the following code put in Encoders.msg.
Header header
int32 left
int32 right
I generate the .h file trhough the CmakeLists.txt:
find_package(catkin REQUIRED COMPONENTS message_generation geometry_msgs std_msgs)
add_message_files(
DIRECTORY msg
FILES
Encoders.msg
)
generate_messages(
DEPENDENCIES
std_msgs
geometry_msgs
)
catkin_package(CATKIN_DEPENDS message_runtime std_msgs)
install(DIRECTORY include/${PROJECT_NAME}/
DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
FILES_MATCHING PATTERN "*.h")
But at the end the Encoders.h file starts with:
#include <string>
#include <vector>
#include <map>
#include <ros/types.h>
#include <ros/serialization.h>
#include <ros/builtin_message_traits.h>
#include <ros/message_operations.h>
#include <std_msgs/Header.h>
But all these files that need to be included are not found by arduino ide. What's more, when I fill in the path to the files, there are new problems because ros/serialization.h tries to include shared_array.hpp file ... but .hpp is not supported by arduino.
What do I need to check? How am I supposed to generate message headers for arduino?