Apollo 10.0
自动驾驶开放平台
dynamic_model_factory.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 <memory>
19#include <string>
20#include <unordered_map>
21
22#include "nlohmann/json.hpp"
23
24#include "cyber/common/macros.h"
27
28namespace apollo {
29namespace dreamview {
31 public:
33 SimControlBase *GetModelType(std::string dynamic_model_name);
34 nlohmann::json RegisterDynamicModels();
35 bool RegisterDynamicModel(const std::string &dm_name);
36 bool UnregisterDynamicModel(const std::string &dynamic_model_name);
37 void GetDynamicModelPath(const std::string &dynamic_model_name,
38 std::string *path, bool get_conf_json = true);
39
40 private:
41 std::string dynamic_model_local_path_;
42 std::string home_path_;
44 void RegisterSimPerfectControl();
45};
46
47} // namespace dreamview
48} // namespace apollo
bool UnregisterDynamicModel(const std::string &dynamic_model_name)
SimControlBase * GetModelType(std::string dynamic_model_name)
void GetDynamicModelPath(const std::string &dynamic_model_name, std::string *path, bool get_conf_json=true)
bool RegisterDynamicModel(const std::string &dm_name)
Interface of simulated control algorithm
#define DECLARE_SINGLETON(classname)
Definition macros.h:52
class register implement
Definition arena_queue.h:37