added ui and its functionality for changing position of vehicles pickup-point and unloadPoint
This commit is contained in:
@@ -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]),
|
||||
|
||||
Reference in New Issue
Block a user