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