Skip to content
Snippets Groups Projects
Commit 7f8d9ba4 authored by Sebastian Pape's avatar Sebastian Pape
Browse files

More cleaning

parent 4882ea86
No related branches found
No related tags found
No related merge requests found
...@@ -64,7 +64,7 @@ function MarkerTrackerAruco(props: ArcuoMarkerDetectorProps) { ...@@ -64,7 +64,7 @@ function MarkerTrackerAruco(props: ArcuoMarkerDetectorProps) {
}; };
}, []); }, []);
useSocket("", (e) => { useSocket("192.168.137.1:1234", (e) => {
console.log(e.data); console.log(e.data);
let value = parseFloat((e.data as string).substring(1)); let value = parseFloat((e.data as string).substring(1));
if (deviceCamera.current == null) return; if (deviceCamera.current == null) return;
...@@ -235,8 +235,7 @@ function MarkerTrackerAruco(props: ArcuoMarkerDetectorProps) { ...@@ -235,8 +235,7 @@ function MarkerTrackerAruco(props: ArcuoMarkerDetectorProps) {
{ x: translation.x, y: translation.y, z: translation.z }, { x: translation.x, y: translation.y, z: translation.z },
{ x: rotation.x, y: rotation.y, z: rotation.z, w: rotation.w } { x: rotation.x, y: rotation.y, z: rotation.z, w: rotation.w }
)); ));
console.log("Offsetting: " + translation.x + "|" + translation.y + "|" + translation.z); gl.xr.setReferenceSpace(OffsetSpace);
//gl.xr.setReferenceSpace(OffsetSpace);
setOnce.current = true; setOnce.current = true;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment