Project: engagement_generation License: BSD Dependencies:
Used by:
None |
engagement_generation/srv_gen/java/ros/pkg/engagement_srvs/srv/TurnFragment.javaGo to the documentation of this file.00001 /* Auto-generated by genmsg_cpp for file /home/mel/workspace/ros_stacks/engagement/engagement_srvs/srv/TurnFragment.srv */ 00002 00003 package ros.pkg.engagement_srvs.srv; 00004 00005 import java.nio.ByteBuffer; 00006 00007 00008 public class TurnFragment extends ros.communication.Service<TurnFragment.Request, TurnFragment.Response> { 00009 00010 public static java.lang.String __s_getDataType() { return "engagement_srvs/TurnFragment"; } 00011 public static java.lang.String __s_getMD5Sum() { return "a890c5e1bdafc66bda52ba9d4e27f7e6"; } 00012 00013 public java.lang.String getDataType() { return TurnFragment.__s_getDataType(); } 00014 public java.lang.String getMD5Sum() { return TurnFragment.__s_getMD5Sum(); } 00015 00016 public TurnFragment.Request createRequest() { 00017 return new TurnFragment.Request(); 00018 } 00019 00020 public TurnFragment.Response createResponse() { 00021 return new TurnFragment.Response(); 00022 } 00023 00024 static public class Request extends ros.communication.Message { 00025 00026 public java.lang.String fragment = new java.lang.String(); 00027 00028 public Request() { 00029 } 00030 00031 public static java.lang.String __s_getDataType() { return "engagement_srvs/TurnFragmentRequest"; } 00032 public java.lang.String getDataType() { return __s_getDataType(); } 00033 public static java.lang.String __s_getMD5Sum() { return "bdddad967111dc3c61c25e58c02cfb57"; } 00034 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); } 00035 public static java.lang.String __s_getServerMD5Sum() { return "a890c5e1bdafc66bda52ba9d4e27f7e6"; } 00036 public java.lang.String getServerMD5Sum() { return __s_getServerMD5Sum(); } 00037 public static java.lang.String __s_getMessageDefinition() { return "\n" + 00038 "string fragment\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 + fragment.length(); 00057 return __l; 00058 } 00059 00060 public void serialize(ByteBuffer bb, int seq) { 00061 Serialization.writeString(bb, fragment); 00062 } 00063 00064 public void deserialize(ByteBuffer bb) { 00065 fragment = 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 fragment.equals(other.fragment) && 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.fragment == null ? 0 : this.fragment.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 result = 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 public java.util.ArrayList<ros.pkg.engagement_msgs.msg.BCOccurrence> backchannels = new java.util.ArrayList<ros.pkg.engagement_msgs.msg.BCOccurrence>(); 00093 public ros.pkg.engagement_msgs.msg.APAction response = new ros.pkg.engagement_msgs.msg.APAction(); 00094 00095 public Response() { 00096 } 00097 00098 public static java.lang.String __s_getDataType() { return "engagement_srvs/TurnFragmentResponse"; } 00099 public java.lang.String getDataType() { return __s_getDataType(); } 00100 public static java.lang.String __s_getMD5Sum() { return "eadf2edf5f4c36c182db2e724c30fcda"; } 00101 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); } 00102 public static java.lang.String __s_getServerMD5Sum() { return "a890c5e1bdafc66bda52ba9d4e27f7e6"; } 00103 public java.lang.String getServerMD5Sum() { return __s_getServerMD5Sum(); } 00104 public static java.lang.String __s_getMessageDefinition() { return "bml_msgs/Flag result\n" + 00105 "bml_msgs/BehaviorResult[] behaviors\n" + 00106 "engagement_msgs/BCOccurrence[] backchannels\n" + 00107 "engagement_msgs/APAction response\n" + 00108 "\n" + 00109 "\n" + 00110 "================================================================================\n" + 00111 "MSG: bml_msgs/Flag\n" + 00112 "# A flag which determines between TRUE and FALSE\n" + 00113 "int8 value\n" + 00114 "\n" + 00115 "# Constant for an invalid value\n" + 00116 "int8 INVALID=-1\n" + 00117 "\n" + 00118 "# Constants which define the values for true\n" + 00119 "int8 TRUE=1\n" + 00120 "int8 START=1\n" + 00121 "int8 BEGIN=1\n" + 00122 "int8 SUCCESS=1\n" + 00123 "int8 DONE=1\n" + 00124 "\n" + 00125 "# Constants which define the values for false\n" + 00126 "int8 FALSE=0\n" + 00127 "int8 STOP=0\n" + 00128 "int8 END=0\n" + 00129 "int8 FAILURE=0\n" + 00130 "int8 NOT_DONE=0\n" + 00131 "\n" + 00132 "# Constants for response types\n" + 00133 "int8 OPTIONAL_RESPONSE=0\n" + 00134 "int8 IS_A_RESPONSE=1\n" + 00135 "int8 REQUIRES_RESPONSE=2\n" + 00136 "int8 BACKCHANNEL=3\n" + 00137 "\n" + 00138 "# Constants which define the values for the side to use\n" + 00139 "int8 NEITHER=0\n" + 00140 "int8 LEFT=1\n" + 00141 "int8 RIGHT=2\n" + 00142 "int8 EITHER=3\n" + 00143 "\n" + 00144 "================================================================================\n" + 00145 "MSG: bml_msgs/BehaviorResult\n" + 00146 "# this message is used to link a result flag to an id\n" + 00147 "Behavior behavior\n" + 00148 "Flag result\n" + 00149 "\n" + 00150 "================================================================================\n" + 00151 "MSG: bml_msgs/Behavior\n" + 00152 "# this message type contains the information for basic behavior types\n" + 00153 "\n" + 00154 "#constants for the synch point\n" + 00155 "uint8 START=0\n" + 00156 "uint8 READY=1\n" + 00157 "uint8 STROKE_START=2\n" + 00158 "uint8 STROKE=3\n" + 00159 "uint8 STROKE_END=4\n" + 00160 "uint8 RELAX=5\n" + 00161 "uint8 END=6\n" + 00162 "\n" + 00163 "# the fields\n" + 00164 "string id\n" + 00165 "uint8 synchPoint\n" + 00166 "\n" + 00167 "================================================================================\n" + 00168 "MSG: engagement_msgs/BCOccurrence\n" + 00169 "# this message is used for referring to when a backchannel happened during a CCA\n" + 00170 "ActorID actor\n" + 00171 "bml_msgs/Behavior behavior\n" + 00172 "bml_msgs/Flag result\n" + 00173 "\n" + 00174 "================================================================================\n" + 00175 "MSG: engagement_msgs/ActorID\n" + 00176 "# Unique string identifier for the actor\n" + 00177 "string id\n" + 00178 "\n" + 00179 "# Constant to identify the Robot as the actor\n" + 00180 "string ROBOT=ROBOT\n" + 00181 "================================================================================\n" + 00182 "MSG: engagement_msgs/APAction\n" + 00183 "# Declare constants for the different actions\n" + 00184 "int8 NO_ACTION=-1\n" + 00185 "int8 NOD=0\n" + 00186 "int8 SHAKE=1\n" + 00187 "int8 SPEECH=2\n" + 00188 "int8 POINT=3\n" + 00189 "int8 LOOK=4\n" + 00190 "int8 EXTENDED_ACTION=5\n" + 00191 "\n" + 00192 "# What action the human used to complete the adjacency pair\n" + 00193 "int8 value\n" + 00194 "\n" + 00195 "# Additional data for this action\n" + 00196 "string data\n" + 00197 ""; } 00198 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); } 00199 00200 public Response clone() { 00201 Response c = new Response(); 00202 c.deserialize(serialize(0)); 00203 return c; 00204 } 00205 00206 public void setTo(ros.communication.Message m) { 00207 deserialize(m.serialize(0)); 00208 } 00209 00210 public int serializationLength() { 00211 int __l = 0; 00212 __l += result.serializationLength(); 00213 __l += 4; 00214 for(ros.pkg.bml_msgs.msg.BehaviorResult val : behaviors) { 00215 __l += val.serializationLength(); 00216 } 00217 __l += 4; 00218 for(ros.pkg.engagement_msgs.msg.BCOccurrence val : backchannels) { 00219 __l += val.serializationLength(); 00220 } 00221 __l += response.serializationLength(); 00222 return __l; 00223 } 00224 00225 public void serialize(ByteBuffer bb, int seq) { 00226 result.serialize(bb, seq); 00227 bb.putInt(behaviors.size()); 00228 for(ros.pkg.bml_msgs.msg.BehaviorResult val : behaviors) { 00229 val.serialize(bb, seq); 00230 } 00231 bb.putInt(backchannels.size()); 00232 for(ros.pkg.engagement_msgs.msg.BCOccurrence val : backchannels) { 00233 val.serialize(bb, seq); 00234 } 00235 response.serialize(bb, seq); 00236 } 00237 00238 public void deserialize(ByteBuffer bb) { 00239 result.deserialize(bb); 00240 00241 int __behaviors_len = bb.getInt(); 00242 behaviors = new java.util.ArrayList<ros.pkg.bml_msgs.msg.BehaviorResult>(__behaviors_len); 00243 for(int __i=0; __i<__behaviors_len; __i++) { 00244 ros.pkg.bml_msgs.msg.BehaviorResult __tmp = new ros.pkg.bml_msgs.msg.BehaviorResult(); 00245 __tmp.deserialize(bb); 00246 behaviors.add(__tmp);; 00247 } 00248 00249 int __backchannels_len = bb.getInt(); 00250 backchannels = new java.util.ArrayList<ros.pkg.engagement_msgs.msg.BCOccurrence>(__backchannels_len); 00251 for(int __i=0; __i<__backchannels_len; __i++) { 00252 ros.pkg.engagement_msgs.msg.BCOccurrence __tmp = new ros.pkg.engagement_msgs.msg.BCOccurrence(); 00253 __tmp.deserialize(bb); 00254 backchannels.add(__tmp);; 00255 } 00256 response.deserialize(bb); 00257 } 00258 00259 @SuppressWarnings("all") 00260 public boolean equals(Object o) { 00261 if(!(o instanceof Response)) 00262 return false; 00263 Response other = (Response) o; 00264 return 00265 result.equals(other.result) && 00266 behaviors.equals(other.behaviors) && 00267 backchannels.equals(other.backchannels) && 00268 response.equals(other.response) && 00269 true; 00270 } 00271 00272 @SuppressWarnings("all") 00273 public int hashCode() { 00274 final int prime = 31; 00275 int result = 1; 00276 long tmp; 00277 result = prime * result + (this.result == null ? 0 : this.result.hashCode()); 00278 result = prime * result + (this.behaviors == null ? 0 : this.behaviors.hashCode()); 00279 result = prime * result + (this.backchannels == null ? 0 : this.backchannels.hashCode()); 00280 result = prime * result + (this.response == null ? 0 : this.response.hashCode()); 00281 return result; 00282 } 00283 } // class Response 00284 00285 } //class 00286 |