Files
dock_pattern_action/doc/fig/arc_measure.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

43 lines
2.2 KiB
XML

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 340" width="640" height="340">
<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; }
.cradle { stroke: #d27a24; stroke-width: 10; fill: none; stroke-linecap: round; }
.dim { stroke: #0a7684; stroke-width: 1.4; fill: none; }
.chord { stroke: #0a7684; stroke-width: 1.6; stroke-dasharray: 6 4; fill: none; }
.rad { stroke: #5a6b74; stroke-width: 1.1; stroke-dasharray: 8 4; fill: none; }
.dot { fill: #0a7684; }
.lidar { fill: #42535e; }
</style>
<defs>
<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="340" fill="#ffffff"/>
<text x="320" y="28" text-anchor="middle" class="mu">phía tường, sau máng</text>
<!-- máng cong, tâm đường tròn nằm phía robot -->
<path d="M 151.47 158.58 A 220 220 0 0 1 488.53 158.58" class="cradle"/>
<line x1="151.47" y1="158.58" x2="488.53" y2="158.58" class="chord" marker-start="url(#a)" marker-end="url(#a)"/>
<text x="320" y="178" text-anchor="middle" class="m dt halo">c (dây cung)</text>
<line x1="320" y1="158.58" x2="320" y2="85" class="dim" marker-start="url(#a)" marker-end="url(#a)"/>
<text x="330" y="126" class="m dt halo">s (độ võng)</text>
<circle cx="320" cy="300" r="4" class="dot"/>
<text x="330" y="318" class="mu">tâm đường tròn (phía robot)</text>
<line x1="320" y1="300" x2="484.5" y2="162" class="rad"/>
<text x="420" y="246" text-anchor="middle" transform="rotate(-40 420 246)" class="m dt halo">arc_radius</text>
<line x1="320" y1="300" x2="155.5" y2="162" class="rad"/>
<path d="M 289.36 274.29 A 40 40 0 0 1 350.64 274.29" class="dim"/>
<text x="320" y="252" text-anchor="middle" class="m dt halo">arc_span</text>
<rect x="306" y="326" width="28" height="12" rx="3" class="lidar"/>
</svg>