Project: engagement_generation License: BSD Dependencies:
Used by:
None |
engagement_generation/srv_gen/java/ros/pkg/engagement_srvs/srv/RobotAdjacencyPair.javaGo to the documentation of this file.00001 /* Auto-generated by genmsg_cpp for file /home/mel/workspace/ros_stacks/engagement/engagement_srvs/srv/RobotAdjacencyPair.srv */ 00002 00003 package ros.pkg.engagement_srvs.srv; 00004 00005 import java.nio.ByteBuffer; 00006 00007 00008 public class RobotAdjacencyPair extends ros.communication.Service<RobotAdjacencyPair.Request, RobotAdjacencyPair.Response> { 00009 00010 public static java.lang.String __s_getDataType() { return "engagement_srvs/RobotAdjacencyPair"; } 00011 public static java.lang.String __s_getMD5Sum() { return "add5acd75a239f8cf4e060009d3fe11b"; } 00012 00013 public java.lang.String getDataType() { return RobotAdjacencyPair.__s_getDataType(); } 00014 public java.lang.String getMD5Sum() { return RobotAdjacencyPair.__s_getMD5Sum(); } 00015 00016 public RobotAdjacencyPair.Request createRequest() { 00017 return new RobotAdjacencyPair.Request(); 00018 } 00019 00020 public RobotAdjacencyPair.Response createResponse() { 00021 return new RobotAdjacencyPair.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 00028 public Request() { 00029 } 00030 00031 public static java.lang.String __s_getDataType() { return "engagement_srvs/RobotAdjacencyPairRequest"; } 00032 public java.lang.String getDataType() { return __s_getDataType(); } 00033 public static java.lang.String __s_getMD5Sum() { return "b4e383113a12f607c76653c5e3d26ce7"; } 00034 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); } 00035 public static java.lang.String __s_getServerMD5Sum() { return "add5acd75a239f8cf4e060009d3fe11b"; } 00036 public java.lang.String getServerMD5Sum() { return __s_getServerMD5Sum(); } 00037 public static java.lang.String __s_getMessageDefinition() { return "\n" + 00038 "engagement_msgs/ActorID actor\n" + 00039 "\n" + 00040 "================================================================================\n" + 00041 "MSG: engagement_msgs/ActorID\n" + 00042 "# Unique string identifier for the actor\n" + 00043 "string id\n" + 00044 "\n" + 00045 "# Constant to identify the Robot as the actor\n" + 00046 "string ROBOT=ROBOT\n" + 00047 ""; } 00048 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); } 00049 00050 public Request clone() { 00051 Request c = new Request(); 00052 c.deserialize(serialize(0)); 00053 return c; 00054 } 00055 00056 public void setTo(ros.communication.Message m) { 00057 deserialize(m.serialize(0)); 00058 } 00059 00060 public int serializationLength() { 00061 int __l = 0; 00062 __l += actor.serializationLength(); 00063 return __l; 00064 } 00065 00066 public void serialize(ByteBuffer bb, int seq) { 00067 actor.serialize(bb, seq); 00068 } 00069 00070 public void deserialize(ByteBuffer bb) { 00071 actor.deserialize(bb); 00072 } 00073 00074 @SuppressWarnings("all") 00075 public boolean equals(Object o) { 00076 if(!(o instanceof Request)) 00077 return false; 00078 Request other = (Request) o; 00079 return 00080 actor.equals(other.actor) && 00081 true; 00082 } 00083 00084 @SuppressWarnings("all") 00085 public int hashCode() { 00086 final int prime = 31; 00087 int result = 1; 00088 long tmp; 00089 result = prime * result + (this.actor == null ? 0 : this.actor.hashCode()); 00090 return result; 00091 } 00092 } // class Request 00093 00094 static public class Response extends ros.communication.Message { 00095 00096 public ros.pkg.engagement_msgs.msg.APAction action = new ros.pkg.engagement_msgs.msg.APAction(); 00097 public ros.pkg.bml_msgs.msg.Flag result = new ros.pkg.bml_msgs.msg.Flag(); 00098 00099 public Response() { 00100 } 00101 00102 public static java.lang.String __s_getDataType() { return "engagement_srvs/RobotAdjacencyPairResponse"; } 00103 public java.lang.String getDataType() { return __s_getDataType(); } 00104 public static java.lang.String __s_getMD5Sum() { return "1a767d752cd8e90f9a2dcc6734639092"; } 00105 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); } 00106 public static java.lang.String __s_getServerMD5Sum() { return "add5acd75a239f8cf4e060009d3fe11b"; } 00107 public java.lang.String getServerMD5Sum() { return __s_getServerMD5Sum(); } 00108 public static java.lang.String __s_getMessageDefinition() { return "engagement_msgs/APAction action\n" + 00109 "\n" + 00110 "\n" + 00111 "bml_msgs/Flag result\n" + 00112 "\n" + 00113 "================================================================================\n" + 00114 "MSG: engagement_msgs/APAction\n" + 00115 "# Declare constants for the different actions\n" + 00116 "int8 NO_ACTION=-1\n" + 00117 "int8 NOD=0\n" + 00118 "int8 SHAKE=1\n" + 00119 "int8 SPEECH=2\n" + 00120 "int8 POINT=3\n" + 00121 "int8 LOOK=4\n" + 00122 "int8 EXTENDED_ACTION=5\n" + 00123 "\n" + 00124 "# What action the human used to complete the adjacency pair\n" + 00125 "int8 value\n" + 00126 "\n" + 00127 "# Additional data for this action\n" + 00128 "string data\n" + 00129 "================================================================================\n" + 00130 "MSG: bml_msgs/Flag\n" + 00131 "# A flag which determines between TRUE and FALSE\n" + 00132 "int8 value\n" + 00133 "\n" + 00134 "# Constant for an invalid value\n" + 00135 "int8 INVALID=-1\n" + 00136 "\n" + 00137 "# Constants which define the values for true\n" + 00138 "int8 TRUE=1\n" + 00139 "int8 START=1\n" + 00140 "int8 BEGIN=1\n" + 00141 "int8 SUCCESS=1\n" + 00142 "int8 DONE=1\n" + 00143 "\n" + 00144 "# Constants which define the values for false\n" + 00145 "int8 FALSE=0\n" + 00146 "int8 STOP=0\n" + 00147 "int8 END=0\n" + 00148 "int8 FAILURE=0\n" + 00149 "int8 NOT_DONE=0\n" + 00150 "\n" + 00151 "# Constants for response types\n" + 00152 "int8 OPTIONAL_RESPONSE=0\n" + 00153 "int8 IS_A_RESPONSE=1\n" + 00154 "int8 REQUIRES_RESPONSE=2\n" + 00155 "int8 BACKCHANNEL=3\n" + 00156 "\n" + 00157 "# Constants which define the values for the side to use\n" + 00158 "int8 NEITHER=0\n" + 00159 "int8 LEFT=1\n" + 00160 "int8 RIGHT=2\n" + 00161 "int8 EITHER=3\n" + 00162 "\n" + 00163 ""; } 00164 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); } 00165 00166 public Response clone() { 00167 Response c = new Response(); 00168 c.deserialize(serialize(0)); 00169 return c; 00170 } 00171 00172 public void setTo(ros.communication.Message m) { 00173 deserialize(m.serialize(0)); 00174 } 00175 00176 public int serializationLength() { 00177 int __l = 0; 00178 __l += action.serializationLength(); 00179 __l += result.serializationLength(); 00180 return __l; 00181 } 00182 00183 public void serialize(ByteBuffer bb, int seq) { 00184 action.serialize(bb, seq); 00185 result.serialize(bb, seq); 00186 } 00187 00188 public void deserialize(ByteBuffer bb) { 00189 action.deserialize(bb); 00190 result.deserialize(bb); 00191 } 00192 00193 @SuppressWarnings("all") 00194 public boolean equals(Object o) { 00195 if(!(o instanceof Response)) 00196 return false; 00197 Response other = (Response) o; 00198 return 00199 action.equals(other.action) && 00200 result.equals(other.result) && 00201 true; 00202 } 00203 00204 @SuppressWarnings("all") 00205 public int hashCode() { 00206 final int prime = 31; 00207 int result = 1; 00208 long tmp; 00209 result = prime * result + (this.action == null ? 0 : this.action.hashCode()); 00210 result = prime * result + (this.result == null ? 0 : this.result.hashCode()); 00211 return result; 00212 } 00213 } // class Response 00214 00215 } //class 00216 |