Apollo 10.0
自动驾驶开放平台
hmi_util.h
浏览该文件的文档.
1/******************************************************************************
2 * Copyright 2023 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
21#include "modules/common_msgs/dreamview_msgs/hmi_config.pb.h"
22#include "modules/common_msgs/dreamview_msgs/hmi_mode.pb.h"
23
25
26namespace apollo {
27namespace dreamview {
28namespace util {
29
30class HMIUtil {
31 public:
38 const std::string config_path = "");
44 const std::string& mode_config_path);
49 static void TranslateCyberModules(HMIMode* mode);
56 static std::string TitleCase(std::string_view origin);
62 static google::protobuf::Map<std::string, std::string> ListDirAsDict(
63 const std::string& dir);
64};
65
66} // namespace util
67} // namespace dreamview
68} // namespace apollo
static std::string TitleCase(std::string_view origin)
Convert a string to be title-like.
Definition hmi_util.cc:36
static google::protobuf::Map< std::string, std::string > ListDirAsDict(const std::string &dir)
List all directory as a dict in a directory.
Definition hmi_util.cc:64
static void TranslateCyberModules(HMIMode *mode)
transfer the mode's cyber modules to modules.
Definition hmi_util.cc:118
static apollo::dreamview::HMIMode LoadMode(const std::string &mode_config_path)
Load HMIMode.
Definition hmi_util.cc:100
static apollo::dreamview::HMIConfig LoadConfig(const std::string config_path="")
Load HMIConfig.
Definition hmi_util.cc:75
class register implement
Definition arena_queue.h:37