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