CARLA
 
载入中...
搜索中...
未找到
ActorSnapshot.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/geom/Transform.h" // 引入坐标变换类
10#include "carla/geom/Vector3D.h" // 引入三维向量类
11#include "carla/rpc/ActorId.h" // 引入角色ID类
12#include "carla/rpc/ActorState.h" // 引入角色状态类
13#include "carla/sensor/data/ActorDynamicState.h" // 引入角色动态状态数据类
14
15namespace carla {
16 namespace client {
17
18 struct ActorSnapshot { // 定义角色快照结构体
19 ActorId id = 0u; // 角色的唯一标识符,默认为0
20 rpc::ActorState actor_state; // 角色的状态信息
21 geom::Transform transform; // 角色的位置信息和方向
22 geom::Vector3D velocity; // 角色的线速度
23 geom::Vector3D angular_velocity; // 角色的角速度
24 geom::Vector3D acceleration; // 角色的加速度
25 sensor::data::ActorDynamicState::TypeDependentState state; // 角色的动态状态
26 };
27
28 } // namespace client
29} // namespace carla
carla::ActorId ActorId
参与者的智能指针类型
CARLA模拟器的主命名空间。
Definition Carla.cpp:139
包含CARLA客户端相关类和函数的命名空间。
sensor::data::ActorDynamicState::TypeDependentState state