Apollo 11.0
自动驾驶开放平台
util.h
浏览该文件的文档.
1/******************************************************************************
2 * Copyright 2018 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#pragma once
17
18#include <string>
19
20namespace apollo {
21namespace perception {
22
29std::string GetModelPath(const std::string &model_name);
30
38std::string GetModelFile(const std::string &model_name,
39 const std::string &file_name);
40
48std::string GetCommonConfigFile(const std::string &config_file);
49
57std::string GetConfigPath(const std::string &config_path);
58
59std::string GetConfigFile(const std::string &config_path,
60 const std::string &config_file);
61
62} // namespace perception
63} // namespace apollo
std::string GetConfigPath(const std::string &config_path)
Get the config path
Definition util.cc:64
std::string GetCommonConfigFile(const std::string &config_file)
Get the perception common config path
Definition util.cc:28
std::string GetModelFile(const std::string &model_name, const std::string &file_name)
Get the model file path by model path and file name
Definition util.cc:55
std::string GetConfigFile(const std::string &config_path, const std::string &config_file)
Definition util.cc:80
std::string GetModelPath(const std::string &model_name)
Get the model path by model name, search from APOLLO_MODEL_PATH
Definition util.cc:44
class register implement
Definition arena_queue.h:37