1 using System.Collections;
3 using System.Collections.Generic;
8 public class ControlSchema
14 public string MsgType {
get;
set; } =
"ControlInput";
16 public string Version {
get;
set;} = CommonFunctions.GET_VERSION();
18 public string InputControlType {
get;
set;} =
"Other";
21 public float Pitch {
get;
set;}=0f;
23 public float Roll {
get;
set;} = 0f;
25 public float Yaw {
get;
set;}=0f;
27 public float Throttle {
get;
set;}=0f;
29 public float StickyThrottle {
get;
set;}=0f;
31 public float Brake {
get;
set;}=0f;
33 public int Flaps {
get;
set;}=0;
49 public static string MsgType {
get;
set; } =
"ControlInput";
51 public static string Version {
get;
set;} = CommonFunctions.GET_VERSION();
53 public static string InputControlType {
get;
set;} =
"Other";
55 public static float Pitch {
get;
set;}=0f;
57 public static float Roll {
get;
set;} = 0f;
59 public static float Yaw {
get;
set;}=0f;
61 public static float Throttle {
get;
set;}=0f;
63 public static float StickyThrottle {
get;
set;}=0f;
65 public static float Brake {
get;
set;}=0f;
67 public static int Flaps {
get;
set;}=0;
73 public static class StaticOutputSchema
80 public static string MsgType {
get;
set; } =
"Output";
82 public static string Version {
get;
set;} = CommonFunctions.GET_VERSION();
83 public static float AGL;
84 public static float MSL;
85 public static float CurrentRPM;
86 public static float MaxRPM;
87 public static float MaxPower;
88 public static float CurrentPower;
89 public static float CurrentFuel;
90 public static float CurrentSpeed;
91 public static float BankAngle;
92 public static float PitchAngle;
93 public static bool IfCollision;
94 public static string CollisionObject =
"";
95 public static float Latitude;
96 public static float Longitude;
97 public static byte [] ScreenCapture;
98 public static float [] LidarPointCloud;
99 public static int Counter;
100 public static double Reward;
101 public static bool IsGrounded;
102 public static bool IsFlying;
103 public static bool IsTaxiing;
104 public static float PosXAbs;
105 public static float PosYAbs;
106 public static float PosZAbs;
107 public static float PosXRel;
108 public static float PosYRel;
109 public static float PosZRel;
110 public static float RotXAbs;
111 public static float RotYAbs;
112 public static float RotZAbs;
113 public static float RotXRel;
114 public static float RotYRel;
115 public static float RotZRel;
116 public static float AngularXVelocity;
117 public static float AngularYVelocity;
118 public static float AngularZVelocity;
119 public static float LinearXVelocity;
120 public static float LinearYVelocity;
121 public static float LinearZVelocity;
122 public static float AngularXAcceleration;
123 public static float AngularYAcceleration;
124 public static float AngularZAcceleration;
125 public static float LinearXAcceleration;
126 public static float LinearYAcceleration;
127 public static float LinearZAcceleration;
130 public static string log =
"";
138 public string MsgType {
get;
set; } =
"Output";
140 public string Version {
get;
set;} = CommonFunctions.GET_VERSION();
143 public float CurrentRPM;
145 public float MaxPower;
146 public float CurrentPower;
147 public float CurrentFuel;
148 public float CurrentSpeed;
149 public float BankAngle;
150 public bool IfCollision;
151 public string CollisionObject =
"";
152 public float Latitude;
153 public float Longitude;
154 public float PitchAngle;
155 public byte [] ScreenCapture;
156 public float [] LidarPointCloud;
158 public string log =
"";
159 public double Reward;
160 public bool IsGrounded;
161 public bool IsFlying;
162 public bool IsTaxiing;
163 public float PosXAbs;
164 public float PosYAbs;
165 public float PosZAbs;
166 public float PosXRel;
167 public float PosYRel;
168 public float PosZRel;
169 public float RotXAbs;
170 public float RotYAbs;
171 public float RotZAbs;
172 public float RotXRel;
173 public float RotYRel;
174 public float RotZRel;
175 public float AngularXVelocity;
176 public float AngularYVelocity;
177 public float AngularZVelocity;
178 public float LinearXVelocity;
179 public float LinearYVelocity;
180 public float LinearZVelocity;
181 public float AngularXAcceleration;
182 public float AngularYAcceleration;
183 public float AngularZAcceleration;
184 public float LinearXAcceleration;
185 public float LinearYAcceleration;
186 public float LinearZAcceleration;
196 public string Log {
get;
set; } =
"";
203 public static class StaticLogger
205 public static string Log {
get;
set; } =
"";
212 public string MsgType {
get;
set; } =
"TOD";
214 public string Version {
get;
set;} = CommonFunctions.GET_VERSION();
216 public bool IsActive{
get;
set;} =
false;
218 public float SunLatitude {
get;
set; } = -826.39f;
219 public float SunLongitude {
get;
set; } = -1605.4f;
220 public int Hour {
get;
set; } = 10;
221 public int Minute {
get;
set; } = 5;
228 public static class StaticTODSchema
230 public static string MsgType {
get;
set; } =
"TOD";
232 public static string Version {
get;
set;} = CommonFunctions.GET_VERSION();
234 public static bool IsActive{
get;
set;} =
false;
236 public static float SunLatitude {
get;
set; } = -826.39f;
237 public static float SunLongitude {
get;
set; } = -1605.4f;
238 public static int Hour {
get;
set; } = 10;
239 public static int Minute {
get;
set; } = 5;
245 public class CameraSchema
250 public string MsgType {
get;
set; } =
"Camera";
252 public string Version {
get;
set;} = CommonFunctions.GET_VERSION();
254 public bool IsActive {
get;
set;} =
false;
256 public int ActiveCamera {
get;
set; } = 0;
257 public bool IsCapture {
get;
set;} =
false;
258 public int CaptureCamera {
get;
set;} = 0;
259 public int CaptureType {
get;
set;} = 0;
260 public int CaptureWidth {
get;
set;} = 256;
261 public int CaptureHeight {
get;
set;} = 256;
269 public static class StaticCameraSchema
271 public static string MsgType {
get;
set; } =
"Camera";
273 public static string Version {
get;
set;} = CommonFunctions.GET_VERSION();
275 public static bool IsActive {
get;
set;} =
false;
277 public static int ActiveCamera {
get;
set; } = 0;
278 public static bool IsCapture {
get;
set;} =
false;
279 public static int CaptureCamera {
get;
set;} = 0;
280 public static int CaptureType {
get;
set;} = 0;
281 public static int CaptureWidth {
get;
set;} = 256;
282 public static int CaptureHeight {
get;
set;} = 256;
288 public class LevelSchema
293 public string MsgType {
get;
set; } =
"Level";
295 public string Version {
get;
set;} = CommonFunctions.GET_VERSION();
297 public string InputControlType {
get;
set;} =
"Other";
299 public bool IsActive {
get;
set;} =
false;
301 public bool LevelReload {
get;
set;} =
false;
309 public static class StaticLevelSchema
311 public static string MsgType {
get;
set; } =
"Level";
313 public static string Version {
get;
set;} = CommonFunctions.GET_VERSION();
315 public static string InputControlType {
get;
set;} =
"Other";
317 public static bool IsActive {
get;
set;} =
false;
319 public static bool LevelReload {
get;
set;} =
false;
324 #region WeatherSchema
325 public class WeatherSchema
330 public string MsgType {
get;
set; } =
"Weather";
332 public string Version {
get;
set;} = CommonFunctions.GET_VERSION();
334 public string InputControlType {
get;
set;} =
"Other";
336 public bool IsClouds {
get;
set;} =
false;
338 public bool IsFog {
get;
set;} =
false;
346 public static class StaticWeatherSchema
348 public static string MsgType {
get;
set; } =
"Weather";
350 public static string Version {
get;
set;} = CommonFunctions.GET_VERSION();
352 public static string InputControlType {
get;
set;} =
"Other";
354 public static bool IsClouds {
get;
set;} =
false;
356 public static bool IsFog {
get;
set;} =
false;
362 public class UISchema
367 public string MsgType {
get;
set; } =
"UI";
369 public string Version {
get;
set;} = CommonFunctions.GET_VERSION();
371 public bool IsActive {
get;
set;} =
false;
373 public bool ShowUIElements {
get;
set;} =
false;
381 public static class StaticUISchema
383 public static string MsgType {
get;
set; } =
"UI";
385 public static string Version {
get;
set;} = CommonFunctions.GET_VERSION();
387 public static bool IsActive {
get;
set;} =
false;
389 public static bool ShowUIElements {
get;
set;} =
true;
399 public bool IsActive {
get;
set;} =
false;
401 public string ClientIP {
get;
set;} =
"None";
402 public string ClientPort {
get;
set;} =
"None";
410 public static class StaticClientInfo
412 public static bool IsActive {
get;
set;} =
false;
414 public static string ClientIP {
get;
set;} =
"None";
415 public static string ClientPort {
get;
set;} =
"None";
419 #region UIAudioSchema
420 public class AudioSchema
425 public string MsgType {
get;
set; } =
"Audio";
427 public string Version {
get;
set;} = CommonFunctions.GET_VERSION();
429 public bool IsActive {
get;
set;} =
false;
431 public bool EnableAudio {
get;
set;} =
true;
439 public static class StaticAudioSchema
441 public static string MsgType {
get;
set; } =
"Audio";
443 public static string Version {
get;
set;} = CommonFunctions.GET_VERSION();
445 public static bool IsActive {
get;
set;}
447 public static bool EnableAudio {
get;
set;}
454 public class LidarSchema
459 public string MsgType {
get;
set; } =
"Lidar";
461 public string Version {
get;
set;} = CommonFunctions.GET_VERSION();
463 public string InputControlType {
get;
set;} =
"Other";
465 public float Range {
get;
set;} = 100000f;
467 public int Density {
get;
set;} = 360;
468 public bool IsActive {
get;
set;} =
false;
476 public static class StaticLidarSchema
478 public static string MsgType {
get;
set; } =
"Lidar";
480 public static string Version {
get;
set;} = CommonFunctions.GET_VERSION();
482 public static string InputControlType {
get;
set;} =
"Other";
484 public static float Range {
get;
set;} = 100000f;
486 public static int Density {
get;
set;} = 360;
487 public static bool IsActive {
get;
set;} =
false;
493 public class UIControlsSchema
498 public string MsgType {
get;
set; } =
"UIControls";
500 public string Version {
get;
set;} = CommonFunctions.GET_VERSION();
502 public bool ifExit {
get;
set;} =
false;
510 public static string MsgType {
get;
set; } =
"UIControls";
512 public static string Version {
get;
set;} = CommonFunctions.GET_VERSION();
514 public static bool ifExit {
get;
set;} =
false;
526 public string MsgType {
get;
set; } =
"Fuel";
528 public string Version {
get;
set;} = CommonFunctions.GET_VERSION();
530 public string InputControlType {
get;
set;} =
"Other";
538 public class PresetSchema
543 public string MsgType {
get;
set; } =
"StartUp";
545 public string Version {
get;
set;} = CommonFunctions.GET_VERSION();
547 public float AirplaneMass {
get;
set;} = 1000f;
549 public float Fuel {
get;
set;} = 61f;
551 public float FuelBurnRate {
get;
set;} = 6.1f;
553 public float StartLocation_x {
get;
set;} = 6.1f;
554 public float StartLocation_y {
get;
set;} = 6.1f;
555 public float StartLocation_z {
get;
set;} = 6.1f;
557 public float StartRotation_x {
get;
set;} = 6.1f;
558 public float StartRotation_y {
get;
set;} = 6.1f;
559 public float StartRotation_z {
get;
set;} = 6.1f;
566 public static class StaticStartUpSchema
568 public static string MsgType {
get;
set; } =
"StartUp";
570 public static string Version {
get;
set;} = CommonFunctions.GET_VERSION();
572 public static float AirplaneMass {
get;
set;} = 1000f;
574 public static float Fuel {
get;
set;} = 61f;
576 public static float FuelBurnRate {
get;
set;} = 6.1f;
578 public static float StartLocation_x {
get;
set;} = 6.1f;
579 public static float StartLocation_y {
get;
set;} = 6.1f;
580 public static float StartLocation_z {
get;
set;} = 6.1f;
582 public static float StartRotation_x {
get;
set;} = 6.1f;
583 public static float StartRotation_y {
get;
set;} = 6.1f;
584 public static float StartRotation_z {
get;
set;} = 6.1f;