From 8e6d7c8275117ca2659e7f82051f8af19741aa9d Mon Sep 17 00:00:00 2001
From: whycq <913841844@qq.com>
Date: 星期五, 07 二月 2025 16:51:33 +0800
Subject: [PATCH] #

---
 app/src/main/java/com/example/agvcontroller/AGVCar.java |  123 ++++++++++++++++++++++++++++++++++++++++
 1 files changed, 122 insertions(+), 1 deletions(-)

diff --git a/app/src/main/java/com/example/agvcontroller/AGVCar.java b/app/src/main/java/com/example/agvcontroller/AGVCar.java
index 3d04798..c6f5f37 100644
--- a/app/src/main/java/com/example/agvcontroller/AGVCar.java
+++ b/app/src/main/java/com/example/agvcontroller/AGVCar.java
@@ -1,11 +1,24 @@
 package com.example.agvcontroller;
 
-public class AGVCar {
+import java.io.Serializable;
+
+public class AGVCar implements Serializable {
     private String clientId;
     private String ip;
     private int port;
     private String agvNo;
     private int status;
+    private int battery;
+    private int agvStatus;
+    private String positionID;
+    private int positionX;
+    private int positionY;
+    private float agvAngle;
+    private float gyroAngle;
+    private int forkHeight;
+    private int forkExtend;
+    private int forkAngle;
+    private int agvError;
 
     public AGVCar(String clientId, String ip, int port, String agvNo, int status) {
         this.clientId = clientId;
@@ -14,6 +27,114 @@
         this.agvNo = agvNo;
         this.status = status;
     }
+
+    public AGVCar(String clientId, String ip, int port, String agvNo, int status, int battery, int agvStatus, String positionID, int positionX, int positionY, float agvAngle, float gyroAngle, int forkHeight, int forkExtend, int forkAngle, int agvError) {
+        this.clientId = clientId;
+        this.ip = ip;
+        this.port = port;
+        this.agvNo = agvNo;
+        this.status = status;
+        this.battery = battery;
+        this.agvStatus = agvStatus;
+        this.positionID = positionID;
+        this.positionX = positionX;
+        this.positionY = positionY;
+        this.agvAngle = agvAngle;
+        this.gyroAngle = gyroAngle;
+        this.forkHeight = forkHeight;
+        this.forkExtend = forkExtend;
+        this.forkAngle = forkAngle;
+        this.agvError = agvError;
+    }
+
+    public int getBattery() {
+        return battery;
+    }
+
+    public void setBattery(int battery) {
+        this.battery = battery;
+    }
+
+    public int getAgvStatus() {
+        return agvStatus;
+    }
+
+    public void setAgvStatus(int agvStatus) {
+        this.agvStatus = agvStatus;
+    }
+
+    public String getPositionID() {
+        return positionID;
+    }
+
+    public void setPositionID(String positionID) {
+        this.positionID = positionID;
+    }
+
+    public int getPositionX() {
+        return positionX;
+    }
+
+    public void setPositionX(int positionX) {
+        this.positionX = positionX;
+    }
+
+    public int getPositionY() {
+        return positionY;
+    }
+
+    public void setPositionY(int positionY) {
+        this.positionY = positionY;
+    }
+
+    public float getAgvAngle() {
+        return agvAngle;
+    }
+
+    public void setAgvAngle(int agvAngle) {
+        this.agvAngle = agvAngle;
+    }
+
+    public float getGyroAngle() {
+        return gyroAngle;
+    }
+
+    public void setGyroAngle(int gyroAngle) {
+        this.gyroAngle = gyroAngle;
+    }
+
+    public int getForkHeight() {
+        return forkHeight;
+    }
+
+    public void setForkHeight(int forkHeight) {
+        this.forkHeight = forkHeight;
+    }
+
+    public int getForkExtend() {
+        return forkExtend;
+    }
+
+    public void setForkExtend(int forkExtend) {
+        this.forkExtend = forkExtend;
+    }
+
+    public int getForkAngle() {
+        return forkAngle;
+    }
+
+    public void setForkAngle(int forkAngle) {
+        this.forkAngle = forkAngle;
+    }
+
+    public int getAgvError() {
+        return agvError;
+    }
+
+    public void setAgvError(int agvError) {
+        this.agvError = agvError;
+    }
+
     public String getClientId() {return clientId; }
 
     public String getIp() {

--
Gitblit v1.9.1