ADORe
ADORe is a modular open source software library and toolkit for decision making, planning, control and simulation of automated vehicles
r2sfilereader.h
Go to the documentation of this file.
1 /********************************************************************************
2  * Copyright (C) 2017-2020 German Aerospace Center (DLR).
3  * Eclipse ADORe, Automated Driving Open Research https://eclipse.org/adore
4  *
5  * This program and the accompanying materials are made available under the
6  * terms of the Eclipse Public License 2.0 which is available at
7  * http://www.eclipse.org/legal/epl-2.0.
8  *
9  * SPDX-License-Identifier: EPL-2.0
10  *
11  * Contributors:
12  * Robert Markowski - initial API and implementation
13  ********************************************************************************/
14 
15 #pragma once
16 #include <string>
17 #include <vector>
18 #include <map>
20 
21 namespace adore
22 {
23  namespace if_r2s
24  {
26  {
27  public:
28  static void readReferenceLines(std::string filestring, TReferenceLineVector& referenceLines);
29  static void readLaneBorders(std::string filestring, TLaneBorderVector& laneBorders);
30 
31  private:
32  static std::string stripChar(std::string token, char c);
33  static void readGeometryStream(std::stringstream& linestream, TR2SGeometry& geometry);
34  static LaneBorder::TYPE convertLaneBorderType(std::string token);
35 
36 
37  };
38  }
39 }
Definition: r2sfilereader.h:26
static std::string stripChar(std::string token, char c)
Definition: r2sfilereader.cpp:26
static LaneBorder::TYPE convertLaneBorderType(std::string token)
Definition: r2sfilereader.cpp:56
static void readReferenceLines(std::string filestring, TReferenceLineVector &referenceLines)
Definition: r2sfilereader.cpp:125
static void readGeometryStream(std::stringstream &linestream, TR2SGeometry &geometry)
Definition: r2sfilereader.cpp:38
static void readLaneBorders(std::string filestring, TLaneBorderVector &laneBorders)
Definition: r2sfilereader.cpp:65
std::vector< LaneBorder > TLaneBorderVector
Definition: r2sauxiliary.h:236
std::vector< ReferenceLine > TReferenceLineVector
Definition: r2sauxiliary.h:235
std::vector< adore::env::BorderBased::Coordinate > TR2SGeometry
Definition: r2sauxiliary.h:28
Definition: areaofeffectconverter.h:20
TYPE
Definition: r2sauxiliary.h:145