fix console

This commit is contained in:
Gomathi 2025-04-28 17:59:28 +05:30
parent 1182850a1f
commit 32a44adb7c
3 changed files with 6 additions and 4 deletions

View File

@ -22,6 +22,7 @@ function RoboticArmAnimator({ armUuid, HandleCallback, currentPhase, ikSolver, t
const [currentPath, setCurrentPath] = useState<[number, number, number][]>([]);
useEffect(() => {
setCurrentPath(path)
}, [path])

View File

@ -100,7 +100,7 @@ function RoboticArmInstance({ robot }: { robot: ArmBotStatus }) {
);
if (curve) {
setTimeout(() => {
logStatus(robot.modelUuid, "waiting to pick box");
logStatus(robot.modelUuid, "picking the object");
setPath(curve.points.map(point => [point.x, point.y, point.z]));
}, 1500)
}
@ -117,7 +117,7 @@ function RoboticArmInstance({ robot }: { robot: ArmBotStatus }) {
);
if (curve) {
setTimeout(() => {
logStatus(robot.modelUuid, "waiting to drop box");
logStatus(robot.modelUuid, "dropping the object");
setPath(curve.points.map(point => [point.x, point.y, point.z]));
}, 1500)
}
@ -170,7 +170,8 @@ function RoboticArmInstance({ robot }: { robot: ArmBotStatus }) {
}
}
const logStatus = (id: string, status: string) => {
console.log(id + "," + status);
// console.log(id + "," + status);
console.log( status);
}
return (

View File

@ -67,7 +67,7 @@ function IKInstance({ modelUrl, setIkSolver, ikSolver, robot, groupRef, processe
const helper = new CCDIKHelper(OOI.Skinned_Mesh, iks, 0.05)
scene.add(helper)
// scene.add(helper)
}, [gltf]);