इसे छोड़कर कंटेंट पर जाएं

OpenDRIVE और Lanelet2 के बीच कन्वर्ट करें

drawtonomy दोनों OpenDRIVE (.xodr) और Lanelet2 (.osm) को एक ही internal lane model में import करता है, और दोनों फॉर्मेट export कर सकता है। इससे यह editor इन दोनों के बीच एक practical bridge बन जाता है — एक import करें, visually edit करें, और दूसरा export करें — बिना किसी install के, सब कुछ browser में।

चूंकि दोनों फॉर्मेट lane-level networks को describe करते हैं, simulation और HD-map काम के लिए सबसे ज़रूरी हिस्सों में conversion सटीक रहती है: लेन geometry, लेन connectivity, junctions, और regulatory elements — traffic lights, traffic signs, stop lines, और right-of-way — सभी दोनों दिशाओं में carry होते हैं।

साझा model यह कैसे संभव बनाता है

Section titled “साझा model यह कैसे संभव बनाता है”

दोनों फॉर्मेट lane-level road networks को describe करते हैं, लेकिन geometry अलग तरह से store करते हैं — OpenDRIVE analytical primitives (arcs, spirals, polynomials) उपयोग करता है, Lanelet2 polylines (linestrings) उपयोग करता है। drawtonomy import पर OpenDRIVE geometry को polylines में sample करता है, जो representation Lanelet2 पहले से natively उपयोग करता है। दोनों फॉर्मेट की side-by-side तुलना के लिए What is OpenDRIVE? देखें।

  1. .xodr import करें और ज़रूरी roads select करें।
  2. लेन, connections, और boundaries को ज़रूरत के अनुसार edit करें।
  3. File menu → Export.osm (Lanelet2) खोलें।

लेन boundaries way linestrings बन जाती हैं और प्रत्येक लेन relation type=lanelet बन जाती है, इसलिए result Autoware-aware tools में या वापस drawtonomy में load हो जाता है।

  1. .osm import करें
  2. ज़रूरत के अनुसार edit करें।
  3. File menu → ExportOpenDRIVE / OpenSCENARIO / esmini खोलें।

Result OpenDRIVE 1.8 को target करता है और esmini में playback होता है।

क्या carry होता है और क्या नहीं

Section titled “क्या carry होता है और क्या नहीं”
FeatureConversion में carry होता है?
Lane geometry✓ (polylines में sample होती है)
Lane Next / Previous connectivity
Junctions / intersection areas✓ — connectivity और intersection geometry
Traffic lights✓ — Lanelet2 regulatory elements और OpenDRIVE <signal> + lane validity के बीच mapped
Traffic signs (speed limits सहित)✓ — दोनों directions में same regulatory mapping
Stop lines और right-of-way
आपके draw किए roads की analytical curvatureRe-fitted — sampled, exact clothoid coefficients नहीं (simulators के लिए ठीक है)
3D detail (elevation, banking, bridges)✗ — drawtonomy एक 2D canvas है