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