00001 /* Auto-generated by genmsg_cpp for file /tmp/buildd/ros-diamondback-client-rosjava-jni-0.1.7/debian/ros-diamondback-client-rosjava-jni/opt/ros/diamondback/stacks/client_rosjava_jni/test_rosjava_jni/srv/AddTwoInts.srv */ 00002 00003 package ros.pkg.test_rosjava_jni.srv; 00004 00005 import java.nio.ByteBuffer; 00006 00007 00008 public class AddTwoInts extends ros.communication.Service<AddTwoInts.Request, AddTwoInts.Response> { 00009 00010 public static java.lang.String __s_getDataType() { return "test_rosjava_jni/AddTwoInts"; } 00011 public static java.lang.String __s_getMD5Sum() { return "6a2e34150c00229791cc89ff309fff21"; } 00012 00013 public java.lang.String getDataType() { return AddTwoInts.__s_getDataType(); } 00014 public java.lang.String getMD5Sum() { return AddTwoInts.__s_getMD5Sum(); } 00015 00016 public AddTwoInts.Request createRequest() { 00017 return new AddTwoInts.Request(); 00018 } 00019 00020 public AddTwoInts.Response createResponse() { 00021 return new AddTwoInts.Response(); 00022 } 00023 00024 static public class Request extends ros.communication.Message { 00025 00026 public long a; 00027 public long b; 00028 00029 public Request() { 00030 } 00031 00032 public static java.lang.String __s_getDataType() { return "test_rosjava_jni/AddTwoIntsRequest"; } 00033 public java.lang.String getDataType() { return __s_getDataType(); } 00034 public static java.lang.String __s_getMD5Sum() { return "36d09b846be0b371c5f190354dd3153e"; } 00035 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); } 00036 public static java.lang.String __s_getServerMD5Sum() { return "6a2e34150c00229791cc89ff309fff21"; } 00037 public java.lang.String getServerMD5Sum() { return __s_getServerMD5Sum(); } 00038 public static java.lang.String __s_getMessageDefinition() { return "int64 a\n" + 00039 "int64 b\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 += 8; // a 00057 __l += 8; // b 00058 return __l; 00059 } 00060 00061 public void serialize(ByteBuffer bb, int seq) { 00062 bb.putLong(a); 00063 bb.putLong(b); 00064 } 00065 00066 public void deserialize(ByteBuffer bb) { 00067 a = bb.getLong(); 00068 b = bb.getLong(); 00069 } 00070 00071 @SuppressWarnings("all") 00072 public boolean equals(Object o) { 00073 if(!(o instanceof Request)) 00074 return false; 00075 Request other = (Request) o; 00076 return 00077 a == other.a && 00078 b == other.b && 00079 true; 00080 } 00081 00082 @SuppressWarnings("all") 00083 public int hashCode() { 00084 final int prime = 31; 00085 int result = 1; 00086 long tmp; 00087 result = prime * result + (int)(this.a ^ (this.a >>> 32)); 00088 result = prime * result + (int)(this.b ^ (this.b >>> 32)); 00089 return result; 00090 } 00091 } // class Request 00092 00093 static public class Response extends ros.communication.Message { 00094 00095 public long sum; 00096 00097 public Response() { 00098 } 00099 00100 public static java.lang.String __s_getDataType() { return "test_rosjava_jni/AddTwoIntsResponse"; } 00101 public java.lang.String getDataType() { return __s_getDataType(); } 00102 public static java.lang.String __s_getMD5Sum() { return "b88405221c77b1878a3cbbfff53428d7"; } 00103 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); } 00104 public static java.lang.String __s_getServerMD5Sum() { return "6a2e34150c00229791cc89ff309fff21"; } 00105 public java.lang.String getServerMD5Sum() { return __s_getServerMD5Sum(); } 00106 public static java.lang.String __s_getMessageDefinition() { return "int64 sum\n" + 00107 "\n" + 00108 "\n" + 00109 ""; } 00110 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); } 00111 00112 public Response clone() { 00113 Response c = new Response(); 00114 c.deserialize(serialize(0)); 00115 return c; 00116 } 00117 00118 public void setTo(ros.communication.Message m) { 00119 deserialize(m.serialize(0)); 00120 } 00121 00122 public int serializationLength() { 00123 int __l = 0; 00124 __l += 8; // sum 00125 return __l; 00126 } 00127 00128 public void serialize(ByteBuffer bb, int seq) { 00129 bb.putLong(sum); 00130 } 00131 00132 public void deserialize(ByteBuffer bb) { 00133 sum = bb.getLong(); 00134 } 00135 00136 @SuppressWarnings("all") 00137 public boolean equals(Object o) { 00138 if(!(o instanceof Response)) 00139 return false; 00140 Response other = (Response) o; 00141 return 00142 sum == other.sum && 00143 true; 00144 } 00145 00146 @SuppressWarnings("all") 00147 public int hashCode() { 00148 final int prime = 31; 00149 int result = 1; 00150 long tmp; 00151 result = prime * result + (int)(this.sum ^ (this.sum >>> 32)); 00152 return result; 00153 } 00154 } // class Response 00155 00156 } //class 00157