From d523d553b293277edf24803b0140cf3f7d0bcf39 Mon Sep 17 00:00:00 2001 From: yuliang <398780299@qq.com> Date: Sun, 22 Jun 2025 20:25:40 +0800 Subject: [PATCH] =?UTF-8?q?cl2=20=E6=8E=A5=E5=85=A5amr=E6=8C=87=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/cl2/Cl23dObject.ts | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/src/modules/cl2/Cl23dObject.ts b/src/modules/cl2/Cl23dObject.ts index f123577..8d92f4b 100644 --- a/src/modules/cl2/Cl23dObject.ts +++ b/src/modules/cl2/Cl23dObject.ts @@ -370,25 +370,25 @@ export default class Cl23dObject extends THREE.Object3D { // }); // 事件绑定 - client.on('connect', () => { - console.log('Connected'); - client.subscribe(['/wcs_server/' + item.id], { qos: 0 }); - client.publish('/agv_robot/status', 'online', { retain: true }); - }); - - client.on('message', (topic, msg) => { - console.log(`[${topic}] ${msg}`); - const a = JSON.parse(msg.toString()); - this.handleMessage(a); - - }); - - client.on('error', (error) => { - console.error('Error:', error); - }); - } catch (e) { - console.error(e) - } +// client.on('connect', () => { +// console.log('Connected'); +// client.subscribe(['/wcs_server/' + item.id], { qos: 0 }); +// client.publish('/agv_robot/status', 'online', { retain: true }); +// }); +// +// client.on('message', (topic, msg) => { +// console.log(`[${topic}] ${msg}`); +// const a = JSON.parse(msg.toString()); +// this.handleMessage(a); +// +// }); +// +// client.on('error', (error) => { +// console.error('Error:', error); +// }); +// } catch (e) { +// console.error(e) +// } }