Project: engagement_test License: BSD Dependencies:
Used by:
None |
engagement_test/srv_gen/java/ros/pkg/bml_srvs/srv/BMLLips.javaGo to the documentation of this file.00001 /* Auto-generated by genmsg_cpp for file /home/mel/workspace/ros_stacks/bml/bml_srvs/srv/BMLLips.srv */ 00002 00003 package ros.pkg.bml_srvs.srv; 00004 00005 import java.nio.ByteBuffer; 00006 00007 00008 public class BMLLips extends ros.communication.Service<BMLLips.Request, BMLLips.Response> { 00009 00010 public static java.lang.String __s_getDataType() { return "bml_srvs/BMLLips"; } 00011 public static java.lang.String __s_getMD5Sum() { return "b8b612a899ed4cf6b242952bede7bd2a"; } 00012 00013 public java.lang.String getDataType() { return BMLLips.__s_getDataType(); } 00014 public java.lang.String getMD5Sum() { return BMLLips.__s_getMD5Sum(); } 00015 00016 public BMLLips.Request createRequest() { 00017 return new BMLLips.Request(); 00018 } 00019 00020 public BMLLips.Response createResponse() { 00021 return new BMLLips.Response(); 00022 } 00023 00024 static public class Request extends ros.communication.Message { 00025 00026 public ros.pkg.bml_msgs.msg.Behavior behav = new ros.pkg.bml_msgs.msg.Behavior(); 00027 public java.lang.String viseme = new java.lang.String(); 00028 public float articulation; 00029 public ros.pkg.bml_msgs.msg.Flag flapping = new ros.pkg.bml_msgs.msg.Flag(); 00030 00031 public Request() { 00032 } 00033 00034 public static java.lang.String __s_getDataType() { return "bml_srvs/BMLLipsRequest"; } 00035 public java.lang.String getDataType() { return __s_getDataType(); } 00036 public static java.lang.String __s_getMD5Sum() { return "0dfa40d5859f3d5db7a7bfde4e4ea8f4"; } 00037 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); } 00038 public static java.lang.String __s_getServerMD5Sum() { return "b8b612a899ed4cf6b242952bede7bd2a"; } 00039 public java.lang.String getServerMD5Sum() { return __s_getServerMD5Sum(); } 00040 public static java.lang.String __s_getMessageDefinition() { return "\n" + 00041 "bml_msgs/Behavior behav\n" + 00042 "string viseme\n" + 00043 "float32 articulation\n" + 00044 "bml_msgs/Flag flapping\n" + 00045 "\n" + 00046 "================================================================================\n" + 00047 "MSG: bml_msgs/Behavior\n" + 00048 "# this message type contains the information for basic behavior types\n" + 00049 "\n" + 00050 "#constants for the synch point\n" + 00051 "uint8 START=0\n" + 00052 "uint8 READY=1\n" + 00053 "uint8 STROKE_START=2\n" + 00054 "uint8 STROKE=3\n" + 00055 "uint8 STROKE_END=4\n" + 00056 "uint8 RELAX=5\n" + 00057 "uint8 END=6\n" + 00058 "\n" + 00059 "# the fields\n" + 00060 "string id\n" + 00061 "uint8 synchPoint\n" + 00062 "\n" + 00063 "================================================================================\n" + 00064 "MSG: bml_msgs/Flag\n" + 00065 "# A flag which determines between TRUE and FALSE\n" + 00066 "int8 value\n" + 00067 "\n" + 00068 "# Constant for an invalid value\n" + 00069 "int8 INVALID=-1\n" + 00070 "\n" + 00071 "# Constants which define the values for true\n" + 00072 "int8 TRUE=1\n" + 00073 "int8 START=1\n" + 00074 "int8 BEGIN=1\n" + 00075 "int8 SUCCESS=1\n" + 00076 "int8 DONE=1\n" + 00077 "\n" + 00078 "# Constants which define the values for false\n" + 00079 "int8 FALSE=0\n" + 00080 "int8 STOP=0\n" + 00081 "int8 END=0\n" + 00082 "int8 FAILURE=0\n" + 00083 "int8 NOT_DONE=0\n" + 00084 "\n" + 00085 "# Constants for response types\n" + 00086 "int8 OPTIONAL_RESPONSE=0\n" + 00087 "int8 IS_A_RESPONSE=1\n" + 00088 "int8 REQUIRES_RESPONSE=2\n" + 00089 "int8 BACKCHANNEL=3\n" + 00090 "\n" + 00091 "# Constants which define the values for the side to use\n" + 00092 "int8 NEITHER=0\n" + 00093 "int8 LEFT=1\n" + 00094 "int8 RIGHT=2\n" + 00095 "int8 EITHER=3\n" + 00096 "\n" + 00097 ""; } 00098 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); } 00099 00100 public Request clone() { 00101 Request c = new Request(); 00102 c.deserialize(serialize(0)); 00103 return c; 00104 } 00105 00106 public void setTo(ros.communication.Message m) { 00107 deserialize(m.serialize(0)); 00108 } 00109 00110 public int serializationLength() { 00111 int __l = 0; 00112 __l += behav.serializationLength(); 00113 __l += 4 + viseme.length(); 00114 __l += 4; // articulation 00115 __l += flapping.serializationLength(); 00116 return __l; 00117 } 00118 00119 public void serialize(ByteBuffer bb, int seq) { 00120 behav.serialize(bb, seq); 00121 Serialization.writeString(bb, viseme); 00122 bb.putFloat(articulation); 00123 flapping.serialize(bb, seq); 00124 } 00125 00126 public void deserialize(ByteBuffer bb) { 00127 behav.deserialize(bb); 00128 viseme = Serialization.readString(bb); 00129 articulation = bb.getFloat(); 00130 flapping.deserialize(bb); 00131 } 00132 00133 @SuppressWarnings("all") 00134 public boolean equals(Object o) { 00135 if(!(o instanceof Request)) 00136 return false; 00137 Request other = (Request) o; 00138 return 00139 behav.equals(other.behav) && 00140 viseme.equals(other.viseme) && 00141 articulation == other.articulation && 00142 flapping.equals(other.flapping) && 00143 true; 00144 } 00145 00146 @SuppressWarnings("all") 00147 public int hashCode() { 00148 final int prime = 31; 00149 int result = 1; 00150 long tmp; 00151 result = prime * result + (this.behav == null ? 0 : this.behav.hashCode()); 00152 result = prime * result + (this.viseme == null ? 0 : this.viseme.hashCode()); 00153 result = prime * result + Float.floatToIntBits(this.articulation); 00154 result = prime * result + (this.flapping == null ? 0 : this.flapping.hashCode()); 00155 return result; 00156 } 00157 } // class Request 00158 00159 static public class Response extends ros.communication.Message { 00160 00161 public ros.pkg.bml_msgs.msg.Flag status = new ros.pkg.bml_msgs.msg.Flag(); 00162 00163 public Response() { 00164 } 00165 00166 public static java.lang.String __s_getDataType() { return "bml_srvs/BMLLipsResponse"; } 00167 public java.lang.String getDataType() { return __s_getDataType(); } 00168 public static java.lang.String __s_getMD5Sum() { return "f7423aea1727c03e08611ec029888e5d"; } 00169 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); } 00170 public static java.lang.String __s_getServerMD5Sum() { return "b8b612a899ed4cf6b242952bede7bd2a"; } 00171 public java.lang.String getServerMD5Sum() { return __s_getServerMD5Sum(); } 00172 public static java.lang.String __s_getMessageDefinition() { return "\n" + 00173 "bml_msgs/Flag status\n" + 00174 "\n" + 00175 "\n" + 00176 "================================================================================\n" + 00177 "MSG: bml_msgs/Flag\n" + 00178 "# A flag which determines between TRUE and FALSE\n" + 00179 "int8 value\n" + 00180 "\n" + 00181 "# Constant for an invalid value\n" + 00182 "int8 INVALID=-1\n" + 00183 "\n" + 00184 "# Constants which define the values for true\n" + 00185 "int8 TRUE=1\n" + 00186 "int8 START=1\n" + 00187 "int8 BEGIN=1\n" + 00188 "int8 SUCCESS=1\n" + 00189 "int8 DONE=1\n" + 00190 "\n" + 00191 "# Constants which define the values for false\n" + 00192 "int8 FALSE=0\n" + 00193 "int8 STOP=0\n" + 00194 "int8 END=0\n" + 00195 "int8 FAILURE=0\n" + 00196 "int8 NOT_DONE=0\n" + 00197 "\n" + 00198 "# Constants for response types\n" + 00199 "int8 OPTIONAL_RESPONSE=0\n" + 00200 "int8 IS_A_RESPONSE=1\n" + 00201 "int8 REQUIRES_RESPONSE=2\n" + 00202 "int8 BACKCHANNEL=3\n" + 00203 "\n" + 00204 "# Constants which define the values for the side to use\n" + 00205 "int8 NEITHER=0\n" + 00206 "int8 LEFT=1\n" + 00207 "int8 RIGHT=2\n" + 00208 "int8 EITHER=3\n" + 00209 "\n" + 00210 ""; } 00211 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); } 00212 00213 public Response clone() { 00214 Response c = new Response(); 00215 c.deserialize(serialize(0)); 00216 return c; 00217 } 00218 00219 public void setTo(ros.communication.Message m) { 00220 deserialize(m.serialize(0)); 00221 } 00222 00223 public int serializationLength() { 00224 int __l = 0; 00225 __l += status.serializationLength(); 00226 return __l; 00227 } 00228 00229 public void serialize(ByteBuffer bb, int seq) { 00230 status.serialize(bb, seq); 00231 } 00232 00233 public void deserialize(ByteBuffer bb) { 00234 status.deserialize(bb); 00235 } 00236 00237 @SuppressWarnings("all") 00238 public boolean equals(Object o) { 00239 if(!(o instanceof Response)) 00240 return false; 00241 Response other = (Response) o; 00242 return 00243 status.equals(other.status) && 00244 true; 00245 } 00246 00247 @SuppressWarnings("all") 00248 public int hashCode() { 00249 final int prime = 31; 00250 int result = 1; 00251 long tmp; 00252 result = prime * result + (this.status == null ? 0 : this.status.hashCode()); 00253 return result; 00254 } 00255 } // class Response 00256 00257 } //class 00258 |