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