Public Member Functions | List of all members
tuw_graph::Serializer Class Reference

#include <serializer.h>

Inheritance diagram for tuw_graph::Serializer:
Inheritance graph
[legend]

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 ()
 

Detailed Description

Definition at line 218 of file serializer.h.

Constructor & Destructor Documentation

tuw_graph::Serializer::Serializer ( )

Definition at line 20 of file serializer.cpp.

Member Function Documentation

std::size_t tuw_graph::Serializer::getHash ( const std::vector< signed char > &  _map,
Eigen::Vector2d  _origin,
float  _resolution 
)

generate a hash from a _map

Parameters
_mapthe map data used for the hash
_originthe origin of the graph
_resolutionthe 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

Parameters
_mapPaththe save path of the graph
_segsthe segments generated Segments for the graph
_originthe origin of the graph
_resolutionthe 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

Parameters
_mapPaththe save path of the graph
_segsthe segments generated Segments for the graph
_originthe origin of the graph
_resolutionthe resolution of the graph
mapInfothe name of the mapInfo file

Definition at line 142 of file serializer.cpp.


The documentation for this class was generated from the following files:


tuw_voronoi_graph
Author(s): Benjamin Binder
autogenerated on Mon Jun 10 2019 15:42:44