Project: engagement_test License: BSD Dependencies:
Used by:
None |
engagement_test/srv_gen/java/ros/pkg/bml_srvs/srv/BMLGesture.javaGo to the documentation of this file.00001 /* Auto-generated by genmsg_cpp for file /home/mel/workspace/ros_stacks/bml/bml_srvs/srv/BMLGesture.srv */ 00002 00003 package ros.pkg.bml_srvs.srv; 00004 00005 import java.nio.ByteBuffer; 00006 00007 00008 public class BMLGesture extends ros.communication.Service<BMLGesture.Request, BMLGesture.Response> { 00009 00010 public static java.lang.String __s_getDataType() { return "bml_srvs/BMLGesture"; } 00011 public static java.lang.String __s_getMD5Sum() { return "1158050cd2a01b70e5b144126b4a6d43"; } 00012 00013 public java.lang.String getDataType() { return BMLGesture.__s_getDataType(); } 00014 public java.lang.String getMD5Sum() { return BMLGesture.__s_getMD5Sum(); } 00015 00016 public BMLGesture.Request createRequest() { 00017 return new BMLGesture.Request(); 00018 } 00019 00020 public BMLGesture.Response createResponse() { 00021 return new BMLGesture.Response(); 00022 } 00023 00024 static public class Request extends ros.communication.Message { 00025 static public final short POINT = 0; 00026 static public final short BEAT = 1; 00027 static public final short CONDUIT = 2; 00028 static public final short GENERIC = 3; 00029 static public final short LEXICALIZED = 4; 00030 static public final short INDEX_FINGER = 0; 00031 static public final short THUMB = 1; 00032 static public final short OPEN_HAND = 2; 00033 static public final short FIST = 3; 00034 static public final short FINGER_RING = 4; 00035 static public final short CUP = 5; 00036 static public final short PURSE = 6; 00037 static public final short STRAIGHT = 0; 00038 static public final short CURVED = 1; 00039 static public final short CIRCULAR = 2; 00040 static public final short RECTANGULAR = 3; 00041 static public final short TRIANGULAR = 4; 00042 static public final short WAVE_LIKE = 5; 00043 static public final short ZIGZAG = 6; 00044 static public final short MIRROR = 0; 00045 static public final short ALTERNATE = 1; 00046 static public final short PARALLEL = 2; 00047 static public final short LOW = 0; 00048 static public final short CENTER = 1; 00049 static public final short HIGH = 2; 00050 static public final short LEFT = 0; 00051 static public final short RIGHT = 2; 00052 static public final short INWARD = 3; 00053 static public final short OUTWARD = 4; 00054 static public final short CONTACT = 0; 00055 static public final short NEAR = 1; 00056 static public final short MEDIUM = 2; 00057 static public final short FAR = 3; 00058 static public final short SMALL = 0; 00059 static public final short LARGE = 1; 00060 static public final short EXTRA_LARGE = 3; 00061 static public final short WEAK = 0; 00062 static public final short NORMAL = 1; 00063 static public final short FORCEFUL = 2; 00064 00065 public ros.pkg.bml_msgs.msg.Behavior behav = new ros.pkg.bml_msgs.msg.Behavior(); 00066 public short type; 00067 public ros.pkg.bml_msgs.msg.Flag side = new ros.pkg.bml_msgs.msg.Flag(); 00068 public int repetition; 00069 public ros.pkg.bml_msgs.msg.Entity target = new ros.pkg.bml_msgs.msg.Entity(); 00070 public short handShape; 00071 public ros.pkg.bml_msgs.msg.Direction fingerDirection = new ros.pkg.bml_msgs.msg.Direction(); 00072 public ros.pkg.bml_msgs.msg.Direction palmDirection = new ros.pkg.bml_msgs.msg.Direction(); 00073 public short trajectory; 00074 public short twoHanded; 00075 public short verticalLocation; 00076 public short horizontalLocation; 00077 public short distance; 00078 public ros.pkg.bml_msgs.msg.Direction moveDirection = new ros.pkg.bml_msgs.msg.Direction(); 00079 public java.lang.String lexeme = new java.lang.String(); 00080 public short amplitude; 00081 public short power; 00082 00083 public Request() { 00084 } 00085 00086 public static java.lang.String __s_getDataType() { return "bml_srvs/BMLGestureRequest"; } 00087 public java.lang.String getDataType() { return __s_getDataType(); } 00088 public static java.lang.String __s_getMD5Sum() { return "e3f198bbf8dc532cec327c52be2af3fc"; } 00089 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); } 00090 public static java.lang.String __s_getServerMD5Sum() { return "1158050cd2a01b70e5b144126b4a6d43"; } 00091 public java.lang.String getServerMD5Sum() { return __s_getServerMD5Sum(); } 00092 public static java.lang.String __s_getMessageDefinition() { return "\n" + 00093 "\n" + 00094 "uint8 POINT=0\n" + 00095 "uint8 BEAT=1\n" + 00096 "uint8 CONDUIT=2\n" + 00097 "uint8 GENERIC=3\n" + 00098 "uint8 LEXICALIZED=4\n" + 00099 "\n" + 00100 "\n" + 00101 "uint8 INDEX_FINGER=0\n" + 00102 "uint8 THUMB=1\n" + 00103 "uint8 OPEN_HAND=2\n" + 00104 "uint8 FIST=3\n" + 00105 "uint8 FINGER_RING=4\n" + 00106 "uint8 CUP=5\n" + 00107 "uint8 PURSE=6\n" + 00108 "\n" + 00109 "\n" + 00110 "uint8 STRAIGHT=0\n" + 00111 "uint8 CURVED=1\n" + 00112 "uint8 CIRCULAR=2\n" + 00113 "uint8 RECTANGULAR=3\n" + 00114 "uint8 TRIANGULAR=4\n" + 00115 "uint8 WAVE_LIKE=5\n" + 00116 "uint8 ZIGZAG=6\n" + 00117 "\n" + 00118 "\n" + 00119 "uint8 MIRROR=0\n" + 00120 "uint8 ALTERNATE=1\n" + 00121 "uint8 PARALLEL=2\n" + 00122 "\n" + 00123 "\n" + 00124 "uint8 LOW=0\n" + 00125 "uint8 CENTER=1\n" + 00126 "uint8 HIGH=2\n" + 00127 "\n" + 00128 "\n" + 00129 "uint8 LEFT=0\n" + 00130 "\n" + 00131 "uint8 RIGHT=2\n" + 00132 "uint8 INWARD=3\n" + 00133 "uint8 OUTWARD=4\n" + 00134 "\n" + 00135 "\n" + 00136 "uint8 CONTACT=0\n" + 00137 "uint8 NEAR=1\n" + 00138 "uint8 MEDIUM=2\n" + 00139 "uint8 FAR=3\n" + 00140 "\n" + 00141 "\n" + 00142 "uint8 SMALL=0\n" + 00143 "\n" + 00144 "uint8 LARGE=1\n" + 00145 "uint8 EXTRA_LARGE=3\n" + 00146 "\n" + 00147 "\n" + 00148 "uint8 WEAK=0\n" + 00149 "uint8 NORMAL=1\n" + 00150 "uint8 FORCEFUL=2\n" + 00151 "\n" + 00152 "\n" + 00153 "bml_msgs/Behavior behav\n" + 00154 "uint8 type\n" + 00155 "bml_msgs/Flag side\n" + 00156 "int32 repetition\n" + 00157 "bml_msgs/Entity target\n" + 00158 "uint8 handShape\n" + 00159 "bml_msgs/Direction fingerDirection\n" + 00160 "bml_msgs/Direction palmDirection\n" + 00161 "uint8 trajectory\n" + 00162 "uint8 twoHanded\n" + 00163 "uint8 verticalLocation\n" + 00164 "uint8 horizontalLocation\n" + 00165 "uint8 distance\n" + 00166 "bml_msgs/Direction moveDirection\n" + 00167 "string lexeme\n" + 00168 "uint8 amplitude\n" + 00169 "uint8 power\n" + 00170 "\n" + 00171 "\n" + 00172 "================================================================================\n" + 00173 "MSG: bml_msgs/Behavior\n" + 00174 "# this message type contains the information for basic behavior types\n" + 00175 "\n" + 00176 "#constants for the synch point\n" + 00177 "uint8 START=0\n" + 00178 "uint8 READY=1\n" + 00179 "uint8 STROKE_START=2\n" + 00180 "uint8 STROKE=3\n" + 00181 "uint8 STROKE_END=4\n" + 00182 "uint8 RELAX=5\n" + 00183 "uint8 END=6\n" + 00184 "\n" + 00185 "# the fields\n" + 00186 "string id\n" + 00187 "uint8 synchPoint\n" + 00188 "\n" + 00189 "================================================================================\n" + 00190 "MSG: bml_msgs/Flag\n" + 00191 "# A flag which determines between TRUE and FALSE\n" + 00192 "int8 value\n" + 00193 "\n" + 00194 "# Constant for an invalid value\n" + 00195 "int8 INVALID=-1\n" + 00196 "\n" + 00197 "# Constants which define the values for true\n" + 00198 "int8 TRUE=1\n" + 00199 "int8 START=1\n" + 00200 "int8 BEGIN=1\n" + 00201 "int8 SUCCESS=1\n" + 00202 "int8 DONE=1\n" + 00203 "\n" + 00204 "# Constants which define the values for false\n" + 00205 "int8 FALSE=0\n" + 00206 "int8 STOP=0\n" + 00207 "int8 END=0\n" + 00208 "int8 FAILURE=0\n" + 00209 "int8 NOT_DONE=0\n" + 00210 "\n" + 00211 "# Constants for response types\n" + 00212 "int8 OPTIONAL_RESPONSE=0\n" + 00213 "int8 IS_A_RESPONSE=1\n" + 00214 "int8 REQUIRES_RESPONSE=2\n" + 00215 "int8 BACKCHANNEL=3\n" + 00216 "\n" + 00217 "# Constants which define the values for the side to use\n" + 00218 "int8 NEITHER=0\n" + 00219 "int8 LEFT=1\n" + 00220 "int8 RIGHT=2\n" + 00221 "int8 EITHER=3\n" + 00222 "\n" + 00223 "================================================================================\n" + 00224 "MSG: bml_msgs/Entity\n" + 00225 "#The following constants represent all possible salient objects\n" + 00226 "uint8 OBJECT=0\n" + 00227 "uint8 HAND=1\n" + 00228 "uint8 FACE=2\n" + 00229 "uint8 QUADRANT=3\n" + 00230 "uint8 UNKNOWN=4\n" + 00231 "\n" + 00232 "# Constants for the upper quadrants\n" + 00233 "string UP_LEFT=UP_LEFT\n" + 00234 "string UP_FRONT=UP_FRONT\n" + 00235 "string UP_RIGHT=UP_RIGHT\n" + 00236 "\n" + 00237 "# Constants for the middle quadrants\n" + 00238 "string STRAIGHT_LEFT=STRAIGHT_LEFT\n" + 00239 "string STRAIGHT_FRONT=STRAIGHT_FRONT\n" + 00240 "string STRAIGHT_RIGHT=STRAIGHT_RIGHT\n" + 00241 "\n" + 00242 "# Constants for the lower quadrants\n" + 00243 "string DOWN_LEFT=DOWN_LEFT\n" + 00244 "string DOWN_FRONT=DOWN_FRONT\n" + 00245 "string DOWN_RIGHT=DOWN_RIGHT\n" + 00246 "\n" + 00247 "#there is just one field for type\n" + 00248 "uint8 type\n" + 00249 "\n" + 00250 "# The id of the object\n" + 00251 "string id\n" + 00252 "\n" + 00253 "================================================================================\n" + 00254 "MSG: bml_msgs/Direction\n" + 00255 "# the direction message is used by offsetting or directing actions\n" + 00256 "uint8 value\n" + 00257 "\n" + 00258 "uint8 RIGHT=1\n" + 00259 "uint8 LEFT=2\n" + 00260 "uint8 UP=3\n" + 00261 "uint8 DOWN=4\n" + 00262 "uint8 UP_RIGHT=5\n" + 00263 "uint8 UP_LEFT=6\n" + 00264 "uint8 DOWN_LEFT=7\n" + 00265 "uint8 DOWN_RIGHT=8\n" + 00266 "uint8 POLAR=0\n" + 00267 "\n" + 00268 ""; } 00269 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); } 00270 00271 public Request clone() { 00272 Request c = new Request(); 00273 c.deserialize(serialize(0)); 00274 return c; 00275 } 00276 00277 public void setTo(ros.communication.Message m) { 00278 deserialize(m.serialize(0)); 00279 } 00280 00281 public int serializationLength() { 00282 int __l = 0; 00283 __l += behav.serializationLength(); 00284 __l += 1; // type 00285 __l += side.serializationLength(); 00286 __l += 4; // repetition 00287 __l += target.serializationLength(); 00288 __l += 1; // handShape 00289 __l += fingerDirection.serializationLength(); 00290 __l += palmDirection.serializationLength(); 00291 __l += 1; // trajectory 00292 __l += 1; // twoHanded 00293 __l += 1; // verticalLocation 00294 __l += 1; // horizontalLocation 00295 __l += 1; // distance 00296 __l += moveDirection.serializationLength(); 00297 __l += 4 + lexeme.length(); 00298 __l += 1; // amplitude 00299 __l += 1; // power 00300 return __l; 00301 } 00302 00303 public void serialize(ByteBuffer bb, int seq) { 00304 behav.serialize(bb, seq); 00305 bb.put((byte)type); 00306 side.serialize(bb, seq); 00307 bb.putInt(repetition); 00308 target.serialize(bb, seq); 00309 bb.put((byte)handShape); 00310 fingerDirection.serialize(bb, seq); 00311 palmDirection.serialize(bb, seq); 00312 bb.put((byte)trajectory); 00313 bb.put((byte)twoHanded); 00314 bb.put((byte)verticalLocation); 00315 bb.put((byte)horizontalLocation); 00316 bb.put((byte)distance); 00317 moveDirection.serialize(bb, seq); 00318 Serialization.writeString(bb, lexeme); 00319 bb.put((byte)amplitude); 00320 bb.put((byte)power); 00321 } 00322 00323 public void deserialize(ByteBuffer bb) { 00324 behav.deserialize(bb); 00325 type = (short)(bb.get() & 0xff); 00326 side.deserialize(bb); 00327 repetition = bb.getInt(); 00328 target.deserialize(bb); 00329 handShape = (short)(bb.get() & 0xff); 00330 fingerDirection.deserialize(bb); 00331 palmDirection.deserialize(bb); 00332 trajectory = (short)(bb.get() & 0xff); 00333 twoHanded = (short)(bb.get() & 0xff); 00334 verticalLocation = (short)(bb.get() & 0xff); 00335 horizontalLocation = (short)(bb.get() & 0xff); 00336 distance = (short)(bb.get() & 0xff); 00337 moveDirection.deserialize(bb); 00338 lexeme = Serialization.readString(bb); 00339 amplitude = (short)(bb.get() & 0xff); 00340 power = (short)(bb.get() & 0xff); 00341 } 00342 00343 @SuppressWarnings("all") 00344 public boolean equals(Object o) { 00345 if(!(o instanceof Request)) 00346 return false; 00347 Request other = (Request) o; 00348 return 00349 behav.equals(other.behav) && 00350 type == other.type && 00351 side.equals(other.side) && 00352 repetition == other.repetition && 00353 target.equals(other.target) && 00354 handShape == other.handShape && 00355 fingerDirection.equals(other.fingerDirection) && 00356 palmDirection.equals(other.palmDirection) && 00357 trajectory == other.trajectory && 00358 twoHanded == other.twoHanded && 00359 verticalLocation == other.verticalLocation && 00360 horizontalLocation == other.horizontalLocation && 00361 distance == other.distance && 00362 moveDirection.equals(other.moveDirection) && 00363 lexeme.equals(other.lexeme) && 00364 amplitude == other.amplitude && 00365 power == other.power && 00366 true; 00367 } 00368 00369 @SuppressWarnings("all") 00370 public int hashCode() { 00371 final int prime = 31; 00372 int result = 1; 00373 long tmp; 00374 result = prime * result + (this.behav == null ? 0 : this.behav.hashCode()); 00375 result = prime * result + this.type; 00376 result = prime * result + (this.side == null ? 0 : this.side.hashCode()); 00377 result = prime * result + this.repetition; 00378 result = prime * result + (this.target == null ? 0 : this.target.hashCode()); 00379 result = prime * result + this.handShape; 00380 result = prime * result + (this.fingerDirection == null ? 0 : this.fingerDirection.hashCode()); 00381 result = prime * result + (this.palmDirection == null ? 0 : this.palmDirection.hashCode()); 00382 result = prime * result + this.trajectory; 00383 result = prime * result + this.twoHanded; 00384 result = prime * result + this.verticalLocation; 00385 result = prime * result + this.horizontalLocation; 00386 result = prime * result + this.distance; 00387 result = prime * result + (this.moveDirection == null ? 0 : this.moveDirection.hashCode()); 00388 result = prime * result + (this.lexeme == null ? 0 : this.lexeme.hashCode()); 00389 result = prime * result + this.amplitude; 00390 result = prime * result + this.power; 00391 return result; 00392 } 00393 } // class Request 00394 00395 static public class Response extends ros.communication.Message { 00396 00397 public ros.pkg.bml_msgs.msg.Flag status = new ros.pkg.bml_msgs.msg.Flag(); 00398 00399 public Response() { 00400 } 00401 00402 public static java.lang.String __s_getDataType() { return "bml_srvs/BMLGestureResponse"; } 00403 public java.lang.String getDataType() { return __s_getDataType(); } 00404 public static java.lang.String __s_getMD5Sum() { return "f7423aea1727c03e08611ec029888e5d"; } 00405 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); } 00406 public static java.lang.String __s_getServerMD5Sum() { return "1158050cd2a01b70e5b144126b4a6d43"; } 00407 public java.lang.String getServerMD5Sum() { return __s_getServerMD5Sum(); } 00408 public static java.lang.String __s_getMessageDefinition() { return "\n" + 00409 "bml_msgs/Flag status\n" + 00410 "\n" + 00411 "\n" + 00412 "================================================================================\n" + 00413 "MSG: bml_msgs/Flag\n" + 00414 "# A flag which determines between TRUE and FALSE\n" + 00415 "int8 value\n" + 00416 "\n" + 00417 "# Constant for an invalid value\n" + 00418 "int8 INVALID=-1\n" + 00419 "\n" + 00420 "# Constants which define the values for true\n" + 00421 "int8 TRUE=1\n" + 00422 "int8 START=1\n" + 00423 "int8 BEGIN=1\n" + 00424 "int8 SUCCESS=1\n" + 00425 "int8 DONE=1\n" + 00426 "\n" + 00427 "# Constants which define the values for false\n" + 00428 "int8 FALSE=0\n" + 00429 "int8 STOP=0\n" + 00430 "int8 END=0\n" + 00431 "int8 FAILURE=0\n" + 00432 "int8 NOT_DONE=0\n" + 00433 "\n" + 00434 "# Constants for response types\n" + 00435 "int8 OPTIONAL_RESPONSE=0\n" + 00436 "int8 IS_A_RESPONSE=1\n" + 00437 "int8 REQUIRES_RESPONSE=2\n" + 00438 "int8 BACKCHANNEL=3\n" + 00439 "\n" + 00440 "# Constants which define the values for the side to use\n" + 00441 "int8 NEITHER=0\n" + 00442 "int8 LEFT=1\n" + 00443 "int8 RIGHT=2\n" + 00444 "int8 EITHER=3\n" + 00445 "\n" + 00446 ""; } 00447 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); } 00448 00449 public Response clone() { 00450 Response c = new Response(); 00451 c.deserialize(serialize(0)); 00452 return c; 00453 } 00454 00455 public void setTo(ros.communication.Message m) { 00456 deserialize(m.serialize(0)); 00457 } 00458 00459 public int serializationLength() { 00460 int __l = 0; 00461 __l += status.serializationLength(); 00462 return __l; 00463 } 00464 00465 public void serialize(ByteBuffer bb, int seq) { 00466 status.serialize(bb, seq); 00467 } 00468 00469 public void deserialize(ByteBuffer bb) { 00470 status.deserialize(bb); 00471 } 00472 00473 @SuppressWarnings("all") 00474 public boolean equals(Object o) { 00475 if(!(o instanceof Response)) 00476 return false; 00477 Response other = (Response) o; 00478 return 00479 status.equals(other.status) && 00480 true; 00481 } 00482 00483 @SuppressWarnings("all") 00484 public int hashCode() { 00485 final int prime = 31; 00486 int result = 1; 00487 long tmp; 00488 result = prime * result + (this.status == null ? 0 : this.status.hashCode()); 00489 return result; 00490 } 00491 } // class Response 00492 00493 } //class 00494 |