Skip to content

Commit 6c1b3c6

Browse files
committed
Improved comment formatting and layout
Also reordered import statements.
1 parent e83daf5 commit 6c1b3c6

16 files changed

+71
-55
lines changed

osi_common.proto

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// define the proto language version
22
syntax = "proto2";
3+
34
// optimize for speed
45
option optimize_for = SPEED;
56

@@ -11,11 +12,11 @@ package osi;
1112
*/
1213
message InterfaceVersion
1314
{
14-
// The field containing the version number. Should be left on default, not to be modified by sender.
15-
// Increments will happen as part of changes to the whole interface.
15+
// The field containing the version number. Should be left on default, not to be modified by sender. Increments will
16+
// happen as part of changes to the whole interface.
1617
optional uint32 major = 1 [default = 2];
17-
optional uint32 minor = 2 [default = 0];
18-
optional uint32 patch = 3 [default = 0];
18+
optional uint32 minor = 2 [default = 0];
19+
optional uint32 patch = 3 [default = 0];
1920
}
2021

2122
/**
@@ -36,8 +37,8 @@ message Vector3d
3637

3738
/**
3839
* A timestamp.
39-
* Names and types of fields chosen in accordance with google/protobuf/timestamp.proto to allow a possible switch
40-
* in the future. Definition of zero point in time differs and does not use Unix epoch.
40+
* Names and types of fields chosen in accordance with google/protobuf/timestamp.proto to allow a possible switch in the
41+
* future. Definition of zero point in time differs and does not use Unix epoch.
4142
*/
4243
message Timestamp
4344
{
@@ -89,11 +90,10 @@ message Orientation3d
8990

9091
/**
9192
* A common identifier.
92-
* Has to be unique among all simulated items at any given time.
93-
* For ground truth, the identifier of an item (object, lane, sign, etc.) must remain stable over its lifetime.
94-
* Identifier values might be only be reused if the available address space is exhausted and the specific values have
95-
* not been in use for several timesteps.
96-
* Sensor specific tracking ids have no restrictions and should behave according to the sensor specifications.
93+
* Has to be unique among all simulated items at any given time. For ground truth, the identifier of an item (object,
94+
* lane, sign, etc.) must remain stable over its lifetime. Identifier values might be only be reused if the available
95+
* address space is exhausted and the specific values have not been in use for several timesteps. Sensor specific
96+
* tracking ids have no restrictions and should behave according to the sensor specifications.
9797
*/
9898
message Identifier
9999
{
@@ -115,9 +115,8 @@ message MountingPosition
115115

116116
/**
117117
* A polar representation for a point / vector in 3D space used for low level representations of radar detections.
118-
* Units are [m] for radial distance and [rad] for azimuth and elevation angles.
119-
* If azimuth and elevation are zero, the referenced point is directly in front / vector is pointing
120-
* directly in the central viewing direction of the sensor.
118+
* Units are [m] for radial distance and [rad] for azimuth and elevation angles. If azimuth and elevation are zero, the
119+
* referenced point is directly in front / vector is pointing directly in the central viewing direction of the sensor.
121120
*/
122121
message Polar3d
123122
{

osi_datarecording.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// define the proto language version
22
syntax = "proto2";
3+
34
// optimize for speed
45
option optimize_for = SPEED;
56

osi_detectedlandmark.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// define the proto language version
22
syntax = "proto2";
3+
34
// optimize for speed
45
option optimize_for = SPEED;
56

osi_detectedlane.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// define the proto language version
22
syntax = "proto2";
3+
34
// optimize for speed
45
option optimize_for = SPEED;
56

osi_detectedobject.proto

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
// define the proto language version
22
syntax = "proto2";
3+
34
// optimize for speed
45
option optimize_for = SPEED;
56

67
// imports
78
import "osi_common.proto";
8-
import "osi_object.proto";
99
import "osi_modelinternal.proto";
10+
import "osi_object.proto";
1011
import "osi_sensorspecific.proto";
1112

1213
// OSI - Open Simulation Interface

osi_detectedoccupant.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// define the proto language version
22
syntax = "proto2";
3+
34
// optimize for speed
45
option optimize_for = SPEED;
56

osi_environment.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// define the proto language version
22
syntax = "proto2";
3+
34
// optimize for speed
45
option optimize_for = SPEED;
56

osi_groundtruth.proto

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,36 @@
11
// define the proto language version
22
syntax = "proto2";
3+
34
// optimize for speed
45
option optimize_for = SPEED;
56

67
// imports
78
import "osi_common.proto";
8-
import "osi_object.proto";
9+
import "osi_environment.proto";
910
import "osi_landmark.proto";
1011
import "osi_lane.proto";
12+
import "osi_object.proto";
1113
import "osi_occupant.proto";
12-
import "osi_environment.proto";
1314

1415
// OSI - Open Simulation Interface
1516
package osi;
1617

1718
/**
1819
* The ground truth information from the simulation environment.
20+
*
1921
* This ground truth information is supposed to describe the whole simulated environment around any simulated vehicle.
2022
* For each simulated ego vehicle (might only be one, but could also be multiple) define an area around the vehicle
21-
* which is greater than the combined field of views (FOV) of all sensors obstructed in the vehicle.
22-
* The ground truth data is supposed to describe the convex hull of all such areas w.r.t. a global simulation
23-
* coordinate system.
23+
* which is greater than the combined field of views (FOV) of all sensors obstructed in the vehicle. The ground truth
24+
* data is supposed to describe the convex hull of all such areas w.r.t. a global simulation coordinate system.
2425
*
2526
* The simulation coordinate system might change during the simulation if and only if, all coordinates w.r.t. this
2627
* coordinate system are also changed.
2728
*
2829
* The data has to be sent at a rate defined by the receiving partner. When sending, values with default values might be
2930
* left default in order to improve performance.
3031
*
31-
* To provide a complete interface, all fields of all messages have to be set, unless specifically stated in the
32-
* field's definition that the field may remain unset.
32+
* To provide a complete interface, all fields of all messages have to be set, unless specifically stated in the field's
33+
* definition that the field may remain unset.
3334
*
3435
* In enums (e.g. types) the unknown (first / default) value is not allowed to be used in the ground truth interface.
3536
*/

osi_landmark.proto

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// define the proto language version
22
syntax = "proto2";
3+
34
// optimize for speed
45
option optimize_for = SPEED;
56

@@ -24,8 +25,7 @@ message TrafficSign
2425
optional Type type = 3;
2526

2627
// Additional value associated with the traffic sign, e.g. value of the speed limit.
27-
// Field need not be set if traffic sign type does not require it.
28-
// Speed (limits) should be given in km/h.
28+
// Field need not be set if traffic sign type does not require it. Speed (limits) should be given in km/h.
2929
optional double value = 4;
3030

3131
// Variability
@@ -320,9 +320,7 @@ message TrafficLight
320320

321321
/**
322322
* Definition of light state for traffic lights.
323-
*
324-
* This containes the logical information about the
325-
* traffic light and NOT a description of individual light bulbs.
323+
* This containes the logical information about the traffic light and NOT a description of individual light bulbs.
326324
*/
327325
message LightState
328326
{

osi_lane.proto

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// define the proto language version
22
syntax = "proto2";
3+
34
// optimize for speed
45
option optimize_for = SPEED;
56

@@ -11,10 +12,13 @@ package osi;
1112

1213
/**
1314
* A lane in the road network.
15+
*
1416
* A lane is part of a road and mainly characterized by its center line. It also knows about any adjacent lanes,
15-
* antecessor and successor lanes. The following image will be referred to by later comments. We'll use the lane
16-
* with id 3 as reference if not mentioned otherwise.
17+
* antecessor and successor lanes. The following image will be referred to by later comments. We'll use the lane with id
18+
* 3 as reference if not mentioned otherwise.
19+
*
1720
* \image html highway_exit.png
21+
*
1822
* For lane a to be the antecessor of lane b, the last point of a's center line has to be identical to the first point
1923
* of b's center line (although both points might lie outside the simulated region, the relationship remains). Any lane
2024
* starts or ends at such a split/merge point. No lane can ever keep its id after such a split point, i.e. lane 4 has to
@@ -31,25 +35,28 @@ message Lane
3135
optional Type type = 2;
3236

3337
// The lane's center line.
38+
//
3439
// This is the line, that a typical vehicle is supposed to follow. Thus, if the road narrows (e.g. construction
35-
// site) this line is supposed to describe the trajectory that the vehicle should follow.
36-
// The intended direction of travel on the lane is given by the direction defined by the sequence of points forming
37-
// the center line.
40+
// site) this line is supposed to describe the trajectory that the vehicle should follow. The intended direction of
41+
// travel on the lane is given by the direction defined by the sequence of points forming the center line.
3842
//
3943
// \attention The points might be set at arbitrary distances, but must not be further appart than 5m. When the
4044
// points are pairwise linearly connected, the lateral distance to the real ideal line (as used by the simulation
4145
// environment internally) must not exceed 5cm. As shown in the following image.
46+
//
4247
// \image html line_approximation_error.png
4348
//
4449
// Example: The yellow dotted line right of the blue 3.
4550
repeated Vector3d center_line = 3;
4651

4752
// The boundary of the lane.
53+
//
4854
// The lane boundaries describe the lane markings or other boundaries delimiting the lane as well as free lines that
4955
// might be used e.g. in construction sites. The lane markings do not have to be parallel to the center_line, but
5056
// they are the basis for calculating the width of the lane at any given distance.
51-
// Example: The double solid line above the 3, and the dashed line below the 3. (see reference picture)
52-
// There might also be additional free lanes.
57+
//
58+
// Example: The double solid line above the 3, and the dashed line below the 3. (see reference picture) There might
59+
// also be additional free lanes.
5360
repeated LaneBoundary lane_boundary = 4;
5461

5562
// The lane's left adjacent lanes (w.r.t. intended driving direction).
@@ -123,6 +130,7 @@ message Lane
123130
message LaneBoundary
124131
{
125132
// The list of individual points defining the location of the lane boundary.
133+
//
126134
// Since a BoundaryPoint is part of a sequence only the position attribute has to be set for each instance. All
127135
// other values will be reused from the previous BoundaryPoint in the sequence or set to default values if there is
128136
// none or it was never set. For dashed lines, one BoundaryPoint has to be at the start and another at the end of

0 commit comments

Comments
 (0)