#include <serializer.h>
Public Member Functions | |
size_t | getHash (const std::vector< signed char > &_map, const std::vector< double > &_parameters) const |
generate a hash from a _map More... | |
bool | load (const std::string &_mapPath, std::vector< Segment > &_segs, Eigen::Vector2d &_origin, float &_resolution) |
loads a graph from memory which is saved in plain text More... | |
bool | load (const std::string &_mapPath, std::vector< Segment > &_segs, Eigen::Vector2d &_origin, float &_resolution, cv::Mat &_map) |
loads a graph from memory which is saved in plain text More... | |
void | save (const std::string &_mapPath, const std::vector< Segment > &_segs, const Eigen::Vector2d &_origin, const float &_resolution) |
saves the graph to a specific path in xml format More... | |
void | save (const std::string &_mapPath, const std::vector< Segment > &_segs, const Eigen::Vector2d &_origin, const float &_resolution, const cv::Mat &_map) |
saves the graph to a specific path in xml format More... | |
Serializer () | |
Definition at line 217 of file serializer.h.
tuw_graph::Serializer::Serializer | ( | ) |
Definition at line 20 of file serializer.cpp.
std::size_t tuw_graph::Serializer::getHash | ( | const std::vector< signed char > & | _map, |
const std::vector< double > & | _parameters | ||
) | const |
generate a hash from a _map
_map | the map data used for the hash |
_parameters | parameters to check for changes |
Definition at line 25 of file serializer.cpp.
bool tuw_graph::Serializer::load | ( | const std::string & | _mapPath, |
std::vector< Segment > & | _segs, | ||
Eigen::Vector2d & | _origin, | ||
float & | _resolution | ||
) |
loads a graph from memory which is saved in plain text
_mapPath | the save path of the graph |
_segs | the segments generated Segments for the graph |
_origin | the origin of the graph |
_resolution | the resolution of the graph |
Definition at line 43 of file serializer.cpp.
bool tuw_graph::Serializer::load | ( | const std::string & | _mapPath, |
std::vector< Segment > & | _segs, | ||
Eigen::Vector2d & | _origin, | ||
float & | _resolution, | ||
cv::Mat & | _map | ||
) |
loads a graph from memory which is saved in plain text
_mapPath | the save path of the graph |
_segs | the segments generated Segments for the graph |
_origin | the origin of the graph |
_resolution | the resolution of the graph |
_map | map on which the graph is based |
Definition at line 140 of file serializer.cpp.
void tuw_graph::Serializer::save | ( | const std::string & | _mapPath, |
const std::vector< Segment > & | _segs, | ||
const Eigen::Vector2d & | _origin, | ||
const float & | _resolution | ||
) |
saves the graph to a specific path in xml format
saves the map in the given location
_mapPath | the save path of the graph |
_segs | the segments generated Segments for the graph |
_origin | the origin of the graph |
_resolution | the resolution of the graph |
mapInfo | the name of the mapInfo file |
Definition at line 153 of file serializer.cpp.
void tuw_graph::Serializer::save | ( | const std::string & | _mapPath, |
const std::vector< Segment > & | _segs, | ||
const Eigen::Vector2d & | _origin, | ||
const float & | _resolution, | ||
const cv::Mat & | _map | ||
) |
saves the graph to a specific path in xml format
_mapPath | the save path of the graph |
_segs | the segments generated Segments for the graph |
_origin | the origin of the graph |
_resolution | the resolution of the graph |
_map | map on which the graph is based |
Definition at line 191 of file serializer.cpp.