Skip to content

Commit 62d7023

Browse files
authored
Merge pull request #200 from OpenSimulationInterface/improvement/harmonize-detectedobjects
Improvement/harmonize detectedobjects (solves #197)
2 parents 30bb7c2 + b417ac9 commit 62d7023

23 files changed

+2741
-2743
lines changed

CMakeLists.txt

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ if(WIN32 AND NOT CYGWIN)
2626
else()
2727
set(DEF_INSTALL_CMAKE_DIR lib/cmake/${PROJECT_NAME})
2828
endif()
29-
set(INSTALL_CMAKE_DIR ${DEF_INSTALL_CMAKE_DIR} CACHE PATH
29+
set(INSTALL_CMAKE_DIR ${DEF_INSTALL_CMAKE_DIR} CACHE PATH
3030
"Installation directory for CMake files")
3131

32-
# read the version number from the file "VERSION"
32+
# read the version number from the file "VERSION"
3333
file(STRINGS "VERSION" VERSION_CONTENTS)
3434
foreach(LINE ${VERSION_CONTENTS})
3535
string(REGEX REPLACE " |\t" "" LINE ${LINE})
@@ -61,7 +61,6 @@ set(OSI_PROTO_FILES
6161
osi_landmark.proto
6262
osi_lane.proto
6363
osi_featuredata.proto
64-
osi_modelinternal.proto
6564
osi_object.proto
6665
osi_occupant.proto
6766
osi_sensordata.proto
@@ -147,7 +146,7 @@ install(FILES ${PROTO_HEADERS}
147146

148147
# Install the export set for use with the install-tree
149148
install(EXPORT ${PROJECT_NAME}_targets
150-
DESTINATION "${INSTALL_CMAKE_DIR}"
149+
DESTINATION "${INSTALL_CMAKE_DIR}"
151150
COMPONENT dev)
152151

153152
# add a target to generate API documentation with Doxygen
@@ -160,22 +159,22 @@ if(NOT DOXYGEN_FOUND)
160159
message(WARNING "Doxygen could not be found.")
161160

162161
else()
163-
162+
164163
if(NOT EXISTS ${FILTER_PROTO2CPP_PY_PATH}/proto2cpp.py)
165-
164+
166165
message(WARNING "${FILTER_PROTO2CPP_PY_PATH}/proto2cpp.py could not be found.")
167166

168167
else()
169-
168+
170169
set(doxyfile_in ${CMAKE_CURRENT_SOURCE_DIR}/doxygen_config.cmake.in)
171170
set(doxyfile ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile)
172171

173172
configure_file(${doxyfile_in} ${doxyfile} @ONLY)
174173

175-
ADD_CUSTOM_TARGET(api_doc ALL
174+
ADD_CUSTOM_TARGET(api_doc ALL
176175
COMMAND ${DOXYGEN_EXECUTABLE} ${doxyfile}
177176
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
178-
177+
179178
endif(NOT EXISTS ${FILTER_PROTO2CPP_PY_PATH}/proto2cpp.py)
180-
179+
181180
endif(NOT DOXYGEN_FOUND)

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ Specific errors should be handled as follows:
4343
An additional SensorDataObject is added to the list of objects in SensorData.object
4444
with SensorDataObject.model_internal_object.ground_truth_type set to kTypeGhost.
4545
- False negative:
46-
The object is marked as not seen by the sensor by setting the property
47-
SensorDataObject.model_internal_object.is_seen to false. The implementation
48-
of field-of-view calculation modules should respect this flag and never reset
46+
The object is marked as not seen by the sensor by setting the property
47+
SensorDataObject.model_internal_object.is_seen to false. The implementation
48+
of field-of-view calculation modules should respect this flag and never reset
4949
an object marked as not-seen to seen.
5050

5151

@@ -55,7 +55,7 @@ The version number is defined in InterfaceVersion::version_number in osi_common.
5555

5656
Major:
5757
A change of the major version results in an incompatibility of code and recorded proto messages.
58-
- An existing field with a number changes its meaning
58+
- An existing field with a number changes its meaning
5959
optional double field = 1; -> repeated double field = 1;
6060
Changing the definition of units of a field
6161
- Deleting a field and reusing the field number
@@ -88,11 +88,11 @@ Documentation
8888

8989
Detailed information about installation and usage of OSI can be found in the [Wiki](https://github.com/OpenSimulationInterface/open-simulation-interface/wiki)
9090

91-
In order to generate the doxygen documentation for OSI, please follow the following steps:
91+
In order to generate the doxygen documentation for OSI, please follow the following steps:
9292
1. Install [Doxygen](http://www.stack.nl/~dimitri/doxygen/download.html), set an environmental variable 'doxygen' with the path to the binary file and add it to the PATH variable: `PATH += %doxygen%`.
9393
2. Download the [vg-1.5.0.zip](https://github.com/vgteam/vg/releases/tag/v1.5.0). Unpack and copy the content of folder /vg-1.5.0/contrib/proto2cpp to your desired `<path-to-proto2cpp.py>`
9494
3. Install [graphviz-2.38](http://www.graphviz.org/Download_windows.php ), set an environmental variable 'graphviz' with the path to the binary file and add it to the PATH variable: `PATH += %graphviz%`.
95-
4. From the cmd navigate to the build directory and run:
95+
4. From the cmd navigate to the build directory and run:
9696
```cmd
9797
cmake -DFILTER_PROTO2CPP_PY_PATH=<path-to-proto2cpp.py> <path-to-CMakeLists.txt>
9898
```

doxygen_config.cmake.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
PROJECT_NAME = "@CMAKE_PROJECT_NAME@"
33
PROJECT_NUMBER = @VERSION_MAJOR@.@VERSION_MINOR@.@VERSION_PATCH@
44

5-
#Set input and output directories
5+
#Set input and output directories
66
INPUT = "@CMAKE_CURRENT_SOURCE_DIR@"
77
INPUT += "@CMAKE_CURRENT_SOURCE_DIR@/README.md"
88

@@ -13,7 +13,7 @@ IMAGE_PATH = "@CMAKE_CURRENT_SOURCE_DIR@/doc/images"
1313

1414
# There is no standard configuration for .proto files documentation.
1515
# A Doxygen filter for .proto files has to be added under the directory doc/.
16-
# proto2cpp.py is an external script. See README.md for more informations.
16+
# proto2cpp.py is an external script. See README.md for more informations.
1717
JAVADOC_AUTOBRIEF = NO
1818
EXTENSION_MAPPING = proto=C
1919
FILE_PATTERNS = *.proto

osi_common.proto

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ option optimize_for = SPEED;
44

55
package osi3;
66

7-
87
//
98
// \brief A cartesian 3D vector for positions, velocities or accelerations or
109
// its uncertainties.
@@ -215,7 +214,7 @@ message MountingPosition
215214
// \c SensorDetectionHeader) to make its x-axis point towards the referenced point
216215
// or to align it with the referenced vector. The rotations are to be performed
217216
// \b azimuth \b first (around the z-axis) and \b elevation \b second (around
218-
// the new y-axis) to follow the definition of \c Orientation3D. For the
217+
// the new y-axis) to follow the definition of \c Orientation3d. For the
219218
// sense of each rotation, the right-hand rule applies.
220219
//
221220
// <tt>vector_cartesian := Rotation(#elevation)*Rotation(#azimuth)*Unit_vector_x*#distance</tt>
@@ -249,8 +248,8 @@ message Spherical3d
249248
//
250249
// All coordinates and orientations from ground truth objects are relative to
251250
// the global ground truth frame. All coordinates and orientations
252-
// from detected objects are relative to the host vehicle frame (see: \c Vehicle
253-
// vehicle reference point).
251+
// from detected objects are relative to the host vehicle frame (see:
252+
// \c MovingObject.Vehicle vehicle reference point).
254253
//
255254
message BaseStationary
256255
{
@@ -298,14 +297,14 @@ message BaseStationary
298297
}
299298

300299
//
301-
// \brief The base attributes of each object that is moving.
300+
// \brief The base attributes of an object that is moving.
302301
//
303302
// This includes the \c MovingObject messages.
304303
//
305304
// All coordinates and orientations from ground truth objects are relative to
306305
// the global ground truth frame. All coordinates and orientations
307-
// from detected objects are relative to the host vehicle frame (see: \c Vehicle
308-
// vehicle reference point).
306+
// from detected objects are relative to the host vehicle frame
307+
// (see: \c MovingObject.Vehicle vehicle reference point).
309308
//
310309
message BaseMoving
311310
{

osi_datarecording.proto

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,6 @@ message SensorDataSeries
1919
repeated SensorData sensor_data = 1;
2020
}
2121

22-
//
23-
// \brief List of \c SensorData interface copies, one for each sensor in the
24-
// vehicle.
25-
//
26-
// Can be used to bundle output of multiple sensors in one transmission.
27-
//
28-
message SensorDataList
29-
{
30-
// List of sensor data for multiple sensors at a specific timestep.
31-
//
32-
repeated SensorData sensor = 1;
33-
}
34-
3522
//
3623
// \brief List of sensors where each element contains a time series of
3724
// \c SensorData messages.

0 commit comments

Comments
 (0)