00001
00002
00003 package ros.pkg.vision_srvs.srv;
00004
00005 import java.nio.ByteBuffer;
00006
00007
00008 public class cop_add_collision extends ros.communication.Service<cop_add_collision.Request, cop_add_collision.Response> {
00009
00010 public static java.lang.String __s_getDataType() { return "vision_srvs/cop_add_collision"; }
00011 public static java.lang.String __s_getMD5Sum() { return "ffb9ed9439ec9d331dee846d8b567988"; }
00012
00013 public java.lang.String getDataType() { return cop_add_collision.__s_getDataType(); }
00014 public java.lang.String getMD5Sum() { return cop_add_collision.__s_getMD5Sum(); }
00015
00016 public cop_add_collision.Request createRequest() {
00017 return new cop_add_collision.Request();
00018 }
00019
00020 public cop_add_collision.Response createResponse() {
00021 return new cop_add_collision.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_add_collisionRequest"; }
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 "ffb9ed9439ec9d331dee846d8b567988"; }
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 java.lang.String collisionname = new java.lang.String();
00091 public ros.pkg.mapping_msgs.msg.CollisionObject added_object = new ros.pkg.mapping_msgs.msg.CollisionObject();
00092
00093 public Response() {
00094 }
00095
00096 public static java.lang.String __s_getDataType() { return "vision_srvs/cop_add_collisionResponse"; }
00097 public java.lang.String getDataType() { return __s_getDataType(); }
00098 public static java.lang.String __s_getMD5Sum() { return "02ea35f62dccc09056adcce9e25afa4d"; }
00099 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); }
00100 public static java.lang.String __s_getServerMD5Sum() { return "ffb9ed9439ec9d331dee846d8b567988"; }
00101 public java.lang.String getServerMD5Sum() { return __s_getServerMD5Sum(); }
00102 public static java.lang.String __s_getMessageDefinition() { return "string collisionname\n" +
00103 "mapping_msgs/CollisionObject added_object\n" +
00104 "\n" +
00105 "\n" +
00106 "================================================================================\n" +
00107 "MSG: mapping_msgs/CollisionObject\n" +
00108 "# a header, used for interpreting the poses\n" +
00109 "Header header\n" +
00110 "\n" +
00111 "# the id of the object\n" +
00112 "string id\n" +
00113 "\n" +
00114 "#This contains what is to be done with the object\n" +
00115 "CollisionObjectOperation operation\n" +
00116 "\n" +
00117 "#the shapes associated with the object\n" +
00118 "geometric_shapes_msgs/Shape[] shapes\n" +
00119 "\n" +
00120 "#the poses associated with the shapes - will be transformed using the header\n" +
00121 "geometry_msgs/Pose[] poses\n" +
00122 "\n" +
00123 "================================================================================\n" +
00124 "MSG: std_msgs/Header\n" +
00125 "# Standard metadata for higher-level stamped data types.\n" +
00126 "# This is generally used to communicate timestamped data \n" +
00127 "# in a particular coordinate frame.\n" +
00128 "# \n" +
00129 "# sequence ID: consecutively increasing ID \n" +
00130 "uint32 seq\n" +
00131 "#Two-integer timestamp that is expressed as:\n" +
00132 "# * stamp.secs: seconds (stamp_secs) since epoch\n" +
00133 "# * stamp.nsecs: nanoseconds since stamp_secs\n" +
00134 "# time-handling sugar is provided by the client library\n" +
00135 "time stamp\n" +
00136 "#Frame this data is associated with\n" +
00137 "# 0: no frame\n" +
00138 "# 1: global frame\n" +
00139 "string frame_id\n" +
00140 "\n" +
00141 "================================================================================\n" +
00142 "MSG: mapping_msgs/CollisionObjectOperation\n" +
00143 "#Puts the object into the environment\n" +
00144 "#or updates the object if already added\n" +
00145 "byte ADD=0\n" +
00146 "\n" +
00147 "#Removes the object from the environment entirely\n" +
00148 "byte REMOVE=1\n" +
00149 "\n" +
00150 "#Only valid within the context of a CollisionAttachedObject message\n" +
00151 "#Will be ignored if sent with an CollisionObject message\n" +
00152 "#Takes an attached object, detaches from the attached link\n" +
00153 "#But adds back in as regular object\n" +
00154 "byte DETACH_AND_ADD_AS_OBJECT=2\n" +
00155 "\n" +
00156 "#Only valid within the context of a CollisionAttachedObject message\n" +
00157 "#Will be ignored if sent with an CollisionObject message\n" +
00158 "#Takes current object in the environment and removes it as\n" +
00159 "#a regular object\n" +
00160 "byte ATTACH_AND_REMOVE_AS_OBJECT=3\n" +
00161 "\n" +
00162 "# Byte code for operation\n" +
00163 "byte operation\n" +
00164 "\n" +
00165 "================================================================================\n" +
00166 "MSG: geometric_shapes_msgs/Shape\n" +
00167 "byte SPHERE=0\n" +
00168 "byte BOX=1\n" +
00169 "byte CYLINDER=2\n" +
00170 "byte MESH=3\n" +
00171 "\n" +
00172 "byte type\n" +
00173 "\n" +
00174 "\n" +
00175 "#### define sphere, box, cylinder ####\n" +
00176 "# the origin of each shape is considered at the shape's center\n" +
00177 "\n" +
00178 "# for sphere\n" +
00179 "# radius := dimensions[0]\n" +
00180 "\n" +
00181 "# for cylinder\n" +
00182 "# radius := dimensions[0]\n" +
00183 "# length := dimensions[1]\n" +
00184 "# the length is along the Z axis\n" +
00185 "\n" +
00186 "# for box\n" +
00187 "# size_x := dimensions[0]\n" +
00188 "# size_y := dimensions[1]\n" +
00189 "# size_z := dimensions[2]\n" +
00190 "float64[] dimensions\n" +
00191 "\n" +
00192 "\n" +
00193 "#### define mesh ####\n" +
00194 "\n" +
00195 "# list of triangles; triangle k is defined by tre vertices located\n" +
00196 "# at indices triangles[3k], triangles[3k+1], triangles[3k+2]\n" +
00197 "int32[] triangles\n" +
00198 "geometry_msgs/Point[] vertices\n" +
00199 "\n" +
00200 "================================================================================\n" +
00201 "MSG: geometry_msgs/Point\n" +
00202 "# This contains the position of a point in free space\n" +
00203 "float64 x\n" +
00204 "float64 y\n" +
00205 "float64 z\n" +
00206 "\n" +
00207 "================================================================================\n" +
00208 "MSG: geometry_msgs/Pose\n" +
00209 "# A representation of pose in free space, composed of postion and orientation. \n" +
00210 "Point position\n" +
00211 "Quaternion orientation\n" +
00212 "\n" +
00213 "================================================================================\n" +
00214 "MSG: geometry_msgs/Quaternion\n" +
00215 "# This represents an orientation in free space in quaternion form.\n" +
00216 "\n" +
00217 "float64 x\n" +
00218 "float64 y\n" +
00219 "float64 z\n" +
00220 "float64 w\n" +
00221 "\n" +
00222 ""; }
00223 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); }
00224
00225 public Response clone() {
00226 Response c = new Response();
00227 c.deserialize(serialize(0));
00228 return c;
00229 }
00230
00231 public void setTo(ros.communication.Message m) {
00232 deserialize(m.serialize(0));
00233 }
00234
00235 public int serializationLength() {
00236 int __l = 0;
00237 __l += 4 + collisionname.length();
00238 __l += added_object.serializationLength();
00239 return __l;
00240 }
00241
00242 public void serialize(ByteBuffer bb, int seq) {
00243 Serialization.writeString(bb, collisionname);
00244 added_object.serialize(bb, seq);
00245 }
00246
00247 public void deserialize(ByteBuffer bb) {
00248 collisionname = Serialization.readString(bb);
00249 added_object.deserialize(bb);
00250 }
00251
00252 @SuppressWarnings("all")
00253 public boolean equals(Object o) {
00254 if(!(o instanceof Response))
00255 return false;
00256 Response other = (Response) o;
00257 return
00258 collisionname.equals(other.collisionname) &&
00259 added_object.equals(other.added_object) &&
00260 true;
00261 }
00262
00263 @SuppressWarnings("all")
00264 public int hashCode() {
00265 final int prime = 31;
00266 int result = 1;
00267 long tmp;
00268 result = prime * result + (this.collisionname == null ? 0 : this.collisionname.hashCode());
00269 result = prime * result + (this.added_object == null ? 0 : this.added_object.hashCode());
00270 return result;
00271 }
00272 }
00273
00274 }
00275