I would like to propose an extension of the data types in the RED A in order to be able to map more complex data structures as individual values (e.g. coordinates, hit points, etc.).
In addition to the data types “tuple and “triple”, lists and dictionaries based on these are also helpful. The list od tuples/triples covers for example, the values in "VUT ShapeFront" (see viewtopic.php?p=1339#p1339). The type "list of tuple dict" and "list of triple dict" would increase the readability here, since e.g. with the "VUT Shape Front" the position can be entered as a key and does not have to be counted implicitly.
Code: Select all
tuple: (float; float)
tuple list: (float; float) (float; float) (float; float)
A tuple list consists of two or more tuples.
triple: (float; float; float)
triple list: (float; float; float) (float; float; float) (float; float; float)
A triple list consists of two or more triples.
tuple dict: (string: float; float)
A tuple dict is a tuple which is enhanced by a describing string.
triple dict: (string: float; float; float)
A tuple dict is a triples which is enhanced by a describing string.
list of tuple dict: (string: float; float) (String: float; float) (String: float; float)
A list of tuple dicts consists of two or more tuple dictionary. The key (string) is separated by “:” from the values. This struct allows a generic definition of tuple values. The key max be the location in percentage of the vehicle front and the values the x and y coordinates.
list of triple dict: (string: float; float; float) (String: float; float; float) (String: float; float; float)
A list of triple dicts consists of two or more triple dictionary. The key (string) is separated by “:” from the values. This struct allows a generic definition of tuple values. The key max be the location in percentage of the vehicle front and the values the x and y coordinates.
Kind reagrds,
Martin