You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Commenting style definition: APA
* Typo-corrections in documentation
* Example citation corrected in doc/commenting.proto
* Citation in README.md corrected
* References must be line seperated for correct displaying
* Line break for references-list changed to adding ' \n ' at the end
* German Umlaute changed for ASCII conformity
* Non-ASCII accent changed in citation
* Accent character changed
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ In this context, OSI defines generic interfaces to ensure modularity, integrabil
12
12
13
13
For more information on OSI see the [official documentation](https://opensimulationinterface.github.io/osi-documentation/) or the [official reference documentation](https://opensimulationinterface.github.io/open-simulation-interface/) for defined protobuf messages.
14
14
15
-
[[1]](https://www.hot.ei.tum.de/forschung/automotive-veroeffentlichungen/)*A generic interface for the environment perception of automated driving functions in virtual scenarios.(Dated 03.02.2017) T. Hanke, N. Hirsenkorn, C. van-Driesten, P. Garcia-Ramos, M. Schiementz, S. Schneider, E. Biebl*
15
+
[1] Hanke, T., Hirsenkorn, N., van-Driesten, C., Garcia-Ramos, P., Schiementz, M., Schneider, S. & Biebl, E. (2017, February 03).*A generic interface for the environment perception of automated driving functions in virtual scenarios.* Retrieved January 25, 2020, from https://www.hot.ei.tum.de/forschung/automotive-veroeffentlichungen/
16
16
17
17
## Usage
18
18
##### Example of writing and reading an OSI message in `Python`
Copy file name to clipboardExpand all lines: doc/commenting.rst
+41-15Lines changed: 41 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,9 +7,8 @@ During the building process of open simulation interface (using the `proto2cpp <
7
7
8
8
For any additional comment styles see `list <http://www.doxygen.nl/manual/commands.html>`_ of doxygen commands.
9
9
10
-
Reference for writing values and units: ISO 80000-1: 2009, Quantities and units – Part 1: General
11
-
Nice summary: [Rohde & Schwarz: Der korrekte Umgang mit Größen, Einheiten und Gleichungen ](https://karriere.rohde-schwarz.de/fileadmin/customer/downloads/PDF/Der_korrekte_Umgang_mit_Groessen_Einheiten_und_Gleichungen_bro_de_01.pdf
12
-
)
10
+
Reference for writing values and units: ISO 80000-1:2013-08, Quantities and units – Part 1: General
11
+
Nice summary in German: `Rohde & Schwarz: Der korrekte Umgang mit Groessen, Einheiten und Gleichungen <https://karriere.rohde-schwarz.de/fileadmin/customer/downloads/PDF/Der_korrekte_Umgang_mit_Groessen_Einheiten_und_Gleichungen_bro_de_01.pdf>`_
13
12
14
13
15
14
Commenting with block syntax
@@ -150,7 +149,7 @@ Then you describe the field by adding an explanation.
150
149
//
151
150
message EnvironmentalConditions
152
151
{
153
-
// Atmospheric pressure in Pascal at z=0.0 in world frame (about 101325 Pa).
152
+
// Atmospheric pressure in Pascal at z = 0.0 m in world frame (about 101325 Pa).
154
153
//
155
154
optional double atmospheric_pressure = 1;
156
155
}
@@ -169,7 +168,7 @@ Next you decide the unit of the field.
169
168
//
170
169
message EnvironmentalConditions
171
170
{
172
-
// Atmospheric pressure in Pascal at z=0.0 in world frame (about 101325 Pa).
171
+
// Atmospheric pressure in Pascal at z = 0.0 m in world frame (about 101325 Pa).
173
172
//
174
173
// Unit: Pa
175
174
//
@@ -190,7 +189,7 @@ You can optionally add a note to the field to describe the field better.
190
189
//
191
190
message EnvironmentalConditions
192
191
{
193
-
// Atmospheric pressure in Pascal at z=0.0 in world frame (about 101325 Pa).
192
+
// Atmospheric pressure in Pascal at z = 0.0 m in world frame (about 101325 Pa).
194
193
//
195
194
// Unit: Pa
196
195
//
@@ -199,7 +198,32 @@ You can optionally add a note to the field to describe the field better.
199
198
optional double atmospheric_pressure = 1;
200
199
}
201
200
202
-
If you want to provide a reference to a DIN or to web page which helps in understanding the field you can add a reference.
201
+
To help understanding the field, you should add a reference.
202
+
Every OSI message should be defined properly and should have a well cited reference.
203
+
204
+
**Citation style for different sources:**
205
+
206
+
- Within the text, the number system is used with the number of the source in brackets [#] for mentioning.
207
+
- We use the so called `"APA style" <https://apastyle.apa.org/>`_ from the American Psychological Association for referencing.
208
+
- In the references list, the number in brackets [#] is followed by a full citation.
209
+
- For writing the title in italic, use <em>title</em>.
210
+
- If the list contains more than one entry, add " \n " at the end of the line to create a line break within the list.
211
+
- Author names are written as <surname>, <initial(s)> like Authorname, A. A.
212
+
- Editor names are written as <initial(s)> <surname> like B. B. Editorname.
213
+
- Naming pages at the end is optional to enable finding in long texts or for direct citations.
214
+
- All citations should be primary citations. Sources like Wikipedia et al. are not allowed.
215
+
- Find filled-out examples under `https://apastyle.apa.org <https://apastyle.apa.org/style-grammar-guidelines/references/examples>`_ and in existing entries.
216
+
- The scheme of popular sources for the reference list is as follows (replace tags with corresponding values):
// [1] DIN Deutsches Institut fuer Normung e. V. (1982). <em>DIN 5031-3 Strahlungsphysik im optischen Bereich und Lichttechnik - Groessen, Formelzeichen und Einheiten der Lichttechnik</em>. (DIN 5031-3:1982-03). Berlin, Germany. \n
248
+
// [2] Rapp, C. (2017). Grundlagen der Physik. In <em>Hydraulik fuer Ingenieure und Naturwissenschaftler</em> (pp.23-36). Springer Vieweg. Wiesbaden, Germany. https://doi.org/10.1007/978-3-658-18619-7_3. p. 105.
224
249
//
225
250
optional double atmospheric_pressure = 1;
226
251
}
@@ -239,14 +264,15 @@ Finally you can provide a set of rules which this field needs to be followed. Th
239
264
//
240
265
message EnvironmentalConditions
241
266
{
242
-
// Atmospheric pressure in Pascal at z=0.0 in world frame (about 101325 Pa).
267
+
// Atmospheric pressure in Pascal at z = 0.0 m in world frame (about 101325 Pa) [1, 2].
// [1] DIN Deutsches Institut fuer Normung e. V. (1982). <em>DIN 5031-3 Strahlungsphysik im optischen Bereich und Lichttechnik - Groessen, Formelzeichen und Einheiten der Lichttechnik</em>. (DIN 5031-3:1982-03). Berlin, Germany. \n
275
+
// [2] Rapp, C. (2017). Grundlagen der Physik. In <em>Hydraulik fuer Ingenieure und Naturwissenschaftler</em> (pp.23-36). Springer Vieweg. Wiesbaden, Germany. https://doi.org/10.1007/978-3-658-18619-7_3. p. 105.
250
276
//
251
277
// \rules
252
278
// is_optional
@@ -318,8 +344,8 @@ If you want to reference message fields and enums add '#' to the enum/field name
318
344
319
345
// A reference to a enum e.g. \c #COLOR_GREEN.
320
346
321
-
Commenting with links
322
-
----------------------
347
+
Commenting with links (e.g. in references)
348
+
------------------------------------------
323
349
With ``[<add name of your link>](<add url of your link>)`` you can integrate a link to a certain homepage while commenting.
Copy file name to clipboardExpand all lines: osi_common.proto
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -166,8 +166,8 @@ message Dimension3d
166
166
// \attention This definition changed in OSI version 3.0.0. Previous OSI
167
167
// versions (V2.xx) had an other definition.
168
168
//
169
-
// \par References:
170
-
// - [1] DIN ISO 8855:2013-11
169
+
// \par Reference:
170
+
// [1] DIN Deutsches Institut fuer Normung e. V. (2013). <em>DIN ISO 8855 Strassenfahrzeuge - Fahrzeugdynamik und Fahrverhalten - Begriffe</em>. (DIN ISO 8855:2013-11). Berlin, Germany.
// [1] Patton, K. T. & Thibodeau, G. A. (2015). <em>Anatomy & Physiology</em>. 9th Edition. Elsevier. Missouri, U.S.A. ISBN 978-0-323-34139-4. p. 1229.
290
290
//
291
291
optionalOrientation3dhead_pose=4;
292
292
293
293
// Pedestrian upper body pose for behavior prediction. Describes the
294
294
// upper body orientation w.r.t. the host vehicle orientation.
295
295
// The x-axis of the right-handed upper body frame is pointing along the
296
-
// pedestrian's upper body ventral direction [2] (i.e. usually
297
-
// pedestrian's intended moving direction) and the z-axis is pointing
298
-
// upwards (to pedestrian's head).
296
+
// pedestrian's upper body ventral (anterior) direction (i.e. usually
297
+
// pedestrian's intended moving direction), the y-axis lateral to the left,
298
+
// and the z-axis is pointing upwards (superior, to the pedestrian's head) [1].
// [1] Patton, K. T. & Thibodeau, G. A. (2015). <em>Anatomy & Physiology</em>. 9th Edition. Elsevier. Missouri, U.S.A. ISBN 978-0-323-34139-4. p. 1229.
0 commit comments