]> rtime.felk.cvut.cz Git - orte/eurobot.git/blobdiff - orte/Robot_Demo/src/org/ocera/orte/demo/HokuyoScanType.java
ROBOT_DEMO: MessageData clean up
[orte/eurobot.git] / orte / Robot_Demo / src / org / ocera / orte / demo / HokuyoScanType.java
index 4a9cebb6b69b9ad5c7f3eedaf8b6305779df5728..da0362e0f1461774a1627f4441e50e1d4d903110 100644 (file)
@@ -6,21 +6,16 @@ import org.ocera.orte.types.ORTEConstant;
 
 public class HokuyoScanType extends MessageData {
        
-       private int counter = 0;
-       
        public  int[]   hokuyo = new int[681];
 
        public HokuyoScanType(DomainApp domainApp, String newTopic) {
            super();
-               if(counter == 0) {
-                    boolean b;
-                    counter++;
-                this.setTopic(newTopic); 
-                b = domainApp.regNewDataType("hokuyo_scan",getMaxDataLength()); 
-                    if (b == false) {
-                      System.out.println(":j!: cannot register data type!");    
-                    }
-               }
+            boolean b;
+            this.setTopic(newTopic); 
+            b = domainApp.regNewDataType("hokuyo_scan",getMaxDataLength()); 
+            if (b == false) {
+             System.out.println(":j!: cannot register data type!");    
+           }
        }
 
        @Override