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.
This commit is contained in:
61
doc/fig/tape_layout.svg
Normal file
61
doc/fig/tape_layout.svg
Normal file
@@ -0,0 +1,61 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 400" width="640" height="400">
|
||||
<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; }
|
||||
.wing { stroke: #d27a24; stroke-linecap: round; fill: none; }
|
||||
.tape { fill: url(#h); stroke: #7d8b93; stroke-width: 1; }
|
||||
.dim { stroke: #0a7684; stroke-width: 1.4; fill: none; }
|
||||
.chord { stroke: #0a7684; stroke-width: 1.6; stroke-dasharray: 6 4; fill: none; }
|
||||
.ext { stroke: #0a7684; stroke-width: .8; stroke-dasharray: 3 3; opacity: .75; }
|
||||
.leader { stroke: #5a6b74; stroke-width: .9; fill: none; }
|
||||
.dot { fill: #0a7684; }
|
||||
</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="400" fill="#ffffff"/>
|
||||
<line x1="320" y1="300" x2="122.7" y2="102.7" class="wing" stroke-width="10"/>
|
||||
<line x1="320" y1="300" x2="517.3" y2="102.7" class="wing" stroke-width="10"/>
|
||||
<text x="320" y="140" text-anchor="middle" class="mu">lòng V: khuất, thước không đi thẳng qua được</text>
|
||||
|
||||
<polygon points="255.99,243.08 179.64,166.72 175.40,170.96 251.76,247.32" class="tape"/>
|
||||
<polygon points="384.01,243.08 460.36,166.72 464.60,170.96 388.24,247.32" class="tape"/>
|
||||
<line x1="104" y1="128" x2="176" y2="166" class="leader"/>
|
||||
<text x="96" y="122" text-anchor="middle" class="mu">dải trái</text>
|
||||
<line x1="536" y1="128" x2="464" y2="166" class="leader"/>
|
||||
<text x="544" y="122" text-anchor="middle" class="mu">dải phải</text>
|
||||
|
||||
<line x1="213.58" y1="209.14" x2="426.42" y2="209.14" class="chord" marker-start="url(#a)" marker-end="url(#a)"/>
|
||||
<circle cx="213.58" cy="209.14" r="3.5" class="dot"/>
|
||||
<circle cx="426.42" cy="209.14" r="3.5" class="dot"/>
|
||||
<text x="232" y="203" class="m dt halo">C₁</text>
|
||||
<text x="408" y="203" text-anchor="end" class="m dt halo">C₂</text>
|
||||
<text x="320" y="200" text-anchor="middle" class="m dt halo">tape_spacing</text>
|
||||
|
||||
<line x1="251.76" y1="247.32" x2="238.33" y2="260.75" class="ext"/>
|
||||
<line x1="175.40" y1="170.96" x2="161.97" y2="184.39" class="ext"/>
|
||||
<line x1="242.57" y1="256.51" x2="166.21" y2="180.15" class="dim" marker-start="url(#a)" marker-end="url(#a)"/>
|
||||
<text x="196" y="227" text-anchor="middle" transform="rotate(45 196 227)" class="m dt halo">tape_width</text>
|
||||
|
||||
<line x1="316.46" y1="303.54" x2="280.4" y2="339.6" class="ext"/>
|
||||
<line x1="213.58" y1="209.14" x2="181.76" y2="240.96" class="ext"/>
|
||||
<line x1="284.64" y1="335.36" x2="186.0" y2="236.72" class="dim" marker-start="url(#a)" marker-end="url(#a)"/>
|
||||
<text x="226" y="295" text-anchor="middle" transform="rotate(45 226 295)" class="m dt halo">d₁</text>
|
||||
|
||||
<line x1="323.54" y1="303.54" x2="359.6" y2="339.6" class="ext"/>
|
||||
<line x1="426.42" y1="209.14" x2="458.24" y2="240.96" class="ext"/>
|
||||
<line x1="355.36" y1="335.36" x2="454.0" y2="236.72" class="dim" marker-start="url(#a)" marker-end="url(#a)"/>
|
||||
<text x="414" y="295" text-anchor="middle" transform="rotate(-45 414 295)" class="m dt halo">d₂</text>
|
||||
|
||||
<text x="320" y="370" text-anchor="middle" class="mu">đỉnh ngoài</text>
|
||||
<text x="320" y="392" text-anchor="middle" class="mu">↓ phía robot</text>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 3.7 KiB |
Reference in New Issue
Block a user