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

66 lines
3.8 KiB
XML

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 610" width="640" height="610">
<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; }
.dim { stroke: #0a7684; stroke-width: 1.4; fill: none; }
.ext { stroke: #0a7684; stroke-width: .8; stroke-dasharray: 3 3; opacity: .75; }
.axis { stroke: #5a6b74; stroke-width: 1; stroke-dasharray: 10 4 2 4; fill: none; }
.robot { fill: none; stroke: #42535e; stroke-width: 1.6; }
.rs { fill: #42535e; opacity: .07; }
.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="610" fill="#ffffff"/>
<text x="320" y="32" text-anchor="middle" class="mu">phía tường, sau trạm</text>
<line x1="320" y1="128" x2="320" y2="604" class="axis"/>
<text x="328" y="600" class="mu">phân giác</text>
<line x1="320" y1="210" x2="210.4" y2="100.4" class="wing" stroke-width="8"/>
<line x1="320" y1="210" x2="429.6" y2="100.4" class="wing" stroke-width="8"/>
<path d="M 288.18 178.18 A 45 45 0 0 1 351.82 178.18" class="dim"/>
<text x="320" y="142" text-anchor="middle" class="m dt halo">vertex_angle</text>
<text x="320" y="158" text-anchor="middle" class="dt halo">θ</text>
<line x1="322.8" y1="212.8" x2="345.5" y2="235.5" class="ext"/>
<line x1="432.4" y1="103.2" x2="455.1" y2="125.9" class="ext"/>
<line x1="341.2" y1="231.2" x2="450.8" y2="121.6" class="dim" marker-start="url(#a)" marker-end="url(#a)"/>
<text x="407" y="187" text-anchor="middle" transform="rotate(-45 407 187)" class="m dt halo">wing_length</text>
<text x="530" y="66" text-anchor="middle" class="mu">ví dụ: V lồi, đỉnh chĩa về robot</text>
<rect x="147.5" y="247.5" width="345" height="325" rx="10" class="rs"/>
<rect x="147.5" y="247.5" width="345" height="325" rx="10" class="robot"/>
<text x="320" y="548" text-anchor="middle" class="mu">robot đang ở vị trí sạc (nhìn từ trên)</text>
<rect x="307" y="249" width="26" height="16" rx="3" class="lidar"/>
<text x="342" y="266" class="mu">cảm biến (frame của scan_topic)</text>
<line x1="305" y1="410" x2="335" y2="410" class="dim"/>
<line x1="320" y1="395" x2="320" y2="425" class="dim"/>
<circle cx="320" cy="410" r="5" class="dim"/>
<text x="342" y="414" class="m">base_link</text>
<line x1="330" y1="210" x2="568" y2="210" class="ext"/>
<line x1="340" y1="410" x2="568" y2="410" class="ext"/>
<line x1="560" y1="210" x2="560" y2="410" class="dim" marker-start="url(#a)" marker-end="url(#a)"/>
<text x="578" y="310" text-anchor="middle" transform="rotate(90 578 310)" class="m dt halo">offset_x</text>
<line x1="300" y1="210" x2="124" y2="210" class="ext"/>
<line x1="307" y1="257" x2="124" y2="257" class="ext"/>
<line x1="132" y1="210" x2="132" y2="257" class="dim" marker-start="url(#a)" marker-end="url(#a)"/>
<text x="124" y="248" text-anchor="end" class="m dt halo">d_sensor</text>
<text x="124" y="232" text-anchor="end" class="mu halo">đỉnh → cảm biến</text>
<line x1="305" y1="410" x2="124" y2="410" class="ext"/>
<line x1="132" y1="257" x2="132" y2="410" class="dim" marker-start="url(#a)" marker-end="url(#a)"/>
<text x="124" y="324" text-anchor="end" class="m dt halo">s_x</text>
<text x="124" y="340" text-anchor="end" class="mu halo">TF base_link</text>
<text x="124" y="354" text-anchor="end" class="mu halo">→ cảm biến</text>
</svg>