-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMri.idl
53 lines (43 loc) · 1.49 KB
/
Mri.idl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
module Mri {
#pragma DCPS_DATA_TYPE "Mri::Aux2Strings"
struct Aux2Strings {
long receiverId;
long senderId;
string str1;
string str2;
string tag;
};
#pragma DCPS_DATA_TYPE "Mri::V2XMessage"
#pragma DCPS_DATA_KEY "Mri::V2XMessage sender_id"
struct V2XMessage
{
long sender_id; // sender vehicle id
long sender_timestamp; // the time of message creation
string message; // v2x message
long recipient_id; // recipient vehicle id
long recipient_timestamp; // the time when the message should be displayed
};
#pragma DCPS_DATA_TYPE "Mri::VehData"
struct VehData
{
long timestamp; //tick every 10 ms*, all applications have to be synchronized ; Mri
long vehicle_id;
long vehicle_type; /* vehicle type number from VISSIM */
string model_file_name; /* *.v3d */
long color; /* RGB */
double position_x; /* in m */
double position_y; /* in m */
double position_z; /* in m */
double orient_heading; /* in radians */
double orient_pitch; /* in radians */
double orient_roll; //in radians ; Mri
double speed; /* in m/s */
long leading_vehicle_id; /* relevant vehicle in front */
long trailing_vehicle_id; /* next vehicle back on the same lane */
long link_id;
string link_name; /* empty if not set in VISSIM */
double link_coordinate; /* in m */
long lane_index; /* 0 = rightmost */
long turning_indicator; /* 1 = left, 0 = none, -1 = right */
};
};