00001
00002
00003 package ros.pkg.vision_srvs.srv;
00004
00005 import java.nio.ByteBuffer;
00006
00007
00008 public class cop_get_object_shape extends ros.communication.Service<cop_get_object_shape.Request, cop_get_object_shape.Response> {
00009
00010 public static java.lang.String __s_getDataType() { return "vision_srvs/cop_get_object_shape"; }
00011 public static java.lang.String __s_getMD5Sum() { return "132d121b47840325dd1e8dd0ce3c372d"; }
00012
00013 public java.lang.String getDataType() { return cop_get_object_shape.__s_getDataType(); }
00014 public java.lang.String getMD5Sum() { return cop_get_object_shape.__s_getMD5Sum(); }
00015
00016 public cop_get_object_shape.Request createRequest() {
00017 return new cop_get_object_shape.Request();
00018 }
00019
00020 public cop_get_object_shape.Response createResponse() {
00021 return new cop_get_object_shape.Response();
00022 }
00023
00024 static public class Request extends ros.communication.Message {
00025
00026 public long object_id;
00027
00028 public Request() {
00029 }
00030
00031 public static java.lang.String __s_getDataType() { return "vision_srvs/cop_get_object_shapeRequest"; }
00032 public java.lang.String getDataType() { return __s_getDataType(); }
00033 public static java.lang.String __s_getMD5Sum() { return "039cdc2e4e021929b349f87d86d0ea70"; }
00034 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); }
00035 public static java.lang.String __s_getServerMD5Sum() { return "132d121b47840325dd1e8dd0ce3c372d"; }
00036 public java.lang.String getServerMD5Sum() { return __s_getServerMD5Sum(); }
00037 public static java.lang.String __s_getMessageDefinition() { return "\n" +
00038 "\n" +
00039 "uint64 object_id\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;
00057 return __l;
00058 }
00059
00060 public void serialize(ByteBuffer bb, int seq) {
00061 bb.putLong(object_id);
00062 }
00063
00064 public void deserialize(ByteBuffer bb) {
00065 object_id = bb.getLong();
00066 }
00067
00068 @SuppressWarnings("all")
00069 public boolean equals(Object o) {
00070 if(!(o instanceof Request))
00071 return false;
00072 Request other = (Request) o;
00073 return
00074 object_id == other.object_id &&
00075 true;
00076 }
00077
00078 @SuppressWarnings("all")
00079 public int hashCode() {
00080 final int prime = 31;
00081 int result = 1;
00082 long tmp;
00083 result = prime * result + (int)(this.object_id ^ (this.object_id >>> 32));
00084 return result;
00085 }
00086 }
00087
00088 static public class Response extends ros.communication.Message {
00089
00090 public ros.pkg.geometric_shapes_msgs.msg.Shape shape = new ros.pkg.geometric_shapes_msgs.msg.Shape();
00091
00092 public Response() {
00093 }
00094
00095 public static java.lang.String __s_getDataType() { return "vision_srvs/cop_get_object_shapeResponse"; }
00096 public java.lang.String getDataType() { return __s_getDataType(); }
00097 public static java.lang.String __s_getMD5Sum() { return "54b403d09f468fc327f67c2993792640"; }
00098 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); }
00099 public static java.lang.String __s_getServerMD5Sum() { return "132d121b47840325dd1e8dd0ce3c372d"; }
00100 public java.lang.String getServerMD5Sum() { return __s_getServerMD5Sum(); }
00101 public static java.lang.String __s_getMessageDefinition() { return "geometric_shapes_msgs/Shape shape\n" +
00102 "\n" +
00103 "\n" +
00104 "================================================================================\n" +
00105 "MSG: geometric_shapes_msgs/Shape\n" +
00106 "byte SPHERE=0\n" +
00107 "byte BOX=1\n" +
00108 "byte CYLINDER=2\n" +
00109 "byte MESH=3\n" +
00110 "\n" +
00111 "byte type\n" +
00112 "\n" +
00113 "\n" +
00114 "#### define sphere, box, cylinder ####\n" +
00115 "# the origin of each shape is considered at the shape's center\n" +
00116 "\n" +
00117 "# for sphere\n" +
00118 "# radius := dimensions[0]\n" +
00119 "\n" +
00120 "# for cylinder\n" +
00121 "# radius := dimensions[0]\n" +
00122 "# length := dimensions[1]\n" +
00123 "# the length is along the Z axis\n" +
00124 "\n" +
00125 "# for box\n" +
00126 "# size_x := dimensions[0]\n" +
00127 "# size_y := dimensions[1]\n" +
00128 "# size_z := dimensions[2]\n" +
00129 "float64[] dimensions\n" +
00130 "\n" +
00131 "\n" +
00132 "#### define mesh ####\n" +
00133 "\n" +
00134 "# list of triangles; triangle k is defined by tre vertices located\n" +
00135 "# at indices triangles[3k], triangles[3k+1], triangles[3k+2]\n" +
00136 "int32[] triangles\n" +
00137 "geometry_msgs/Point[] vertices\n" +
00138 "\n" +
00139 "================================================================================\n" +
00140 "MSG: geometry_msgs/Point\n" +
00141 "# This contains the position of a point in free space\n" +
00142 "float64 x\n" +
00143 "float64 y\n" +
00144 "float64 z\n" +
00145 "\n" +
00146 ""; }
00147 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); }
00148
00149 public Response clone() {
00150 Response c = new Response();
00151 c.deserialize(serialize(0));
00152 return c;
00153 }
00154
00155 public void setTo(ros.communication.Message m) {
00156 deserialize(m.serialize(0));
00157 }
00158
00159 public int serializationLength() {
00160 int __l = 0;
00161 __l += shape.serializationLength();
00162 return __l;
00163 }
00164
00165 public void serialize(ByteBuffer bb, int seq) {
00166 shape.serialize(bb, seq);
00167 }
00168
00169 public void deserialize(ByteBuffer bb) {
00170 shape.deserialize(bb);
00171 }
00172
00173 @SuppressWarnings("all")
00174 public boolean equals(Object o) {
00175 if(!(o instanceof Response))
00176 return false;
00177 Response other = (Response) o;
00178 return
00179 shape.equals(other.shape) &&
00180 true;
00181 }
00182
00183 @SuppressWarnings("all")
00184 public int hashCode() {
00185 final int prime = 31;
00186 int result = 1;
00187 long tmp;
00188 result = prime * result + (this.shape == null ? 0 : this.shape.hashCode());
00189 return result;
00190 }
00191 }
00192
00193 }
00194