Skip to content

Commit be58dda

Browse files
fixup
1 parent 0fe7e31 commit be58dda

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

tesseract_common/include/tesseract_common/serialization.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ TESSERACT_COMMON_IGNORE_WARNINGS_PUSH
3838
#include <boost/archive/binary_iarchive.hpp>
3939
#include <boost/serialization/tracking.hpp>
4040
#include <boost/serialization/tracking_enum.hpp>
41+
#include <boost/uuid/uuid_io.hpp>
42+
#include <boost/uuid/uuid_serialize.hpp>
4143
TESSERACT_COMMON_IGNORE_WARNINGS_POP
4244

4345
#include <tesseract_common/types.h>

tesseract_common/include/tesseract_common/tool_path.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@
2727
#define TESSERACT_COMMON_TOOL_PATH_H
2828

2929
#include <string>
30+
#include <boost/uuid/uuid.hpp>
3031
#include <tesseract_common/tool_path_segment.h>
32+
#include <tesseract_common/serialization.h>
3133

3234
namespace tesseract_common
3335
{
@@ -235,11 +237,16 @@ class ToolPath
235237
/** @brief The namespace associated with the tool path */
236238
std::string ns_{ "general" };
237239

240+
friend struct tesseract_common::Serialization;
238241
friend class boost::serialization::access;
239242
template <class Archive>
240243
void serialize(Archive& ar, const unsigned int version); // NOLINT
241244
};
242245

243246
} // namespace tesseract_common
244247

248+
#include <boost/serialization/export.hpp>
249+
#include <boost/serialization/tracking.hpp>
250+
BOOST_CLASS_EXPORT_KEY2(tesseract_common::ToolPath, "ToolPath")
251+
245252
#endif // TESSERACT_COMMON_TOOL_PATH_H

tesseract_common/include/tesseract_common/tool_path_segment.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
#include <string>
3030
#include <boost/uuid/uuid.hpp>
3131
#include <tesseract_common/types.h>
32+
#include <tesseract_common/serialization.h>
3233

3334
namespace tesseract_common
3435
{
@@ -219,10 +220,16 @@ class ToolPathSegment
219220
/** @brief The container */
220221
VectorIsometry3d container_;
221222

223+
friend struct tesseract_common::Serialization;
222224
friend class boost::serialization::access;
223225
template <class Archive>
224226
void serialize(Archive& ar, const unsigned int version); // NOLINT
225227
};
226228

227229
} // namespace tesseract_common
230+
231+
#include <boost/serialization/export.hpp>
232+
#include <boost/serialization/tracking.hpp>
233+
BOOST_CLASS_EXPORT_KEY2(tesseract_common::ToolPathSegment, "ToolPathSegment")
234+
228235
#endif // TESSERACT_COMMON_TOOL_PATH_SEGMENT_H

0 commit comments

Comments
 (0)