Skip to content

Commit

Permalink
feat(version): release 0.28.6 version
Browse files Browse the repository at this point in the history
  • Loading branch information
gokhangunduz committed Jan 10, 2024
1 parent 17b0573 commit ededdb4
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 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.28.5",
"version": "0.28.6",
"private": true,
"scripts": {
"dev": "react-scripts start",
Expand Down
3 changes: 2 additions & 1 deletion src/components/Machine3D/Machine3D.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ interface IMachine3D {
x: number;
y: number;
z: number;
yaw?: number;
};
};
}
Expand Down Expand Up @@ -64,7 +65,7 @@ export default function Machine3D({ item }: IMachine3D) {
onPointerLeave={() => hovered && setHovered(false)}
scale={1}
position={[item?.waypoint?.y, item?.waypoint?.z + 0.5, item?.waypoint?.x]}
rotation={[0, item?.waypoint?.z || 0, 0]}
rotation={[0, item?.waypoint?.yaw || 0, 0]}
>
<boxBufferGeometry args={[1, 1, 1]} />
<meshNormalMaterial
Expand Down
11 changes: 11 additions & 0 deletions src/pages/EnvironmentPage/TaskManagement/BarcodeManagement3D.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,17 @@ export default function App({ ros }: any) {
return <Machine3D key={barcodeItemIndex} item={barcodeItem} />;
})}
<Robot3D />
<Machine3D
item={{
barcode: "asd",
waypoint: {
x: 1,
y: 2,
z: 0,
yaw: 1.57,
},
}}
/>
</Scene3D>
);
}

0 comments on commit ededdb4

Please sign in to comment.