Filter löschen
Filter löschen

3D Display returns error: The first input must contain unique values.

2 Ansichten (letzte 30 Tage)
Linux Mint
Linux Mint am 28 Mär. 2021
Beantwortet: Nirupama am 29 Feb. 2024
In Driving Scenario Designer, when I attempt to run 3D Display it's returning an error "The first input must contain unique values".
I've run 3D Display before with no issue, but with not in conjunction with Open Street Map ).osm files.

Antworten (1)

Nirupama
Nirupama am 29 Feb. 2024
I believe you have encountered an error "The first input must contain unique values" while using 3D Dsiplay in Driving Scenario Designer.
I had encountered the very same error previously. In my case the waypoints values that I specified for the road was not unique.
When importing road data from Open Street Map (OSM) into a driving scenario designer or similar simulation environment, the waypoints used to define the roads should generally consist of unique (x, y) pairs. Each waypoint marks a specific point on the road, and together they define the road's path. If waypoints are not unique, it could lead to issues such as:
  • Overlapping road segments
  • Confusion in the definition of road paths
  • Errors in the simulation or visualization, like the one you encountered
However, it's important to note that real-world road networks can have complex geometries, including roads that cross over or under themselves at different elevations, or roundabouts where the same (x, y) coordinates might be visited more than once but at different times or in different contexts. In such cases, the third dimension (z, representing elevation) or additional attributes would differentiate the waypoints.
When importing OSM data, the import process should handle the translation of OSM data into the format required by the driving scenario designer, ensuring that the waypoints for each road segment are unique where necessary and accurately represent the road network. If the import process introduces duplicate waypoints, you may need to preprocess the data to remove duplicates or correct any issues before using it in your simulation.
For more details ypu can refer to the following documenation links:
Hope this helps!

Kategorien

Mehr zu Simulink finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by