Files
dock_pattern_action/doc/fig/tape_height.svg
duongtd 5bbcf37f1d feat: load v_shape from the profile YAML, add the dock measuring guide
Read v_shape per profile and fail loud on an unknown value. The start log now prints the loaded v_shape so it can be checked without opening the YAML on the robot. Add doc/MEASURE_AND_CONFIGURE.md with figures and link it from the README.
2026-10-27 13:09:30 +07:00

62 lines
3.4 KiB
XML

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 300" width="640" height="300">
<style>
text { font-family: "DejaVu Sans", Arial, sans-serif; font-size: 13px; fill: #1b2733; }
.m { font-family: "DejaVu Sans Mono", Consolas, monospace; font-size: 12.5px; }
.mu { fill: #5a6b74; font-size: 12px; }
.dt { fill: #0a7684; }
.halo { paint-order: stroke; stroke: #ffffff; stroke-width: 4px; stroke-linejoin: round; }
.tape { fill: url(#h); stroke: #7d8b93; stroke-width: 1; }
.dim { stroke: #0a7684; stroke-width: 1.4; fill: none; }
.ext { stroke: #0a7684; stroke-width: .8; stroke-dasharray: 3 3; opacity: .75; }
.robot { fill: none; stroke: #42535e; stroke-width: 1.6; }
.rs { fill: #42535e; opacity: .07; }
.lidar { fill: #42535e; }
.wheel { fill: #ffffff; stroke: #42535e; stroke-width: 1.6; }
.floor { stroke: #5a6b74; stroke-width: 1.6; }
.scan { stroke: #0a7684; stroke-width: 1.4; stroke-dasharray: 8 5; }
.fan { stroke: #0a7684; stroke-width: .9; opacity: .55; }
.leader { stroke: #5a6b74; stroke-width: .9; fill: none; }
</style>
<defs>
<pattern id="h" width="6" height="6" patternUnits="userSpaceOnUse" patternTransform="rotate(45)">
<rect width="6" height="6" fill="#dfe5e8"/>
<line x1="0" y1="0" x2="0" y2="6" stroke="#7d8b93" stroke-width="1.6"/>
</pattern>
<marker id="a" viewBox="0 0 10 10" refX="9.5" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse">
<path d="M0 1 L10 5 L0 9 z" fill="#0a7684"/>
</marker>
</defs>
<rect width="640" height="300" fill="#ffffff"/>
<line x1="20" y1="260" x2="620" y2="260" class="floor"/>
<text x="24" y="282" class="mu">sàn</text>
<rect x="40" y="140" width="230" height="110" rx="8" class="rs"/>
<rect x="40" y="140" width="230" height="110" rx="8" class="robot"/>
<circle cx="80" cy="250" r="14" class="wheel"/>
<circle cx="230" cy="250" r="14" class="wheel"/>
<text x="155" y="200" text-anchor="middle" class="mu">robot (nhìn ngang)</text>
<rect x="262" y="190" width="22" height="20" rx="3" class="lidar"/>
<text x="273" y="128" text-anchor="middle" class="mu">cảm biến</text>
<line x1="273" y1="134" x2="273" y2="188" class="leader"/>
<line x1="284" y1="200" x2="423" y2="200" class="scan"/>
<line x1="284" y1="200" x2="423" y2="191" class="fan"/>
<line x1="284" y1="200" x2="423" y2="209" class="fan"/>
<text x="345" y="244" text-anchor="middle" class="mu">robot chúi ±1° (phóng đại)</text>
<rect x="430" y="70" width="14" height="190" fill="#d27a24"/>
<text x="437" y="60" text-anchor="middle" class="mu">tấm cánh (nhìn ngang)</text>
<rect x="423" y="175" width="7" height="50" class="tape"/>
<line x1="380" y1="122" x2="422" y2="178" class="leader"/>
<text x="370" y="116" text-anchor="middle" class="mu">dải phản quang</text>
<line x1="448" y1="175" x2="470" y2="175" class="ext"/>
<line x1="448" y1="225" x2="470" y2="225" class="ext"/>
<line x1="462" y1="175" x2="462" y2="225" class="dim" marker-start="url(#a)" marker-end="url(#a)"/>
<text x="470" y="198" class="dt halo">≥ 10 cm</text>
<text x="470" y="214" class="mu halo">h_sensor ± 5 cm</text>
<line x1="444" y1="200" x2="588" y2="200" class="ext"/>
<line x1="580" y1="260" x2="580" y2="200" class="dim" marker-start="url(#a)" marker-end="url(#a)"/>
<text x="596" y="224" text-anchor="middle" transform="rotate(90 596 224)" class="m dt halo">h_sensor</text>
</svg>