Apollo  6.0
Open source self driving car software
topo_test_utils.h
Go to the documentation of this file.
1 /******************************************************************************
2  * Copyright 2017 The Apollo Authors. All Rights Reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *****************************************************************************/
16 
17 #pragma once
18 
19 #include <string>
20 
22 
23 namespace apollo {
24 namespace routing {
25 
26 const char TEST_MAP_VERSION[] = "1.0.1";
27 const char TEST_MAP_DISTRICT[] = "yongfeng";
28 
29 const char TEST_L1[] = "L1";
30 const char TEST_L2[] = "L2";
31 const char TEST_L3[] = "L3";
32 const char TEST_L4[] = "L4";
33 const char TEST_L5[] = "L5";
34 const char TEST_L6[] = "L6";
35 
36 const char TEST_R1[] = "R1";
37 const char TEST_R2[] = "R2";
38 const char TEST_R3[] = "R3";
39 
40 const double TEST_LANE_LENGTH = 100.0;
41 const double TEST_LANE_COST = 1.1;
42 const double TEST_EDGE_COST = 2.2;
43 
44 const double TEST_START_S = 0.0;
45 const double TEST_MIDDLE_S = 0.0;
47 
48 void GetNodeDetailForTest(Node* const node, const std::string& lane_id,
49  const std::string& road_id);
50 
51 void GetNodeForTest(Node* const node, const std::string& lane_id,
52  const std::string& road_id);
53 
54 void GetEdgeForTest(Edge* const edge, const std::string& lane_id_1,
55  const std::string& lane_id_2,
56  const Edge::DirectionType& type);
57 
58 void GetGraphForTest(Graph* graph);
59 
60 void GetGraph2ForTest(Graph* graph);
61 
62 void GetGraph3ForTest(Graph* graph);
63 
64 } // namespace routing
65 } // namespace apollo
const double TEST_MIDDLE_S
Definition: topo_test_utils.h:45
void GetGraph2ForTest(Graph *graph)
const char TEST_R2[]
Definition: topo_test_utils.h:37
Definition: node.h:31
const double TEST_LANE_COST
Definition: topo_test_utils.h:41
const char TEST_L6[]
Definition: topo_test_utils.h:34
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
const char TEST_MAP_VERSION[]
Definition: topo_test_utils.h:26
const double TEST_START_S
Definition: topo_test_utils.h:44
const char TEST_L4[]
Definition: topo_test_utils.h:32
const char TEST_MAP_DISTRICT[]
Definition: topo_test_utils.h:27
const char TEST_L3[]
Definition: topo_test_utils.h:31
void GetNodeDetailForTest(Node *const node, const std::string &lane_id, const std::string &road_id)
void GetGraphForTest(Graph *graph)
void GetEdgeForTest(Edge *const edge, const std::string &lane_id_1, const std::string &lane_id_2, const Edge::DirectionType &type)
const double TEST_EDGE_COST
Definition: topo_test_utils.h:42
void GetGraph3ForTest(Graph *graph)
const char TEST_L2[]
Definition: topo_test_utils.h:30
void GetNodeForTest(Node *const node, const std::string &lane_id, const std::string &road_id)
const char TEST_L1[]
Definition: topo_test_utils.h:29
const char TEST_R1[]
Definition: topo_test_utils.h:36
const double TEST_LANE_LENGTH
Definition: topo_test_utils.h:40
const double TEST_END_S
Definition: topo_test_utils.h:46
const char TEST_L5[]
Definition: topo_test_utils.h:33
const char TEST_R3[]
Definition: topo_test_utils.h:38