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