Apollo 10.0
自动驾驶开放平台
vehicle_manager_main.cc
浏览该文件的文档.
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
18
19#include "cyber/common/log.h"
20#include "gflags/gflags.h"
21
22DEFINE_string(vehicle_data_path, "modules/calibration/data/mkz_example",
23 "Vehicle data path.");
24
25int main(int argc, char **argv) {
26 FLAGS_logtostderr = true;
27 google::InitGoogleLogging(argv[0]);
28 google::ParseCommandLineFlags(&argc, &argv, true);
29
30 apollo::dreamview::VehicleManager::Instance()->UseVehicle(
31 FLAGS_vehicle_data_path);
32 AINFO << "Switched to vehicle with data from " << FLAGS_vehicle_data_path;
33
34 return 0;
35}
#define AINFO
Definition log.h:42
int main(int argc, char **argv)
DEFINE_string(vehicle_data_path, "modules/calibration/data/mkz_example", "Vehicle data path.")