00001 /* Auto-generated by genmsg_cpp for file /opt/ros/diamondback/stacks/ias_common/vision_srvs/srv/register_jlo_callback.srv */ 00002 00003 package ros.pkg.vision_srvs.srv; 00004 00005 import java.nio.ByteBuffer; 00006 00007 00008 public class register_jlo_callback extends ros.communication.Service<register_jlo_callback.Request, register_jlo_callback.Response> { 00009 00010 public static java.lang.String __s_getDataType() { return "vision_srvs/register_jlo_callback"; } 00011 public static java.lang.String __s_getMD5Sum() { return "4ebd0d41ee3295d3b5b92eeaa53db753"; } 00012 00013 public java.lang.String getDataType() { return register_jlo_callback.__s_getDataType(); } 00014 public java.lang.String getMD5Sum() { return register_jlo_callback.__s_getMD5Sum(); } 00015 00016 public register_jlo_callback.Request createRequest() { 00017 return new register_jlo_callback.Request(); 00018 } 00019 00020 public register_jlo_callback.Response createResponse() { 00021 return new register_jlo_callback.Response(); 00022 } 00023 00024 static public class Request extends ros.communication.Message { 00025 00026 public java.lang.String topic_name = new java.lang.String(); 00027 public long jlo_id; 00028 public long parent_id; 00029 public double[] filter_delta_cov = new double[6]; 00030 00031 public Request() { 00032 } 00033 00034 public static java.lang.String __s_getDataType() { return "vision_srvs/register_jlo_callbackRequest"; } 00035 public java.lang.String getDataType() { return __s_getDataType(); } 00036 public static java.lang.String __s_getMD5Sum() { return "b4a1c7e4da9d58ce6fde17f373bed739"; } 00037 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); } 00038 public static java.lang.String __s_getServerMD5Sum() { return "4ebd0d41ee3295d3b5b92eeaa53db753"; } 00039 public java.lang.String getServerMD5Sum() { return __s_getServerMD5Sum(); } 00040 public static java.lang.String __s_getMessageDefinition() { return "\n" + 00041 "string topic_name\n" + 00042 "uint64 jlo_id\n" + 00043 "uint64 parent_id\n" + 00044 "float64[6] filter_delta_cov\n" + 00045 "\n" + 00046 ""; } 00047 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); } 00048 00049 public Request clone() { 00050 Request c = new Request(); 00051 c.deserialize(serialize(0)); 00052 return c; 00053 } 00054 00055 public void setTo(ros.communication.Message m) { 00056 deserialize(m.serialize(0)); 00057 } 00058 00059 public int serializationLength() { 00060 int __l = 0; 00061 __l += 4 + topic_name.length(); 00062 __l += 8; // jlo_id 00063 __l += 8; // parent_id 00064 __l += 48; // filter_delta_cov 00065 return __l; 00066 } 00067 00068 public void serialize(ByteBuffer bb, int seq) { 00069 Serialization.writeString(bb, topic_name); 00070 bb.putLong(jlo_id); 00071 bb.putLong(parent_id); 00072 00073 for(double val : filter_delta_cov) { 00074 bb.putDouble(val); 00075 } 00076 } 00077 00078 public void deserialize(ByteBuffer bb) { 00079 topic_name = Serialization.readString(bb); 00080 jlo_id = bb.getLong(); 00081 parent_id = bb.getLong(); 00082 00083 int __filter_delta_cov_len = filter_delta_cov.length;; 00084 filter_delta_cov = new double[__filter_delta_cov_len]; 00085 for(int __i=0; __i<__filter_delta_cov_len; __i++) { 00086 filter_delta_cov[__i] = bb.getDouble(); 00087 } 00088 } 00089 00090 @SuppressWarnings("all") 00091 public boolean equals(Object o) { 00092 if(!(o instanceof Request)) 00093 return false; 00094 Request other = (Request) o; 00095 return 00096 topic_name.equals(other.topic_name) && 00097 jlo_id == other.jlo_id && 00098 parent_id == other.parent_id && 00099 java.util.Arrays.equals(filter_delta_cov, other.filter_delta_cov) && 00100 true; 00101 } 00102 00103 @SuppressWarnings("all") 00104 public int hashCode() { 00105 final int prime = 31; 00106 int result = 1; 00107 long tmp; 00108 result = prime * result + (this.topic_name == null ? 0 : this.topic_name.hashCode()); 00109 result = prime * result + (int)(this.jlo_id ^ (this.jlo_id >>> 32)); 00110 result = prime * result + (int)(this.parent_id ^ (this.parent_id >>> 32)); 00111 result = prime * result + java.util.Arrays.hashCode(this.filter_delta_cov); 00112 return result; 00113 } 00114 } // class Request 00115 00116 static public class Response extends ros.communication.Message { 00117 00118 public java.lang.String error = new java.lang.String(); 00119 00120 public Response() { 00121 } 00122 00123 public static java.lang.String __s_getDataType() { return "vision_srvs/register_jlo_callbackResponse"; } 00124 public java.lang.String getDataType() { return __s_getDataType(); } 00125 public static java.lang.String __s_getMD5Sum() { return "eca8b96616c32aacf1be8bbf14c70eba"; } 00126 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); } 00127 public static java.lang.String __s_getServerMD5Sum() { return "4ebd0d41ee3295d3b5b92eeaa53db753"; } 00128 public java.lang.String getServerMD5Sum() { return __s_getServerMD5Sum(); } 00129 public static java.lang.String __s_getMessageDefinition() { return "string error\n" + 00130 "\n" + 00131 ""; } 00132 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); } 00133 00134 public Response clone() { 00135 Response c = new Response(); 00136 c.deserialize(serialize(0)); 00137 return c; 00138 } 00139 00140 public void setTo(ros.communication.Message m) { 00141 deserialize(m.serialize(0)); 00142 } 00143 00144 public int serializationLength() { 00145 int __l = 0; 00146 __l += 4 + error.length(); 00147 return __l; 00148 } 00149 00150 public void serialize(ByteBuffer bb, int seq) { 00151 Serialization.writeString(bb, error); 00152 } 00153 00154 public void deserialize(ByteBuffer bb) { 00155 error = Serialization.readString(bb); 00156 } 00157 00158 @SuppressWarnings("all") 00159 public boolean equals(Object o) { 00160 if(!(o instanceof Response)) 00161 return false; 00162 Response other = (Response) o; 00163 return 00164 error.equals(other.error) && 00165 true; 00166 } 00167 00168 @SuppressWarnings("all") 00169 public int hashCode() { 00170 final int prime = 31; 00171 int result = 1; 00172 long tmp; 00173 result = prime * result + (this.error == null ? 0 : this.error.hashCode()); 00174 return result; 00175 } 00176 } // class Response 00177 00178 } //class 00179