feat: 更新路径坐标处理逻辑,增加监控模式下的条件判断
This commit is contained in:
parent
4405702381
commit
e2753c65a3
@ -92,7 +92,7 @@ const monitorScene = async () => {
|
||||
|
||||
// 处理路径坐标转换,参考refreshRobot方法的逻辑
|
||||
let processedPath: Array<{ x: number; y: number }> | undefined;
|
||||
if (points?.length) {
|
||||
if (points?.length && !isMonitorMode.value) {
|
||||
// 新路径:相对于机器人中心的坐标
|
||||
const cx = x || 37; // 机器人中心X坐标,默认37
|
||||
const cy = y || 37; // 机器人中心Y坐标,默认37
|
||||
|
Loading…
x
Reference in New Issue
Block a user