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

114 lines
7.3 KiB
XML

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 330" width="640" height="330">
<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; }
.wr { fill: #b0451a; }
.halo { paint-order: stroke; stroke: #ffffff; stroke-width: 4px; stroke-linejoin: round; }
.grid { stroke: #e3e8ea; stroke-width: 1; }
.axis { stroke: #5a6b74; stroke-width: 1.2; }
.bar-bg { fill: #c3ccd1; }
.bar-wing { fill: #e9a25f; }
.bar-tape { fill: #7d8b93; }
.lvl { stroke: #5a6b74; stroke-width: 1.1; stroke-dasharray: 5 4; }
.thr { stroke: #0a7684; stroke-width: 2; }
.brk { stroke: #5a6b74; stroke-width: 1; fill: none; }
</style>
<rect width="640" height="330" fill="#ffffff"/>
<line x1="70" y1="250.0" x2="600" y2="250.0" class="grid"/>
<text x="64" y="254.0" text-anchor="end" class="mu">0</text>
<line x1="70" y1="197.5" x2="600" y2="197.5" class="grid"/>
<text x="64" y="201.5" text-anchor="end" class="mu">250</text>
<line x1="70" y1="145.0" x2="600" y2="145.0" class="grid"/>
<text x="64" y="149.0" text-anchor="end" class="mu">500</text>
<line x1="70" y1="92.5" x2="600" y2="92.5" class="grid"/>
<text x="64" y="96.5" text-anchor="end" class="mu">750</text>
<line x1="70" y1="40.0" x2="600" y2="40.0" class="grid"/>
<text x="64" y="44.0" text-anchor="end" class="mu">1000</text>
<rect x="71.0" y="235.3" width="6.8" height="14.7" class="bar-bg"/>
<rect x="79.8" y="232.2" width="6.8" height="17.8" class="bar-bg"/>
<rect x="88.7" y="237.4" width="6.8" height="12.6" class="bar-bg"/>
<rect x="97.5" y="230.1" width="6.8" height="19.9" class="bar-bg"/>
<rect x="106.3" y="226.9" width="6.8" height="23.1" class="bar-bg"/>
<rect x="115.2" y="233.2" width="6.8" height="16.8" class="bar-bg"/>
<rect x="124.0" y="234.2" width="6.8" height="15.8" class="bar-bg"/>
<rect x="132.8" y="231.1" width="6.8" height="18.9" class="bar-bg"/>
<rect x="141.7" y="218.5" width="6.8" height="31.5" class="bar-wing"/>
<rect x="150.5" y="215.3" width="6.8" height="34.7" class="bar-wing"/>
<rect x="159.3" y="212.2" width="6.8" height="37.8" class="bar-wing"/>
<rect x="168.2" y="210.1" width="6.8" height="39.9" class="bar-wing"/>
<rect x="177.0" y="213.2" width="6.8" height="36.8" class="bar-wing"/>
<rect x="185.8" y="206.9" width="6.8" height="43.1" class="bar-wing"/>
<rect x="194.7" y="69.4" width="6.8" height="180.6" class="bar-tape"/>
<rect x="203.5" y="58.9" width="6.8" height="191.1" class="bar-tape"/>
<rect x="212.3" y="52.6" width="6.8" height="197.4" class="bar-tape"/>
<rect x="221.2" y="49.4" width="6.8" height="200.6" class="bar-tape"/>
<rect x="230.0" y="54.7" width="6.8" height="195.3" class="bar-tape"/>
<rect x="238.8" y="50.5" width="6.8" height="199.5" class="bar-tape"/>
<rect x="247.7" y="61.0" width="6.8" height="189.0" class="bar-tape"/>
<rect x="256.5" y="67.3" width="6.8" height="182.7" class="bar-tape"/>
<rect x="265.3" y="208.0" width="6.8" height="42.0" class="bar-wing"/>
<rect x="274.2" y="211.2" width="6.8" height="38.8" class="bar-wing"/>
<rect x="283.0" y="214.3" width="6.8" height="35.7" class="bar-wing"/>
<rect x="291.8" y="216.4" width="6.8" height="33.6" class="bar-wing"/>
<rect x="300.7" y="212.2" width="6.8" height="37.8" class="bar-wing"/>
<rect x="309.5" y="218.5" width="6.8" height="31.5" class="bar-wing"/>
<rect x="318.3" y="210.1" width="6.8" height="39.9" class="bar-wing"/>
<rect x="327.2" y="205.9" width="6.8" height="44.1" class="bar-wing"/>
<rect x="336.0" y="209.1" width="6.8" height="40.9" class="bar-wing"/>
<rect x="344.8" y="211.2" width="6.8" height="38.8" class="bar-wing"/>
<rect x="353.7" y="217.4" width="6.8" height="32.6" class="bar-wing"/>
<rect x="362.5" y="213.2" width="6.8" height="36.8" class="bar-wing"/>
<rect x="371.3" y="210.1" width="6.8" height="39.9" class="bar-wing"/>
<rect x="380.2" y="208.0" width="6.8" height="42.0" class="bar-wing"/>
<rect x="389.0" y="212.2" width="6.8" height="37.8" class="bar-wing"/>
<rect x="397.8" y="214.3" width="6.8" height="35.7" class="bar-wing"/>
<rect x="406.7" y="65.2" width="6.8" height="184.8" class="bar-tape"/>
<rect x="415.5" y="55.8" width="6.8" height="194.2" class="bar-tape"/>
<rect x="424.3" y="51.6" width="6.8" height="198.4" class="bar-tape"/>
<rect x="433.2" y="48.4" width="6.8" height="201.6" class="bar-tape"/>
<rect x="442.0" y="53.7" width="6.8" height="196.3" class="bar-tape"/>
<rect x="450.8" y="57.8" width="6.8" height="192.2" class="bar-tape"/>
<rect x="459.7" y="63.1" width="6.8" height="186.9" class="bar-tape"/>
<rect x="468.5" y="69.4" width="6.8" height="180.6" class="bar-tape"/>
<rect x="477.3" y="211.2" width="6.8" height="38.8" class="bar-wing"/>
<rect x="486.2" y="214.3" width="6.8" height="35.7" class="bar-wing"/>
<rect x="495.0" y="209.1" width="6.8" height="40.9" class="bar-wing"/>
<rect x="503.8" y="216.4" width="6.8" height="33.6" class="bar-wing"/>
<rect x="512.7" y="218.5" width="6.8" height="31.5" class="bar-wing"/>
<rect x="521.5" y="220.6" width="6.8" height="29.4" class="bar-wing"/>
<rect x="530.3" y="230.1" width="6.8" height="19.9" class="bar-bg"/>
<rect x="539.2" y="233.2" width="6.8" height="16.8" class="bar-bg"/>
<rect x="548.0" y="226.9" width="6.8" height="23.1" class="bar-bg"/>
<rect x="556.8" y="235.3" width="6.8" height="14.7" class="bar-bg"/>
<rect x="565.7" y="232.2" width="6.8" height="17.8" class="bar-bg"/>
<rect x="574.5" y="237.4" width="6.8" height="12.6" class="bar-bg"/>
<rect x="583.3" y="231.1" width="6.8" height="18.9" class="bar-bg"/>
<rect x="592.2" y="234.2" width="6.8" height="15.8" class="bar-bg"/>
<line x1="70" y1="250" x2="600" y2="250" class="axis"/>
<line x1="70" y1="40" x2="70" y2="250" class="axis"/>
<text x="18" y="145.0" text-anchor="middle" transform="rotate(-90 18 145.0)" class="mu">intensity (thang của cảm biến)</text>
<text x="600" y="270" text-anchor="end" class="mu">từng tia, quét ngang qua trạm →</text>
<line x1="70" y1="205.9" x2="600" y2="205.9" class="lvl"/>
<line x1="70" y1="69.4" x2="600" y2="69.4" class="lvl"/>
<line x1="70" y1="137.65" x2="600" y2="137.65" class="thr"/>
<text x="600" y="199.9" text-anchor="end" class="mu halo">nền cao nhất ≈ 210</text>
<text x="600" y="63.400000000000006" text-anchor="end" class="mu halo">dải thấp nhất ≈ 860</text>
<text x="600" y="131.65" text-anchor="end" class="m dt halo">tape_min_intensity ≈ 535</text>
<path d="M 193.7 30 L 193.7 24 L 264.3 24 L 264.3 30" class="brk"/>
<text x="229.0" y="18" text-anchor="middle" class="mu">dải trái: 8 tia</text>
<path d="M 405.7 30 L 405.7 24 L 476.3 24 L 476.3 30" class="brk"/>
<text x="441.0" y="18" text-anchor="middle" class="mu">dải phải: 8 tia</text>
<rect x="70" y="290" width="12" height="10" class="bar-bg"/>
<text x="88" y="299" class="mu">tường, vật khác</text>
<rect x="220" y="290" width="12" height="10" class="bar-wing"/>
<text x="238" y="299" class="mu">mặt cánh</text>
<rect x="330" y="290" width="12" height="10" class="bar-tape"/>
<text x="348" y="299" class="mu">dải phản quang</text>
<text x="70" y="320" class="wr">Số minh hoạ. Đo thang thật của cảm biến, không chép số này.</text>
</svg>