-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Meshes creation taking a lot of time for this map #47
Comments
First, to fall I proceeded to evaluate the time that the different query times take using maliput_osm(which relies on maliput_sparse), using as a point of comparison maliput_malidrive, which is our most mature backend. Raw time measuringTime the commands take for each map [in seconds]:
In
Analyzing the obj creation using a profilerDuring the obj creation, several queries against the road geometry are performed, in order to properly analyze whether it is a lack of performance in the For convenience, I decided to use
Running profiler when creating obj file for: Note: These images are zoomed in in a particular part for the purposes of this document.
Diving deeper into In particular for the obj creation, the road geometry is "sampled" using a small sample step and the Possible SolutionFor increasing performance when dealing with line string geometry queries. We should reorganize the space of each line string into a kdtree or similar. Most of the queries rely on geometrical queries that return the closest point or the two closest points of the line string to an external xyz point. We could be largely benefited by using |
CC: @agalbachicar |
Some questions/assumptions to answer/comment
Performance analysisI continued the analysis on the performance of this For such a thing the following considerations were made:
Using maliput_multilane backendFor running the
Note: By default, it would also spawn three railcar agents, which I disabled by code. Some notes from the profiler:
Using maliput_osm backendFor running the
Note: By default, it would also spawn three railcar agents, which I disabled by code. Here the results aren't that encouraging:
Conclusions
Proposals
|
Closed as completed |
Summary
Using
maliput_osm
I measured how much time it takes to convert to obj the following map:lanelet2_s_shape_road.zip

Note: I noticed it because of using
maliput_viz
for checking out the maps.The map is taking quite a lot and it isn't a large map at all.
Task
Investigate:
The text was updated successfully, but these errors were encountered: