From 0c927af89da69eb48a4208e5e4d250b7dcb2ff9b Mon Sep 17 00:00:00 2001 From: gokhangunduz Date: Tue, 9 Jan 2024 18:05:47 +0300 Subject: [PATCH] feat(version): release 0.27.2 version --- package.json | 2 +- src/contexts/BarcodeContext.tsx | 13 +++++++++++++ src/contexts/FunctionsContext.tsx | 27 ++++++++++++++++++++++++--- 3 files changed, 38 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index e27999dc..16b4fd57 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ui", - "version": "0.27.1", + "version": "0.27.2", "private": true, "scripts": { "dev": "react-scripts start", diff --git a/src/contexts/BarcodeContext.tsx b/src/contexts/BarcodeContext.tsx index 26a535a0..e882ab05 100644 --- a/src/contexts/BarcodeContext.tsx +++ b/src/contexts/BarcodeContext.tsx @@ -18,6 +18,19 @@ export default ({ children }: any) => { }); const [barcodeItems, setBarcodeItems] = useState([]); + useEffect(() => { + const barcodes = new ROSLIB.Topic({ + ros: ros, + name: "/barcode", + messageType: "std_msgs/msg/String", + }); + + ros && + barcodes.subscribe(function (barcode: any) { + console.log("barcode", barcode); + }); + }, [ros]); + useEffect(() => { const poseTopic = new ROSLIB.Topic({ ros: ros, diff --git a/src/contexts/FunctionsContext.tsx b/src/contexts/FunctionsContext.tsx index 2bea6aaa..e22f60cc 100644 --- a/src/contexts/FunctionsContext.tsx +++ b/src/contexts/FunctionsContext.tsx @@ -1371,6 +1371,16 @@ export default ({ children }: any) => { rosDistros: responseEnvironment?.payload?.data[0]?.roboticsClouds[0] ?.cloudInstances[0]?.environments[0]?.distributions, + socketEndpoint: + responseEnvironment?.payload?.data[0]?.roboticsClouds[0] + ?.cloudInstances[0]?.environments[0] + ?.bridgeIngressEndpoint, + podName: + responseEnvironment?.payload?.data[0]?.roboticsClouds[0] + ?.cloudInstances[0]?.environments[0]?.bridgePodName, + log: responseEnvironment?.payload?.data[0] + ?.roboticsClouds[0]?.cloudInstances[0]?.environments[0] + ?.bridgeApplicationLog, }, vdi: { isEnabled: @@ -1393,7 +1403,7 @@ export default ({ children }: any) => { port: item?.split("-")[1].split(":")[1], backendPort: item?.split("-")[1].split(":")[0], }; - }), + }) || [], gpuAllocation: responseEnvironment?.payload?.data[0]?.roboticsClouds[0] ?.cloudInstances[0]?.environments?.[0]?.vdiGpuResource, @@ -1428,7 +1438,7 @@ export default ({ children }: any) => { port: item?.split("-")[1].split(":")[1], backendPort: item?.split("-")[1].split(":")[0], }; - }), + }) || [], gpuAllocation: responseEnvironment?.payload?.data[0]?.roboticsClouds[0] ?.cloudInstances[0]?.environments?.[0]?.ideGpuResource, @@ -1443,6 +1453,17 @@ export default ({ children }: any) => { ?.roboticsClouds[0]?.cloudInstances[0]?.environments?.[0] ?.ideApplicationLog, }, + physicalIde: { + isEnabled: responseEnvironment?.payload?.data[0] + ?.roboticsClouds[0]?.cloudInstances[0]?.environments[0] + ?.physicalIdeIngressEndpoint + ? true + : false, + httpsEndpoint: + responseEnvironment?.payload?.data[0]?.roboticsClouds[0] + ?.cloudInstances[0]?.environments[0] + ?.physicalIdeIngressEndpoint, + }, jupyterNotebook: { isEnabled: responseEnvironment?.payload?.data[0]?.roboticsClouds[0] @@ -1468,7 +1489,7 @@ export default ({ children }: any) => { port: item?.split("-")[1].split(":")[1], backendPort: item?.split("-")[1].split(":")[0], }; - }), + }) || [], podName: responseEnvironment?.payload?.data[0]?.roboticsClouds[0] ?.cloudInstances[0]?.environments[0]?.notebookPodName,