-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlanelet2obj.hpp
More file actions
45 lines (34 loc) · 1.04 KB
/
lanelet2obj.hpp
File metadata and controls
45 lines (34 loc) · 1.04 KB
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
40
41
42
43
44
45
/* ----------------------------------------------------------
* v_repExtLanelets plugin
* (c) Candido Otero, 2017, Universidade de Vigo
* ----------------------------------------------------------*/
#pragma once
#include <stdio.h>
#include <iostream>
#include <fstream>
#include <vector>
#include <ctime>
#include <tuple>
#include <numeric>
#include "triangulate.h"
#include "v_repLib.h"
#include "MRT/libLanelet/llet_xml.hpp"
#include "MRT/libLanelet/Lanelet.hpp"
#include "MRT/libLanelet/LaneletMap.hpp"
#include "MRT/Commons/LocalGeographicCS.hpp"
namespace lanelet2obj {
using namespace LLet;
typedef struct {
double X;
double Y;
}Point;
typedef std::vector<Point> Polygon;
typedef std::vector<Polygon> PolygonContainer;
std::string generateMesh(const std::string &filePath,
const double oriLat,
const double oriLon);
int importLanelets(const std::string &filePath,
const double oriLat,
const double oriLon,
const bool rm);
}//end namespace