Skip to content

Commit

Permalink
Add any poly support for environment
Browse files Browse the repository at this point in the history
  • Loading branch information
Levi-Armstrong committed Jul 24, 2024
1 parent 5ec82a0 commit 90476c9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ TESSERACT_COMMON_IGNORE_WARNINGS_POP

#include <tesseract_common/filesystem.h>
#include <tesseract_common/eigen_types.h>
#include <tesseract_common/any_poly.h>

namespace boost::serialization
{
Expand Down Expand Up @@ -551,4 +552,7 @@ class Environment
};
} // namespace tesseract_environment

TESSERACT_ANY_EXPORT_KEY(std::shared_ptr<const tesseract_environment::Environment>,
TesseractEnvironmentEnvironmentConstSharedPtr)
TESSERACT_ANY_EXPORT_KEY(std::shared_ptr<tesseract_environment::Environment>, TesseractEnvironmentEnvironmentSharedPtr)
#endif // TESSERACT_ENVIRONMENT_ENVIRONMENT_H
3 changes: 3 additions & 0 deletions tesseract_environment/src/environment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2691,3 +2691,6 @@ void Environment::serialize(Archive& ar, const unsigned int version)

#include <tesseract_common/serialization.h>
TESSERACT_SERIALIZE_ARCHIVES_INSTANTIATE(tesseract_environment::Environment)

TESSERACT_ANY_EXPORT_IMPLEMENT(TesseractEnvironmentEnvironmentConstSharedPtr)
TESSERACT_ANY_EXPORT_IMPLEMENT(TesseractEnvironmentEnvironmentSharedPtr)

0 comments on commit 90476c9

Please sign in to comment.