Apollo 10.0
自动驾驶开放平台
topo_test_utils.h
浏览该文件的文档.
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
23namespace apollo {
24namespace routing {
25
26const char TEST_MAP_VERSION[] = "1.0.1";
27const char TEST_MAP_DISTRICT[] = "yongfeng";
28
29const char TEST_L1[] = "L1";
30const char TEST_L2[] = "L2";
31const char TEST_L3[] = "L3";
32const char TEST_L4[] = "L4";
33const char TEST_L5[] = "L5";
34const char TEST_L6[] = "L6";
35
36const char TEST_R1[] = "R1";
37const char TEST_R2[] = "R2";
38const char TEST_R3[] = "R3";
39
40const double TEST_LANE_LENGTH = 100.0;
41const double TEST_LANE_COST = 1.1;
42const double TEST_EDGE_COST = 2.2;
43
44const double TEST_START_S = 0.0;
45const double TEST_MIDDLE_S = 0.0;
47
48void GetNodeDetailForTest(Node* const node, const std::string& lane_id,
49 const std::string& road_id);
50
51void GetNodeForTest(Node* const node, const std::string& lane_id,
52 const std::string& road_id);
53
54void GetEdgeForTest(Edge* const edge, const std::string& lane_id_1,
55 const std::string& lane_id_2,
56 const Edge::DirectionType& type);
57
58void GetGraphForTest(Graph* graph);
59
60void GetGraph2ForTest(Graph* graph);
61
62void GetGraph3ForTest(Graph* graph);
63
64} // namespace routing
65} // namespace apollo
const char TEST_R3[]
void GetGraph2ForTest(Graph *graph)
const double TEST_EDGE_COST
const char TEST_L3[]
const double TEST_START_S
void GetNodeDetailForTest(Node *const node, const std::string &lane_id, const std::string &road_id)
const double TEST_MIDDLE_S
const char TEST_L4[]
const char TEST_L5[]
void GetNodeForTest(Node *const node, const std::string &lane_id, const std::string &road_id)
void GetGraph3ForTest(Graph *graph)
const double TEST_LANE_LENGTH
void GetGraphForTest(Graph *graph)
const double TEST_END_S
const double TEST_LANE_COST
const char TEST_L2[]
const char TEST_L1[]
const char TEST_MAP_DISTRICT[]
const char TEST_R2[]
const char TEST_R1[]
const char TEST_MAP_VERSION[]
void GetEdgeForTest(Edge *const edge, const std::string &lane_id_1, const std::string &lane_id_2, const Edge::DirectionType &type)
const char TEST_L6[]
class register implement
Definition arena_queue.h:37