added ui and its functionality for changing position of vehicles pickup-point and unloadPoint

This commit is contained in:
2025-04-30 11:32:13 +05:30
parent 9574d70b56
commit 4b87650528
4 changed files with 42 additions and 25 deletions

View File

@@ -30,7 +30,7 @@ function VehicleInstance({ agvDetail }: any) {
);
function vehicleStatus(modelId: string, status: string) {
console.log(`AGV ${modelId}: ${status}`);
// console.log(`${modelId} , ${status});
}
// Function to reset everything
@@ -43,7 +43,7 @@ function VehicleInstance({ agvDetail }: any) {
const increment = () => {
if (isIncrememtable.current) {
console.log('called');
incrementVehicleLoad(agvDetail.modelUuid, 2);
isIncrememtable.current = false;
}
@@ -51,7 +51,7 @@ function VehicleInstance({ agvDetail }: any) {
useEffect(() => {
if (isPlaying) {
if (!agvDetail.isActive && agvDetail.state === 'idle' && currentPhase === 'stationed') {
const toPickupPath = computePath(
new THREE.Vector3(agvDetail?.position[0], agvDetail?.position[1], agvDetail?.position[2]),