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.
80 lines
4.5 KiB
XML
80 lines
4.5 KiB
XML
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 500" width="640" height="500">
|
|
<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; }
|
|
.faceL { fill: #e9a25f; stroke: #b9611a; stroke-width: 1.2; }
|
|
.faceR { fill: #d27a24; stroke: #b9611a; stroke-width: 1.2; }
|
|
.tape { fill: url(#h); stroke: #5d6b73; stroke-width: 1.2; }
|
|
.floor { fill: #eef2f3; stroke: #c7d2d7; stroke-width: 1; }
|
|
.scanline { stroke: #0a7684; stroke-width: 1.6; stroke-dasharray: 7 4; fill: none; }
|
|
.ray { stroke: #0a7684; stroke-width: 1.1; stroke-dasharray: 4 3; opacity: .8; }
|
|
.dim { stroke: #0a7684; stroke-width: 1.4; fill: none; }
|
|
.ext { stroke: #0a7684; stroke-width: .8; stroke-dasharray: 3 3; opacity: .75; }
|
|
.leader { stroke: #5a6b74; stroke-width: .9; fill: none; }
|
|
.lidar { fill: #42535e; }
|
|
.robot { fill: #42535e; opacity: .10; stroke: #42535e; stroke-width: 1.2; }
|
|
</style>
|
|
<defs>
|
|
<pattern id="h" width="5" height="5" patternUnits="userSpaceOnUse" patternTransform="rotate(45)">
|
|
<rect width="5" height="5" fill="#f4f7f8"/>
|
|
<line x1="0" y1="0" x2="0" y2="5" stroke="#7d8b93" stroke-width="1.4"/>
|
|
</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="500" fill="#ffffff"/>
|
|
|
|
<!-- sàn -->
|
|
<polygon points="40,330 300,410 600,380 600,300 340,240 40,280" class="floor"/>
|
|
<text x="80" y="340" class="mu">sàn</text>
|
|
|
|
<!-- hai mặt ngoài của trạm V lồi, đỉnh chĩa về phía người xem / robot -->
|
|
<polygon points="300,360 129.2,314 129.2,44 300,90" class="faceL"/>
|
|
<polygon points="300,360 392,314 392,44 300,90" class="faceR"/>
|
|
|
|
<!-- vết mặt phẳng quét trên hai mặt -->
|
|
<line x1="300" y1="210" x2="129.2" y2="164" class="scanline"/>
|
|
<line x1="300" y1="210" x2="392" y2="164" class="scanline"/>
|
|
|
|
<!-- hai dải phản quang, tâm ở giữa cánh, phủ mặt phẳng quét -->
|
|
<polygon points="247.6,225.9 181.4,208.1 181.4,148.1 247.6,165.9" class="tape"/>
|
|
<polygon points="328.2,225.9 363.8,208.1 363.8,148.1 328.2,165.9" class="tape"/>
|
|
|
|
<!-- robot (một phần) và cảm biến -->
|
|
<polygon points="360,470 470,500 640,470 640,410 520,384 380,414" class="robot"/>
|
|
<rect x="380" y="404" width="22" height="16" rx="3" class="lidar"/>
|
|
<line x1="391" y1="410" x2="214.5" y2="187" class="ray"/>
|
|
<line x1="391" y1="410" x2="346" y2="187" class="ray"/>
|
|
<text x="410" y="446" class="mu">robot, cảm biến ở độ cao h_sensor</text>
|
|
|
|
<!-- chú thích -->
|
|
<line x1="150" y1="108" x2="200" y2="160" class="leader"/>
|
|
<text x="150" y="102" text-anchor="middle">dải trái</text>
|
|
<line x1="470" y1="156" x2="358" y2="170" class="leader"/>
|
|
<text x="530" y="148" text-anchor="middle">dải phải</text>
|
|
<text x="530" y="166" text-anchor="middle" class="mu">mặt ngoài, mỗi cánh 1 dải</text>
|
|
<text x="300" y="380" text-anchor="middle" class="mu">đỉnh (cạnh đứng gần robot nhất)</text>
|
|
|
|
<line x1="129.2" y1="164" x2="62" y2="164" class="ext"/>
|
|
<line x1="129.2" y1="314" x2="62" y2="314" class="ext"/>
|
|
<line x1="70" y1="314" x2="70" y2="164" class="dim" marker-start="url(#a)" marker-end="url(#a)"/>
|
|
<text x="58" y="244" text-anchor="middle" transform="rotate(-90 58 244)" class="m dt halo">h_sensor</text>
|
|
|
|
<line x1="181.4" y1="148.1" x2="164" y2="148.1" class="ext"/>
|
|
<line x1="181.4" y1="208.1" x2="164" y2="208.1" class="ext"/>
|
|
<line x1="170" y1="148.1" x2="170" y2="208.1" class="dim" marker-start="url(#a)" marker-end="url(#a)"/>
|
|
<text x="158" y="183" text-anchor="end" class="dt halo">≥ 10 cm</text>
|
|
|
|
<line x1="300" y1="90" x2="300" y2="68" class="ext"/>
|
|
<line x1="392" y1="44" x2="392" y2="22" class="ext"/>
|
|
<line x1="300" y1="74" x2="392" y2="28" class="dim" marker-start="url(#a)" marker-end="url(#a)"/>
|
|
<text x="350" y="44" text-anchor="middle" transform="rotate(-26.6 350 44)" class="m dt halo">wing_length</text>
|
|
|
|
<text x="510" y="262" text-anchor="middle" class="mu">nét đứt trên mặt cánh:</text>
|
|
<text x="510" y="278" text-anchor="middle" class="mu">nơi mặt phẳng quét cắt qua</text>
|
|
</svg>
|