필터 지우기
필터 지우기

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

조회 수: 2 (최근 30일)
Linux Mint
Linux Mint 2021년 3월 28일
답변: Nirupama 2024년 2월 29일
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.

답변 (1개)

Nirupama
Nirupama 2024년 2월 29일
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!

카테고리

Help CenterFile Exchange에서 Simulink에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by