Compare commits

...

6 Commits

7 changed files with 29 additions and 1678 deletions

View File

@ -18,6 +18,8 @@ export enum MapPointType {
,
/** 库区点 - 仓储作业区域 */
,
/** 不可避让点 - 机器人不可避让的点位 */
= 7,
/** 密集库区点 - 密集库区点位 */
// 密集库区点,

View File

@ -8,7 +8,8 @@
"fill-2": "#69C6F5",
"fill-3": "#E48B1D",
"fill-4": "#E48B1D",
"fill-5": "#a72b69"
"fill-5": "#a72b69",
"fill-6": "#E63A3A"
},
"point-l": {
"stroke": "#595959",

View File

@ -8,7 +8,8 @@
"fill-2": "#69C6F5",
"fill-3": "#E48B1D",
"fill-4": "#E48B1D",
"fill-5": "#a72b69"
"fill-5": "#a72b69",
"fill-6": "#E63A3A"
},
"point-l": {
"stroke": "#595959",

View File

@ -101,6 +101,7 @@ const updateActiveKeys = () => {
{ key: '避让点', type: MapPointType.避让点 },
{ key: '临时避让点', type: MapPointType.临时避让点 },
{ key: '库区点', type: MapPointType.库区点 },
{ key: '不可避让点', type: MapPointType.不可避让点 },
{ key: '电梯点', type: MapPointType.电梯点 },
{ key: '自动门点', type: MapPointType.自动门点 },
{ key: '充电点', type: MapPointType.充电点 },
@ -278,6 +279,21 @@ watch(keyword, updateActiveKeys);
</a-list>
</a-collapse-panel>
<a-collapse-panel :header="$t('不可避让点')" key="不可避让点">
<a-list rowKey="id" :data-source="points.filter(({ point }) => point?.type === MapPointType.不可避让点)">
<template #renderItem="{ item }">
<a-list-item
class="ph-16"
:class="{ selected: item.id === current }"
style="height: 36px"
@click="select(item.id)"
>
<a-typography-text type="secondary">{{ item.label }}</a-typography-text>
</a-list-item>
</template>
</a-list>
</a-collapse-panel>
<a-collapse-panel :header="$t('电梯点')" key="电梯点">
<a-list rowKey="id" :data-source="points.filter(({ point }) => point?.type === MapPointType.电梯点)">
<template #renderItem="{ item }">

View File

@ -129,9 +129,11 @@ const monitorScene = async () => {
const robotState: any = {};
// 2.1 robotState
if (points?.length) {
const cx = x || 37;
const cy = y || 37;
// refreshRobot
if (points?.length && !isMonitorMode.value) {
//
const cx = x || 37; // X37
const cy = y || 37; // Y37
robotState.path = points.map((p) => ({ x: p.x - cx, y: p.y - cy }));
}

View File

@ -2103,7 +2103,8 @@ function drawPoint(ctx: CanvasRenderingContext2D, pen: MapPen): void {
case MapPointType.:
case MapPointType.:
case MapPointType.:
case MapPointType.: {
case MapPointType.:
case MapPointType.: {
ctx.beginPath();
ctx.moveTo(x + w / 2 - r, y + r);
ctx.arcTo(x + w / 2, y, x + w - r, y + h / 2 - r, r);

File diff suppressed because it is too large Load Diff