CARLA
 
载入中...
搜索中...
未找到
MaterialParameter.h
浏览该文件的文档.
1// Copyright (c) 2021 Computer Vision Center (CVC) at the Universitat Autonoma
2// de Barcelona (UAB).
3//
4// This work is licensed under the terms of the MIT license.
5// For a copy, see <https://opensource.org/licenses/MIT>.
6
7#pragma once
8
9#include "carla/MsgPack.h"
10
11#include <cstdint>
12
13namespace carla {
14namespace rpc {
15
16// 定义一个枚举类 MaterialParameter,用于表示不同的材料参数
18{
19 // 表示纹理法线
21 // 表示环境光遮蔽/粗糙度/金属度/自发光纹理
23 // 表示漫反射纹理
25 // 表示自发光纹理
27};
28
29// 声明一个函数,将 MaterialParameter 枚举类型转换为字符串
30std::string MaterialParameterToString(MaterialParameter material_parameter);
31
32} // namespace rpc
33} // namespace carla
34
35// 为 carla::rpc::MaterialParameter 枚举添加序列化支持
MSGPACK_ADD_ENUM(carla::rpc::MaterialParameter)
std::string MaterialParameterToString(MaterialParameter material_parameter)
CARLA模拟器的主命名空间。
Definition Carla.cpp:139