Hi! First of all, thanks a lot for the whole CommonRoad project! It’s super useful for my research and provides large parts of what I would otherwise have had to implement on my own.
I got a question related to the dataset converters. In your latest paper, you mention that you used them to convert from nuPlan to CommonRoad scenarios, and then, ultimately, to the graph dataset. However, there doesn’t seem to be any nuPlan-related code in repo. Is it not published, yet? Would be helpful to have this!
Also, another question to help with my understanding: when extracting CommonRoad scenarios from data, you’ll always have to pass a fixed length / number of frame, correct? There is no “dynamic” segmentation / no way to determine the start- and end points of a (in whatever sense) relevant scenario in a “smart” way, no?
Regarding nuplan: The publishing of the nuplan converter is on our roadmap, however, it is not ready yet. In the meantime you could use the converted scenarios available here.
Regarding segmentation: We currently support two modes for segmentation: (1) fixed time frame, (2) one scenario per vehicle. A “smart” way is difficult to realize in general, since “smart” is often application-specific. However, the next release of the dataset converter (published within the next month) includes a major refactoring, making use of OOP, which should facilitate customization of the segmentation scheme to the user’s requirements.
Sorry to bother you guys again, but can you give a rough estimate of when the conversion code will be published? I’m considering implementing it myself, because I’d need precisely that for my research. But I’m hesitant as we would literally do the exact same piece of work in parallel then.
Hello @fmuetsch, have you implemented the converter by yourself at the end? Because it would be super helpful for my research as well!
Moreover, I am not quite sure whether using nuPlan or nuScenes, do you think would be also possible to use nuScenes and convert it in some way?
I would like to measure the safety based on their metrics using CommonRoad-CriMe, I think it would be really helpful.
Or maybe you think that it would be just possible to modify CommonRoad-CriMe codebase and adapt it to nuScenes data format?
Hi @samuele99. We’ve implemented a very rudimentary conversion from nuPlan map + scenarios to CommonRoad (with one indirection via another custom format that we’re using internally). But it’s not comprehensive (only some layers of the map are covered) and contains quite a lot of ugly hacks here and there, which is why I wouldn’t feel comfortable sharing the code.
My preferred option would still be the CommonRoad team to release their tooling!
Regarding nuScenes: I’ve never worked with nuScenes, but in my undestanding, their map format is entirely different from nuPlan’s (just a single PNG image?). There is [1] to convert nuScenes maps into Lanelet2 format, from where you could - in theory - use the crdesigner tool to convert to CommonRoad. Converting the scenarios themselves should be quite straightforward as well, but, again, no experience with nuScenes so far.
Your research does actually sound quite familiar to ours. We’re also looking into CriMe to compute criticality of scenarios (over time) for different purposes. Perhaps lets connect and share our goals?
@samuele99@fmuetsch
FYI: We plant to have a student group finalizing the nuplan converter in the upcoming semester.
A concrete release date depends on the progress of the students.
I’m also looking forward to the tool for converting nuplan to commonroad. As for the mentioned dataset available generated from nuplan, I found there’s no ego trajectory right? do you have any version of dataset with ego trajectory or this can only be done after the tool being released.
Ja, Sie haben Recht, dass Sie beim Extrahieren von CommonRoad-Szenarien aus Daten eine feste Länge oder Anzahl von Frames angeben müssen. Unsere aktuelle Implementierung unterstützt keine dynamische Segmentierung oder automatische Bestimmung von Start- und Endpunkten für relevante Szenarien. Dies ist ein Bereich, der uns bekannt ist und den wir für zukünftige Verbesserungen in Betracht ziehen, da wir den Wert einer intelligenteren und kontextbewussteren Szenarioextraktion verstehen.
Unfortunately, not. We decided to postpone the nuplan dataset finalization.
Instead, we are currently working on three other datastes and the extension of the roundD dataset.
Didn’t really look deeply into the nuplan-devkit, yet, but not found that it comes with a lot of super convenient, high-level methods to interact with the data. I wrote a quick & dirty nuplan → CommonRoad converter - only for the map itself for now.
It seems to work for the most parts, but I’m still getting a bunch of these errors:
Repairing was not successful at first attempt with map ZAM_Test-1 using specification LaneletFormulaID.LEFT_RIGHT_BOUNDARY_ASSIGNMENT and error (51734,).
Not really sure, what they’re about. Perhaps somebody could have a look and help me debug this?
I have a working script for converting entire nuPlan scenarios into CommonRoad format as well, but it’s still a bit hacky here and there and not yet stable enough that I would feel comfortable sharing it.