fix console
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user