forked from aclapes/segmenthreetion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
GridMapWriter.h
39 lines (29 loc) · 850 Bytes
/
GridMapWriter.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//
// GridMapWriter.h
// segmenthreetion
//
// Created by Albert Clapés on 07/03/14.
//
//
#ifndef __segmenthreetion__GridMapWriter__
#define __segmenthreetion__GridMapWriter__
#include <iostream>
#include "GridMat.h"
#include "ModalityGridData.hpp"
class GridMapWriter
{
public:
GridMapWriter();
GridMapWriter(ModalityGridData& mgd, GridMat& values);
void setModalityGridData(ModalityGridData& mgd);
void setGridCellValues(GridMat& values);
template<typename T>
void write(std::string dir);
template<typename T>
void write(ModalityGridData& mgd, GridMat& values, std::string dir);
private:
ModalityGridData m_mgd;
GridMat m_values;
void loadFilenames(string dir, const char* filetype, vector<string>& filenames);
};
#endif /* defined(__segmenthreetion__GridMapWriter__) */