File tree 1 file changed +14
-3
lines changed
Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Recorder
1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change 8
8
#include " CarlaRecorderHelpers.h"
9
9
#include " CarlaRecorderAnimVehicleWheels.h"
10
10
11
+
12
+ // 功能: 将 WheelInfo 对象的数据写入到指定的输出流中
11
13
void WheelInfo::Write (std::ostream &OutFile) const
12
14
{
13
- WriteValue<EVehicleWheelLocation>(OutFile, Location);
14
- WriteValue<float >(OutFile, SteeringAngle);
15
- WriteValue<float >(OutFile, TireRotation);
15
+ // 写入车辆车轮的位置信息
16
+ // WriteValue 是一个模板函数,用于将指定类型的值写入输出流
17
+ // EVehicleWheelLocation 是车轮位置的枚举类型
18
+ WriteValue<EVehicleWheelLocation>(OutFile, Location);
19
+
20
+ // 写入车轮的转向角度
21
+ // SteeringAngle 是一个浮点数,表示车轮的转向角度
22
+ WriteValue<float >(OutFile, SteeringAngle);
23
+
24
+ // 写入轮胎的旋转角度
25
+ // TireRotation 是一个浮点数,表示轮胎的旋转角度
26
+ WriteValue<float >(OutFile, TireRotation);
16
27
}
17
28
18
29
void WheelInfo::Read (std::istream &InFile)
You can’t perform that action at this time.
0 commit comments