#include <serializer.h>
Public Member Functions | |
size_t | getHash (const std::vector< signed char > &_map, Eigen::Vector2d _origin, float _resolution) |
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... | |
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... | |
Serializer () | |
Definition at line 218 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, |
Eigen::Vector2d | _origin, | ||
float | _resolution | ||
) |
generate a hash from a _map
_map | the map data used for the hash |
_origin | the origin of the graph |
_resolution | the resolution of the graph |
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 42 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 142 of file serializer.cpp.