39 lines
2.6 KiB
XML
39 lines
2.6 KiB
XML
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 650 200" width="650" height="200">
|
|
<defs>
|
|
<marker id="tof-arr" markerWidth="8" markerHeight="6" refX="8" refY="3" orient="auto">
|
|
<path d="M0,0 L8,3 L0,6 Z" fill="#e74c3c"/>
|
|
</marker>
|
|
<marker id="tof-arr-b" markerWidth="8" markerHeight="6" refX="8" refY="3" orient="auto">
|
|
<path d="M0,0 L8,3 L0,6 Z" fill="#3498db"/>
|
|
</marker>
|
|
</defs>
|
|
<text x="325" y="20" text-anchor="middle" font-family="Arial, sans-serif" font-size="14" font-weight="bold" fill="#333">LiDAR: Time-of-Flight Distance Measurement</text>
|
|
|
|
<!-- LiDAR unit -->
|
|
<rect x="40" y="70" width="80" height="60" rx="10" fill="#3498db" fill-opacity="0.15" stroke="#3498db" stroke-width="2"/>
|
|
<text x="80" y="98" text-anchor="middle" font-family="Arial, sans-serif" font-size="11" font-weight="bold" fill="#3498db">LiDAR</text>
|
|
<text x="80" y="115" text-anchor="middle" font-family="Arial, sans-serif" font-size="9" fill="#3498db">sensor</text>
|
|
|
|
<!-- Outgoing pulse -->
|
|
<line x1="120" y1="85" x2="430" y2="85" stroke="#e74c3c" stroke-width="2" stroke-dasharray="8,4" marker-end="url(#tof-arr)"/>
|
|
<text x="275" y="78" text-anchor="middle" font-family="Arial, sans-serif" font-size="10" fill="#e74c3c">emitted laser pulse →</text>
|
|
|
|
<!-- Object -->
|
|
<rect x="445" y="55" width="30" height="90" rx="4" fill="#555" fill-opacity="0.3" stroke="#555" stroke-width="2"/>
|
|
<text x="460" y="165" text-anchor="middle" font-family="Arial, sans-serif" font-size="10" fill="#555">object</text>
|
|
|
|
<!-- Returning pulse -->
|
|
<line x1="445" y1="115" x2="128" y2="115" stroke="#3498db" stroke-width="2" stroke-dasharray="8,4" marker-end="url(#tof-arr-b)"/>
|
|
<text x="275" y="134" text-anchor="middle" font-family="Arial, sans-serif" font-size="10" fill="#3498db">← reflected pulse returns</text>
|
|
|
|
<!-- Distance annotation -->
|
|
<line x1="120" y1="155" x2="445" y2="155" stroke="#999" stroke-width="1"/>
|
|
<line x1="120" y1="150" x2="120" y2="160" stroke="#999" stroke-width="1"/>
|
|
<line x1="445" y1="150" x2="445" y2="160" stroke="#999" stroke-width="1"/>
|
|
<text x="282" y="175" text-anchor="middle" font-family="Arial, sans-serif" font-size="12" font-weight="bold" fill="#333">d = c · Δt / 2</text>
|
|
|
|
<!-- Time annotation -->
|
|
<text x="540" y="90" text-anchor="start" font-family="Arial, sans-serif" font-size="10" fill="#666">Δt = round-trip time</text>
|
|
<text x="540" y="108" text-anchor="start" font-family="Arial, sans-serif" font-size="10" fill="#666">c = speed of light</text>
|
|
<text x="540" y="126" text-anchor="start" font-family="Arial, sans-serif" font-size="10" fill="#666">÷2 for round trip</text>
|
|
</svg> |