Skip to content

Commit

Permalink
feat(version): release 0.27.2 version
Browse files Browse the repository at this point in the history
  • Loading branch information
gokhangunduz committed Jan 9, 2024
1 parent 9996856 commit 0c927af
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ui",
"version": "0.27.1",
"version": "0.27.2",
"private": true,
"scripts": {
"dev": "react-scripts start",
Expand Down
13 changes: 13 additions & 0 deletions src/contexts/BarcodeContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,19 @@ export default ({ children }: any) => {
});
const [barcodeItems, setBarcodeItems] = useState<any[]>([]);

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,
Expand Down
27 changes: 24 additions & 3 deletions src/contexts/FunctionsContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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,
Expand Down Expand Up @@ -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,
Expand All @@ -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]
Expand All @@ -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,
Expand Down

0 comments on commit 0c927af

Please sign in to comment.