Project: engagement_test License: BSD Dependencies:
Used by:
None |
engagement_test/srv_gen/java/ros/pkg/bml_srvs/srv/BMLFace.javaGo to the documentation of this file.00001 /* Auto-generated by genmsg_cpp for file /home/mel/workspace/ros_stacks/bml/bml_srvs/srv/BMLFace.srv */ 00002 00003 package ros.pkg.bml_srvs.srv; 00004 00005 import java.nio.ByteBuffer; 00006 00007 00008 public class BMLFace extends ros.communication.Service<BMLFace.Request, BMLFace.Response> { 00009 00010 public static java.lang.String __s_getDataType() { return "bml_srvs/BMLFace"; } 00011 public static java.lang.String __s_getMD5Sum() { return "2c31f52aa8f44e7012a130dfac3c58c9"; } 00012 00013 public java.lang.String getDataType() { return BMLFace.__s_getDataType(); } 00014 public java.lang.String getMD5Sum() { return BMLFace.__s_getMD5Sum(); } 00015 00016 public BMLFace.Request createRequest() { 00017 return new BMLFace.Request(); 00018 } 00019 00020 public BMLFace.Response createResponse() { 00021 return new BMLFace.Response(); 00022 } 00023 00024 static public class Request extends ros.communication.Message { 00025 static public final short FACS = 0; 00026 static public final short EYEBROWS = 1; 00027 static public final short EYELIDS = 2; 00028 static public final short MOUTH = 3; 00029 static public final short FLAT = 0; 00030 static public final short POINT_DOWN = 1; 00031 static public final short POINT_UP = 2; 00032 static public final short BOTH = 0; 00033 static public final short UPPER = 1; 00034 static public final short LOWER = 2; 00035 static public final short SMILE = 1; 00036 static public final short LAUGH = 2; 00037 static public final short PUCKER = 3; 00038 static public final short FROWN = 4; 00039 00040 public ros.pkg.bml_msgs.msg.Behavior behav = new ros.pkg.bml_msgs.msg.Behavior(); 00041 public short type; 00042 public float amount; 00043 public ros.pkg.bml_msgs.msg.Flag side = new ros.pkg.bml_msgs.msg.Flag(); 00044 public int au; 00045 public short eyebrowShape; 00046 public float separation; 00047 public short lid; 00048 public short mouthShape; 00049 00050 public Request() { 00051 } 00052 00053 public static java.lang.String __s_getDataType() { return "bml_srvs/BMLFaceRequest"; } 00054 public java.lang.String getDataType() { return __s_getDataType(); } 00055 public static java.lang.String __s_getMD5Sum() { return "a1474f7f9ba58c97a6a9a8670486bf6d"; } 00056 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); } 00057 public static java.lang.String __s_getServerMD5Sum() { return "2c31f52aa8f44e7012a130dfac3c58c9"; } 00058 public java.lang.String getServerMD5Sum() { return __s_getServerMD5Sum(); } 00059 public static java.lang.String __s_getMessageDefinition() { return "\n" + 00060 "\n" + 00061 "uint8 FACS=0\n" + 00062 "uint8 EYEBROWS=1\n" + 00063 "uint8 EYELIDS=2\n" + 00064 "uint8 MOUTH=3\n" + 00065 "\n" + 00066 "\n" + 00067 "uint8 FLAT=0\n" + 00068 "uint8 POINT_DOWN=1\n" + 00069 "uint8 POINT_UP=2\n" + 00070 "\n" + 00071 "\n" + 00072 "uint8 BOTH=0\n" + 00073 "uint8 UPPER=1\n" + 00074 "uint8 LOWER=2\n" + 00075 "\n" + 00076 "\n" + 00077 "\n" + 00078 "uint8 SMILE=1\n" + 00079 "uint8 LAUGH=2\n" + 00080 "uint8 PUCKER=3\n" + 00081 "uint8 FROWN=4\n" + 00082 "\n" + 00083 "\n" + 00084 "bml_msgs/Behavior behav\n" + 00085 "uint8 type\n" + 00086 "float32 amount\n" + 00087 "bml_msgs/Flag side\n" + 00088 "int32 au\n" + 00089 "uint8 eyebrowShape\n" + 00090 "float32 separation\n" + 00091 "uint8 lid\n" + 00092 "uint8 mouthShape\n" + 00093 "\n" + 00094 "================================================================================\n" + 00095 "MSG: bml_msgs/Behavior\n" + 00096 "# this message type contains the information for basic behavior types\n" + 00097 "\n" + 00098 "#constants for the synch point\n" + 00099 "uint8 START=0\n" + 00100 "uint8 READY=1\n" + 00101 "uint8 STROKE_START=2\n" + 00102 "uint8 STROKE=3\n" + 00103 "uint8 STROKE_END=4\n" + 00104 "uint8 RELAX=5\n" + 00105 "uint8 END=6\n" + 00106 "\n" + 00107 "# the fields\n" + 00108 "string id\n" + 00109 "uint8 synchPoint\n" + 00110 "\n" + 00111 "================================================================================\n" + 00112 "MSG: bml_msgs/Flag\n" + 00113 "# A flag which determines between TRUE and FALSE\n" + 00114 "int8 value\n" + 00115 "\n" + 00116 "# Constant for an invalid value\n" + 00117 "int8 INVALID=-1\n" + 00118 "\n" + 00119 "# Constants which define the values for true\n" + 00120 "int8 TRUE=1\n" + 00121 "int8 START=1\n" + 00122 "int8 BEGIN=1\n" + 00123 "int8 SUCCESS=1\n" + 00124 "int8 DONE=1\n" + 00125 "\n" + 00126 "# Constants which define the values for false\n" + 00127 "int8 FALSE=0\n" + 00128 "int8 STOP=0\n" + 00129 "int8 END=0\n" + 00130 "int8 FAILURE=0\n" + 00131 "int8 NOT_DONE=0\n" + 00132 "\n" + 00133 "# Constants for response types\n" + 00134 "int8 OPTIONAL_RESPONSE=0\n" + 00135 "int8 IS_A_RESPONSE=1\n" + 00136 "int8 REQUIRES_RESPONSE=2\n" + 00137 "int8 BACKCHANNEL=3\n" + 00138 "\n" + 00139 "# Constants which define the values for the side to use\n" + 00140 "int8 NEITHER=0\n" + 00141 "int8 LEFT=1\n" + 00142 "int8 RIGHT=2\n" + 00143 "int8 EITHER=3\n" + 00144 "\n" + 00145 ""; } 00146 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); } 00147 00148 public Request clone() { 00149 Request c = new Request(); 00150 c.deserialize(serialize(0)); 00151 return c; 00152 } 00153 00154 public void setTo(ros.communication.Message m) { 00155 deserialize(m.serialize(0)); 00156 } 00157 00158 public int serializationLength() { 00159 int __l = 0; 00160 __l += behav.serializationLength(); 00161 __l += 1; // type 00162 __l += 4; // amount 00163 __l += side.serializationLength(); 00164 __l += 4; // au 00165 __l += 1; // eyebrowShape 00166 __l += 4; // separation 00167 __l += 1; // lid 00168 __l += 1; // mouthShape 00169 return __l; 00170 } 00171 00172 public void serialize(ByteBuffer bb, int seq) { 00173 behav.serialize(bb, seq); 00174 bb.put((byte)type); 00175 bb.putFloat(amount); 00176 side.serialize(bb, seq); 00177 bb.putInt(au); 00178 bb.put((byte)eyebrowShape); 00179 bb.putFloat(separation); 00180 bb.put((byte)lid); 00181 bb.put((byte)mouthShape); 00182 } 00183 00184 public void deserialize(ByteBuffer bb) { 00185 behav.deserialize(bb); 00186 type = (short)(bb.get() & 0xff); 00187 amount = bb.getFloat(); 00188 side.deserialize(bb); 00189 au = bb.getInt(); 00190 eyebrowShape = (short)(bb.get() & 0xff); 00191 separation = bb.getFloat(); 00192 lid = (short)(bb.get() & 0xff); 00193 mouthShape = (short)(bb.get() & 0xff); 00194 } 00195 00196 @SuppressWarnings("all") 00197 public boolean equals(Object o) { 00198 if(!(o instanceof Request)) 00199 return false; 00200 Request other = (Request) o; 00201 return 00202 behav.equals(other.behav) && 00203 type == other.type && 00204 amount == other.amount && 00205 side.equals(other.side) && 00206 au == other.au && 00207 eyebrowShape == other.eyebrowShape && 00208 separation == other.separation && 00209 lid == other.lid && 00210 mouthShape == other.mouthShape && 00211 true; 00212 } 00213 00214 @SuppressWarnings("all") 00215 public int hashCode() { 00216 final int prime = 31; 00217 int result = 1; 00218 long tmp; 00219 result = prime * result + (this.behav == null ? 0 : this.behav.hashCode()); 00220 result = prime * result + this.type; 00221 result = prime * result + Float.floatToIntBits(this.amount); 00222 result = prime * result + (this.side == null ? 0 : this.side.hashCode()); 00223 result = prime * result + this.au; 00224 result = prime * result + this.eyebrowShape; 00225 result = prime * result + Float.floatToIntBits(this.separation); 00226 result = prime * result + this.lid; 00227 result = prime * result + this.mouthShape; 00228 return result; 00229 } 00230 } // class Request 00231 00232 static public class Response extends ros.communication.Message { 00233 00234 public ros.pkg.bml_msgs.msg.Flag status = new ros.pkg.bml_msgs.msg.Flag(); 00235 00236 public Response() { 00237 } 00238 00239 public static java.lang.String __s_getDataType() { return "bml_srvs/BMLFaceResponse"; } 00240 public java.lang.String getDataType() { return __s_getDataType(); } 00241 public static java.lang.String __s_getMD5Sum() { return "f7423aea1727c03e08611ec029888e5d"; } 00242 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); } 00243 public static java.lang.String __s_getServerMD5Sum() { return "2c31f52aa8f44e7012a130dfac3c58c9"; } 00244 public java.lang.String getServerMD5Sum() { return __s_getServerMD5Sum(); } 00245 public static java.lang.String __s_getMessageDefinition() { return "\n" + 00246 "bml_msgs/Flag status\n" + 00247 "\n" + 00248 "\n" + 00249 "================================================================================\n" + 00250 "MSG: bml_msgs/Flag\n" + 00251 "# A flag which determines between TRUE and FALSE\n" + 00252 "int8 value\n" + 00253 "\n" + 00254 "# Constant for an invalid value\n" + 00255 "int8 INVALID=-1\n" + 00256 "\n" + 00257 "# Constants which define the values for true\n" + 00258 "int8 TRUE=1\n" + 00259 "int8 START=1\n" + 00260 "int8 BEGIN=1\n" + 00261 "int8 SUCCESS=1\n" + 00262 "int8 DONE=1\n" + 00263 "\n" + 00264 "# Constants which define the values for false\n" + 00265 "int8 FALSE=0\n" + 00266 "int8 STOP=0\n" + 00267 "int8 END=0\n" + 00268 "int8 FAILURE=0\n" + 00269 "int8 NOT_DONE=0\n" + 00270 "\n" + 00271 "# Constants for response types\n" + 00272 "int8 OPTIONAL_RESPONSE=0\n" + 00273 "int8 IS_A_RESPONSE=1\n" + 00274 "int8 REQUIRES_RESPONSE=2\n" + 00275 "int8 BACKCHANNEL=3\n" + 00276 "\n" + 00277 "# Constants which define the values for the side to use\n" + 00278 "int8 NEITHER=0\n" + 00279 "int8 LEFT=1\n" + 00280 "int8 RIGHT=2\n" + 00281 "int8 EITHER=3\n" + 00282 "\n" + 00283 ""; } 00284 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); } 00285 00286 public Response clone() { 00287 Response c = new Response(); 00288 c.deserialize(serialize(0)); 00289 return c; 00290 } 00291 00292 public void setTo(ros.communication.Message m) { 00293 deserialize(m.serialize(0)); 00294 } 00295 00296 public int serializationLength() { 00297 int __l = 0; 00298 __l += status.serializationLength(); 00299 return __l; 00300 } 00301 00302 public void serialize(ByteBuffer bb, int seq) { 00303 status.serialize(bb, seq); 00304 } 00305 00306 public void deserialize(ByteBuffer bb) { 00307 status.deserialize(bb); 00308 } 00309 00310 @SuppressWarnings("all") 00311 public boolean equals(Object o) { 00312 if(!(o instanceof Response)) 00313 return false; 00314 Response other = (Response) o; 00315 return 00316 status.equals(other.status) && 00317 true; 00318 } 00319 00320 @SuppressWarnings("all") 00321 public int hashCode() { 00322 final int prime = 31; 00323 int result = 1; 00324 long tmp; 00325 result = prime * result + (this.status == null ? 0 : this.status.hashCode()); 00326 return result; 00327 } 00328 } // class Response 00329 00330 } //class 00331 |