Project: engagement_test License: BSD Dependencies:
Used by:
None |
engagement_test/srv_gen/java/ros/pkg/bml_srvs/srv/BMLHead.javaGo to the documentation of this file.00001 /* Auto-generated by genmsg_cpp for file /home/mel/workspace/ros_stacks/bml/bml_srvs/srv/BMLHead.srv */ 00002 00003 package ros.pkg.bml_srvs.srv; 00004 00005 import java.nio.ByteBuffer; 00006 00007 00008 public class BMLHead extends ros.communication.Service<BMLHead.Request, BMLHead.Response> { 00009 00010 public static java.lang.String __s_getDataType() { return "bml_srvs/BMLHead"; } 00011 public static java.lang.String __s_getMD5Sum() { return "4fd92e7786fb3236b18bdc6ab62f3f3c"; } 00012 00013 public java.lang.String getDataType() { return BMLHead.__s_getDataType(); } 00014 public java.lang.String getMD5Sum() { return BMLHead.__s_getMD5Sum(); } 00015 00016 public BMLHead.Request createRequest() { 00017 return new BMLHead.Request(); 00018 } 00019 00020 public BMLHead.Response createResponse() { 00021 return new BMLHead.Response(); 00022 } 00023 00024 static public class Request extends ros.communication.Message { 00025 static public final short NOD = 1; 00026 static public final short SHAKE = 0; 00027 static public final double SMALL = 8.0; 00028 static public final double BIG = 16.0; 00029 00030 public ros.pkg.bml_msgs.msg.Behavior behav = new ros.pkg.bml_msgs.msg.Behavior(); 00031 public short motion; 00032 public double amount; 00033 00034 public Request() { 00035 } 00036 00037 public static java.lang.String __s_getDataType() { return "bml_srvs/BMLHeadRequest"; } 00038 public java.lang.String getDataType() { return __s_getDataType(); } 00039 public static java.lang.String __s_getMD5Sum() { return "2a7592b06ee9ee568381eeca97960067"; } 00040 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); } 00041 public static java.lang.String __s_getServerMD5Sum() { return "4fd92e7786fb3236b18bdc6ab62f3f3c"; } 00042 public java.lang.String getServerMD5Sum() { return __s_getServerMD5Sum(); } 00043 public static java.lang.String __s_getMessageDefinition() { return "\n" + 00044 "uint8 NOD=1\n" + 00045 "uint8 SHAKE=0\n" + 00046 "\n" + 00047 "float64 SMALL=8\n" + 00048 "float64 BIG=16\n" + 00049 "\n" + 00050 "\n" + 00051 "bml_msgs/Behavior behav\n" + 00052 "uint8 motion\n" + 00053 "float64 amount\n" + 00054 "\n" + 00055 "================================================================================\n" + 00056 "MSG: bml_msgs/Behavior\n" + 00057 "# this message type contains the information for basic behavior types\n" + 00058 "\n" + 00059 "#constants for the synch point\n" + 00060 "uint8 START=0\n" + 00061 "uint8 READY=1\n" + 00062 "uint8 STROKE_START=2\n" + 00063 "uint8 STROKE=3\n" + 00064 "uint8 STROKE_END=4\n" + 00065 "uint8 RELAX=5\n" + 00066 "uint8 END=6\n" + 00067 "\n" + 00068 "# the fields\n" + 00069 "string id\n" + 00070 "uint8 synchPoint\n" + 00071 "\n" + 00072 ""; } 00073 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); } 00074 00075 public Request clone() { 00076 Request c = new Request(); 00077 c.deserialize(serialize(0)); 00078 return c; 00079 } 00080 00081 public void setTo(ros.communication.Message m) { 00082 deserialize(m.serialize(0)); 00083 } 00084 00085 public int serializationLength() { 00086 int __l = 0; 00087 __l += behav.serializationLength(); 00088 __l += 1; // motion 00089 __l += 8; // amount 00090 return __l; 00091 } 00092 00093 public void serialize(ByteBuffer bb, int seq) { 00094 behav.serialize(bb, seq); 00095 bb.put((byte)motion); 00096 bb.putDouble(amount); 00097 } 00098 00099 public void deserialize(ByteBuffer bb) { 00100 behav.deserialize(bb); 00101 motion = (short)(bb.get() & 0xff); 00102 amount = bb.getDouble(); 00103 } 00104 00105 @SuppressWarnings("all") 00106 public boolean equals(Object o) { 00107 if(!(o instanceof Request)) 00108 return false; 00109 Request other = (Request) o; 00110 return 00111 behav.equals(other.behav) && 00112 motion == other.motion && 00113 amount == other.amount && 00114 true; 00115 } 00116 00117 @SuppressWarnings("all") 00118 public int hashCode() { 00119 final int prime = 31; 00120 int result = 1; 00121 long tmp; 00122 result = prime * result + (this.behav == null ? 0 : this.behav.hashCode()); 00123 result = prime * result + this.motion; 00124 result = prime * result + (int)((tmp = Double.doubleToLongBits(this.amount)) ^ (tmp >>> 32)); 00125 return result; 00126 } 00127 } // class Request 00128 00129 static public class Response extends ros.communication.Message { 00130 00131 public ros.pkg.bml_msgs.msg.Flag status = new ros.pkg.bml_msgs.msg.Flag(); 00132 00133 public Response() { 00134 } 00135 00136 public static java.lang.String __s_getDataType() { return "bml_srvs/BMLHeadResponse"; } 00137 public java.lang.String getDataType() { return __s_getDataType(); } 00138 public static java.lang.String __s_getMD5Sum() { return "f7423aea1727c03e08611ec029888e5d"; } 00139 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); } 00140 public static java.lang.String __s_getServerMD5Sum() { return "4fd92e7786fb3236b18bdc6ab62f3f3c"; } 00141 public java.lang.String getServerMD5Sum() { return __s_getServerMD5Sum(); } 00142 public static java.lang.String __s_getMessageDefinition() { return "\n" + 00143 "bml_msgs/Flag status\n" + 00144 "\n" + 00145 "\n" + 00146 "================================================================================\n" + 00147 "MSG: bml_msgs/Flag\n" + 00148 "# A flag which determines between TRUE and FALSE\n" + 00149 "int8 value\n" + 00150 "\n" + 00151 "# Constant for an invalid value\n" + 00152 "int8 INVALID=-1\n" + 00153 "\n" + 00154 "# Constants which define the values for true\n" + 00155 "int8 TRUE=1\n" + 00156 "int8 START=1\n" + 00157 "int8 BEGIN=1\n" + 00158 "int8 SUCCESS=1\n" + 00159 "int8 DONE=1\n" + 00160 "\n" + 00161 "# Constants which define the values for false\n" + 00162 "int8 FALSE=0\n" + 00163 "int8 STOP=0\n" + 00164 "int8 END=0\n" + 00165 "int8 FAILURE=0\n" + 00166 "int8 NOT_DONE=0\n" + 00167 "\n" + 00168 "# Constants for response types\n" + 00169 "int8 OPTIONAL_RESPONSE=0\n" + 00170 "int8 IS_A_RESPONSE=1\n" + 00171 "int8 REQUIRES_RESPONSE=2\n" + 00172 "int8 BACKCHANNEL=3\n" + 00173 "\n" + 00174 "# Constants which define the values for the side to use\n" + 00175 "int8 NEITHER=0\n" + 00176 "int8 LEFT=1\n" + 00177 "int8 RIGHT=2\n" + 00178 "int8 EITHER=3\n" + 00179 "\n" + 00180 ""; } 00181 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); } 00182 00183 public Response clone() { 00184 Response c = new Response(); 00185 c.deserialize(serialize(0)); 00186 return c; 00187 } 00188 00189 public void setTo(ros.communication.Message m) { 00190 deserialize(m.serialize(0)); 00191 } 00192 00193 public int serializationLength() { 00194 int __l = 0; 00195 __l += status.serializationLength(); 00196 return __l; 00197 } 00198 00199 public void serialize(ByteBuffer bb, int seq) { 00200 status.serialize(bb, seq); 00201 } 00202 00203 public void deserialize(ByteBuffer bb) { 00204 status.deserialize(bb); 00205 } 00206 00207 @SuppressWarnings("all") 00208 public boolean equals(Object o) { 00209 if(!(o instanceof Response)) 00210 return false; 00211 Response other = (Response) o; 00212 return 00213 status.equals(other.status) && 00214 true; 00215 } 00216 00217 @SuppressWarnings("all") 00218 public int hashCode() { 00219 final int prime = 31; 00220 int result = 1; 00221 long tmp; 00222 result = prime * result + (this.status == null ? 0 : this.status.hashCode()); 00223 return result; 00224 } 00225 } // class Response 00226 00227 } //class 00228 |