Software-Aurora-Lab / ADS-Scenario-Transformer

Transferring scenarios running on Apollo and SimControl environments to scenarios running on Autoware and TIER IV Scenario Simulator v2 environments.
MIT License
4 stars 0 forks source link

Modify Invalid Field Names or Types #18

Closed hcn1519 closed 6 months ago

hcn1519 commented 8 months ago

In the process of defining the OpenSCENARIO Protocol Buffer, there are issues where incorrect field names or types may be specified. There are two main reasons for this.

1. Generation Issues

Errors may occur during the manual work and the generation of protobuf using ChatGPT, leading to inaccuracies in field names or types. For example, field name should be camel case format but they are defined in snake case format.

- (Unsupported)
message RelativeDistanceCondition {
+    required string entityRef = 1; // 1..1
+    required RelativeDistanceType relativeDistanceType = 2;
+    required double value = 3;
+    required double freespace = 4;
+    required Rule rule = 5;
}
message ScenarioDefinition {
-    repeated ParameterDeclaration parameterDeclarations = 1;  // 0..*
+    optional ParameterDeclarations parameterDeclarations = 1;  // 0..*
    required CatalogLocations catalogLocations = 2;           // 1..1
    required RoadNetwork roadNetwork = 3;                     // 1..1
    required Entities entities = 4;                           // 1..1
    required Storyboard storyboard = 5;                       // 1..1
}

2. Specification Issues

If the OpenSCENARIO specification does not adhere to a unified definition, modifications to field names may be necessary.