00001
00002
00003 package ros.pkg.vision_srvs.srv;
00004
00005 import java.nio.ByteBuffer;
00006
00007
00008 public class clip_polygon extends ros.communication.Service<clip_polygon.Request, clip_polygon.Response> {
00009
00010 public static java.lang.String __s_getDataType() { return "vision_srvs/clip_polygon"; }
00011 public static java.lang.String __s_getMD5Sum() { return "833de208811dbf84e2b0e6af79d60331"; }
00012
00013 public java.lang.String getDataType() { return clip_polygon.__s_getDataType(); }
00014 public java.lang.String getMD5Sum() { return clip_polygon.__s_getMD5Sum(); }
00015
00016 public clip_polygon.Request createRequest() {
00017 return new clip_polygon.Request();
00018 }
00019
00020 public clip_polygon.Response createResponse() {
00021 return new clip_polygon.Response();
00022 }
00023
00024 static public class Request extends ros.communication.Message {
00025 static public final long UNION = 0;
00026 static public final long INTERSECTION = 1;
00027
00028 public long operation;
00029 public ros.pkg.geometry_msgs.msg.Polygon poly1 = new ros.pkg.geometry_msgs.msg.Polygon();
00030 public ros.pkg.geometry_msgs.msg.Polygon poly2 = new ros.pkg.geometry_msgs.msg.Polygon();
00031
00032 public Request() {
00033 }
00034
00035 public static java.lang.String __s_getDataType() { return "vision_srvs/clip_polygonRequest"; }
00036 public java.lang.String getDataType() { return __s_getDataType(); }
00037 public static java.lang.String __s_getMD5Sum() { return "90ec19340207537b530d3a37f5d3aaff"; }
00038 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); }
00039 public static java.lang.String __s_getServerMD5Sum() { return "833de208811dbf84e2b0e6af79d60331"; }
00040 public java.lang.String getServerMD5Sum() { return __s_getServerMD5Sum(); }
00041 public static java.lang.String __s_getMessageDefinition() { return "uint32 UNION = 0\n" +
00042 "uint32 INTERSECTION = 1\n" +
00043 "uint32 operation\n" +
00044 "geometry_msgs/Polygon poly1\n" +
00045 "geometry_msgs/Polygon poly2\n" +
00046 "\n" +
00047 "================================================================================\n" +
00048 "MSG: geometry_msgs/Polygon\n" +
00049 "#A specification of a polygon where the first and last points are assumed to be connected\n" +
00050 "geometry_msgs/Point32[] points\n" +
00051 "\n" +
00052 "================================================================================\n" +
00053 "MSG: geometry_msgs/Point32\n" +
00054 "# This contains the position of a point in free space(with 32 bits of precision).\n" +
00055 "# It is recommeded to use Point wherever possible instead of Point32. \n" +
00056 "# \n" +
00057 "# This recommendation is to promote interoperability. \n" +
00058 "#\n" +
00059 "# This message is designed to take up less space when sending\n" +
00060 "# lots of points at once, as in the case of a PointCloud. \n" +
00061 "\n" +
00062 "float32 x\n" +
00063 "float32 y\n" +
00064 "float32 z\n" +
00065 ""; }
00066 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); }
00067
00068 public Request clone() {
00069 Request c = new Request();
00070 c.deserialize(serialize(0));
00071 return c;
00072 }
00073
00074 public void setTo(ros.communication.Message m) {
00075 deserialize(m.serialize(0));
00076 }
00077
00078 public int serializationLength() {
00079 int __l = 0;
00080 __l += 4;
00081 __l += poly1.serializationLength();
00082 __l += poly2.serializationLength();
00083 return __l;
00084 }
00085
00086 public void serialize(ByteBuffer bb, int seq) {
00087 bb.putInt((int)operation);
00088 poly1.serialize(bb, seq);
00089 poly2.serialize(bb, seq);
00090 }
00091
00092 public void deserialize(ByteBuffer bb) {
00093 operation = (long)(bb.getInt() & 0xffffffff);
00094 poly1.deserialize(bb);
00095 poly2.deserialize(bb);
00096 }
00097
00098 @SuppressWarnings("all")
00099 public boolean equals(Object o) {
00100 if(!(o instanceof Request))
00101 return false;
00102 Request other = (Request) o;
00103 return
00104 operation == other.operation &&
00105 poly1.equals(other.poly1) &&
00106 poly2.equals(other.poly2) &&
00107 true;
00108 }
00109
00110 @SuppressWarnings("all")
00111 public int hashCode() {
00112 final int prime = 31;
00113 int result = 1;
00114 long tmp;
00115 result = prime * result + (int)(this.operation ^ (this.operation >>> 32));
00116 result = prime * result + (this.poly1 == null ? 0 : this.poly1.hashCode());
00117 result = prime * result + (this.poly2 == null ? 0 : this.poly2.hashCode());
00118 return result;
00119 }
00120 }
00121
00122 static public class Response extends ros.communication.Message {
00123
00124 public ros.pkg.geometry_msgs.msg.Polygon poly_clip = new ros.pkg.geometry_msgs.msg.Polygon();
00125
00126 public Response() {
00127 }
00128
00129 public static java.lang.String __s_getDataType() { return "vision_srvs/clip_polygonResponse"; }
00130 public java.lang.String getDataType() { return __s_getDataType(); }
00131 public static java.lang.String __s_getMD5Sum() { return "8ac99714bd719c813589b0f74ded28d5"; }
00132 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); }
00133 public static java.lang.String __s_getServerMD5Sum() { return "833de208811dbf84e2b0e6af79d60331"; }
00134 public java.lang.String getServerMD5Sum() { return __s_getServerMD5Sum(); }
00135 public static java.lang.String __s_getMessageDefinition() { return "geometry_msgs/Polygon poly_clip\n" +
00136 "\n" +
00137 "\n" +
00138 "================================================================================\n" +
00139 "MSG: geometry_msgs/Polygon\n" +
00140 "#A specification of a polygon where the first and last points are assumed to be connected\n" +
00141 "geometry_msgs/Point32[] points\n" +
00142 "\n" +
00143 "================================================================================\n" +
00144 "MSG: geometry_msgs/Point32\n" +
00145 "# This contains the position of a point in free space(with 32 bits of precision).\n" +
00146 "# It is recommeded to use Point wherever possible instead of Point32. \n" +
00147 "# \n" +
00148 "# This recommendation is to promote interoperability. \n" +
00149 "#\n" +
00150 "# This message is designed to take up less space when sending\n" +
00151 "# lots of points at once, as in the case of a PointCloud. \n" +
00152 "\n" +
00153 "float32 x\n" +
00154 "float32 y\n" +
00155 "float32 z\n" +
00156 ""; }
00157 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); }
00158
00159 public Response clone() {
00160 Response c = new Response();
00161 c.deserialize(serialize(0));
00162 return c;
00163 }
00164
00165 public void setTo(ros.communication.Message m) {
00166 deserialize(m.serialize(0));
00167 }
00168
00169 public int serializationLength() {
00170 int __l = 0;
00171 __l += poly_clip.serializationLength();
00172 return __l;
00173 }
00174
00175 public void serialize(ByteBuffer bb, int seq) {
00176 poly_clip.serialize(bb, seq);
00177 }
00178
00179 public void deserialize(ByteBuffer bb) {
00180 poly_clip.deserialize(bb);
00181 }
00182
00183 @SuppressWarnings("all")
00184 public boolean equals(Object o) {
00185 if(!(o instanceof Response))
00186 return false;
00187 Response other = (Response) o;
00188 return
00189 poly_clip.equals(other.poly_clip) &&
00190 true;
00191 }
00192
00193 @SuppressWarnings("all")
00194 public int hashCode() {
00195 final int prime = 31;
00196 int result = 1;
00197 long tmp;
00198 result = prime * result + (this.poly_clip == null ? 0 : this.poly_clip.hashCode());
00199 return result;
00200 }
00201 }
00202
00203 }
00204