diff --git a/tesseract_common/include/tesseract_common/serialization.h b/tesseract_common/include/tesseract_common/serialization.h index e84b4a23727..1e04ec04725 100644 --- a/tesseract_common/include/tesseract_common/serialization.h +++ b/tesseract_common/include/tesseract_common/serialization.h @@ -38,6 +38,8 @@ TESSERACT_COMMON_IGNORE_WARNINGS_PUSH #include #include #include +#include +#include TESSERACT_COMMON_IGNORE_WARNINGS_POP #include diff --git a/tesseract_common/include/tesseract_common/tool_path.h b/tesseract_common/include/tesseract_common/tool_path.h index edd057302c8..a2e51edf031 100644 --- a/tesseract_common/include/tesseract_common/tool_path.h +++ b/tesseract_common/include/tesseract_common/tool_path.h @@ -27,7 +27,9 @@ #define TESSERACT_COMMON_TOOL_PATH_H #include +#include #include +#include namespace tesseract_common { @@ -235,6 +237,7 @@ class ToolPath /** @brief The namespace associated with the tool path */ std::string ns_{ "general" }; + friend struct tesseract_common::Serialization; friend class boost::serialization::access; template void serialize(Archive& ar, const unsigned int version); // NOLINT @@ -242,4 +245,8 @@ class ToolPath } // namespace tesseract_common +#include +#include +BOOST_CLASS_EXPORT_KEY2(tesseract_common::ToolPath, "ToolPath") + #endif // TESSERACT_COMMON_TOOL_PATH_H diff --git a/tesseract_common/include/tesseract_common/tool_path_segment.h b/tesseract_common/include/tesseract_common/tool_path_segment.h index 1bdc1280e6f..33ace2cde98 100644 --- a/tesseract_common/include/tesseract_common/tool_path_segment.h +++ b/tesseract_common/include/tesseract_common/tool_path_segment.h @@ -29,6 +29,7 @@ #include #include #include +#include namespace tesseract_common { @@ -219,10 +220,16 @@ class ToolPathSegment /** @brief The container */ VectorIsometry3d container_; + friend struct tesseract_common::Serialization; friend class boost::serialization::access; template void serialize(Archive& ar, const unsigned int version); // NOLINT }; } // namespace tesseract_common + +#include +#include +BOOST_CLASS_EXPORT_KEY2(tesseract_common::ToolPathSegment, "ToolPathSegment") + #endif // TESSERACT_COMMON_TOOL_PATH_SEGMENT_H