]> rtime.felk.cvut.cz Git - orte.git/blobdiff - orte/Robot_Demo/src/org/ocera/orte/demo/HokuyoScanType.java
ROBOT_DEMO: fix starting index and inverted logic
[orte.git] / orte / Robot_Demo / src / org / ocera / orte / demo / HokuyoScanType.java
index 5be174ae794ce8b746334172e20c3bb344484062..be16593eb9859758a58b9a4ee516048220f6f286 100644 (file)
@@ -11,7 +11,7 @@ public class HokuyoScanType extends MessageData {
        public HokuyoScanType(DomainApp domainApp, String newTopic) {
            super();
            this.setTopic(newTopic); 
-           if (domainApp.regNewDataType("hokuyo_scan",getMaxDataLength())) {
+           if (!domainApp.regNewDataType("hokuyo_scan",getMaxDataLength())) {
                System.out.println(":j!: cannot register data type \"hokuyo_scan\"!");    
            }
        }