Tesseract
Motion Planning Environment
Loading...
Searching...
No Matches
Classes | Namespaces | Macros
serialization.h File Reference

Additional Boost serialization wrappers. More...

#include <tesseract_common/macros.h>
#include <variant>
#include <Eigen/Dense>
#include <fstream>
#include <sstream>
#include <boost/archive/xml_oarchive.hpp>
#include <boost/archive/xml_iarchive.hpp>
#include <boost/archive/binary_oarchive.hpp>
#include <boost/archive/binary_iarchive.hpp>
#include <boost/serialization/tracking.hpp>
#include <boost/serialization/tracking_enum.hpp>
#include <tesseract_common/types.h>
#include <tesseract_common/serialization_extensions.h>
Include dependency graph for serialization.h:

Go to the source code of this file.

Classes

struct  tesseract_common::Serialization
 

Namespaces

namespace  tesseract_common
 

Macros

#define COMMA   ,
 
#define TESSERACT_SERIALIZE_ARCHIVES_INSTANTIATE(Type)
 
#define TESSERACT_SERIALIZE_SAVE_LOAD_ARCHIVES_INSTANTIATE(Type)
 
#define TESSERACT_SERIALIZE_SAVE_LOAD_FREE_ARCHIVES_INSTANTIATE(Type)
 

Detailed Description

Additional Boost serialization wrappers.

Boost serialization macros and helpers.

Supports the following

Author
Levi Armstrong
Date
February 21, 2021
Version
TODO
Bug:
No known bugs
License
Software License Agreement (Apache License)
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Author
Levi Armstrong
Matthew Powelson
Date
March 16, 2022
Version
TODO
Bug:
No known bugs
License
Software License Agreement (Apache License)
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Macro Definition Documentation

◆ COMMA

#define COMMA   ,

◆ TESSERACT_SERIALIZE_ARCHIVES_INSTANTIATE

#define TESSERACT_SERIALIZE_ARCHIVES_INSTANTIATE (   Type)
Value:
template void Type::serialize(boost::archive::xml_oarchive& ar, const unsigned int version); \
template void Type::serialize(boost::archive::xml_iarchive& ar, const unsigned int version); \
template void Type::serialize(boost::archive::binary_oarchive& ar, const unsigned int version); \
template void Type::serialize(boost::archive::binary_iarchive& ar, const unsigned int version);

◆ TESSERACT_SERIALIZE_SAVE_LOAD_ARCHIVES_INSTANTIATE

#define TESSERACT_SERIALIZE_SAVE_LOAD_ARCHIVES_INSTANTIATE (   Type)
Value:
template void Type::serialize(boost::archive::xml_oarchive& ar, const unsigned int version); \
template void Type::serialize(boost::archive::xml_iarchive& ar, const unsigned int version); \
template void Type::serialize(boost::archive::binary_oarchive& ar, const unsigned int version); \
template void Type::serialize(boost::archive::binary_iarchive& ar, const unsigned int version); \
template void Type::save(boost::archive::xml_oarchive&, const unsigned int version) const; \
template void Type::load(boost::archive::xml_iarchive& ar, const unsigned int version); \
template void Type::save(boost::archive::binary_oarchive&, const unsigned int version) const; \
template void Type::load(boost::archive::binary_iarchive& ar, const unsigned int version);

◆ TESSERACT_SERIALIZE_SAVE_LOAD_FREE_ARCHIVES_INSTANTIATE

#define TESSERACT_SERIALIZE_SAVE_LOAD_FREE_ARCHIVES_INSTANTIATE (   Type)
Value:
boost::archive::xml_oarchive& ar, Type& g, const unsigned int version); /* NOLINT */ \
boost::archive::xml_iarchive& ar, Type& g, const unsigned int version); /* NOLINT */ \
boost::archive::binary_oarchive& ar, Type& g, const unsigned int version); /* NOLINT */ \
boost::archive::binary_iarchive& ar, Type& g, const unsigned int version); /* NOLINT */ \
template void boost::serialization::save( \
boost::archive::xml_oarchive&, const Type& g, const unsigned int version); /* NOLINT */ \
template void boost::serialization::load( \
boost::archive::xml_iarchive& ar, Type& g, const unsigned int version); /* NOLINT */ \
template void boost::serialization::save( \
boost::archive::binary_oarchive&, const Type& g, const unsigned int version); /* NOLINT */ \
template void boost::serialization::load( \
boost::archive::binary_iarchive& ar, Type& g, const unsigned int version); /* NOLINT */
void serialize(Archive &ar, tesseract_collision::ContactResult &g, const unsigned int version)
Definition: serialization.cpp:85
void load(Archive &ar, tesseract_collision::ContactResult &g, const unsigned int version)
Definition: serialization.cpp:67
void save(Archive &ar, const tesseract_collision::ContactResult &g, const unsigned int version)
Definition: serialization.cpp:49
SceneGraph g
Definition: tesseract_srdf_unit.cpp:239