00001 /* Auto-generated by genmsg_cpp for file /tmp/buildd/ros-diamondback-knowrob-0.2.0/debian/ros-diamondback-knowrob/opt/ros/diamondback/stacks/knowrob/mod_vis/srv/CommVisSetReqText.srv */ 00002 00003 package ros.pkg.mod_vis.srv; 00004 00005 import java.nio.ByteBuffer; 00006 00007 00008 public class CommVisSetReqText extends ros.communication.Service<CommVisSetReqText.Request, CommVisSetReqText.Response> { 00009 00010 public static java.lang.String __s_getDataType() { return "mod_vis/CommVisSetReqText"; } 00011 public static java.lang.String __s_getMD5Sum() { return "e877861ae6c5c85c5b415ee034a574d1"; } 00012 00013 public java.lang.String getDataType() { return CommVisSetReqText.__s_getDataType(); } 00014 public java.lang.String getMD5Sum() { return CommVisSetReqText.__s_getMD5Sum(); } 00015 00016 public CommVisSetReqText.Request createRequest() { 00017 return new CommVisSetReqText.Request(); 00018 } 00019 00020 public CommVisSetReqText.Response createResponse() { 00021 return new CommVisSetReqText.Response(); 00022 } 00023 00024 static public class Request extends ros.communication.Message { 00025 00026 public java.lang.String request = new java.lang.String(); 00027 00028 public Request() { 00029 } 00030 00031 public static java.lang.String __s_getDataType() { return "mod_vis/CommVisSetReqTextRequest"; } 00032 public java.lang.String getDataType() { return __s_getDataType(); } 00033 public static java.lang.String __s_getMD5Sum() { return "9b13f31f7a0a36901919f7ec0d9f40d4"; } 00034 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); } 00035 public static java.lang.String __s_getServerMD5Sum() { return "e877861ae6c5c85c5b415ee034a574d1"; } 00036 public java.lang.String getServerMD5Sum() { return __s_getServerMD5Sum(); } 00037 public static java.lang.String __s_getMessageDefinition() { return "\n" + 00038 "\n" + 00039 "string request\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 += 4 + request.length(); 00057 return __l; 00058 } 00059 00060 public void serialize(ByteBuffer bb, int seq) { 00061 Serialization.writeString(bb, request); 00062 } 00063 00064 public void deserialize(ByteBuffer bb) { 00065 request = Serialization.readString(bb); 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 request.equals(other.request) && 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 + (this.request == null ? 0 : this.request.hashCode()); 00084 return result; 00085 } 00086 } // class Request 00087 00088 static public class Response extends ros.communication.Message { 00089 00090 public short success; 00091 00092 public Response() { 00093 } 00094 00095 public static java.lang.String __s_getDataType() { return "mod_vis/CommVisSetReqTextResponse"; } 00096 public java.lang.String getDataType() { return __s_getDataType(); } 00097 public static java.lang.String __s_getMD5Sum() { return "1c39f3eb3ccdcb41c87e9592b334f2a2"; } 00098 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); } 00099 public static java.lang.String __s_getServerMD5Sum() { return "e877861ae6c5c85c5b415ee034a574d1"; } 00100 public java.lang.String getServerMD5Sum() { return __s_getServerMD5Sum(); } 00101 public static java.lang.String __s_getMessageDefinition() { return "byte success\n" + 00102 "\n" + 00103 "\n" + 00104 ""; } 00105 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); } 00106 00107 public Response clone() { 00108 Response c = new Response(); 00109 c.deserialize(serialize(0)); 00110 return c; 00111 } 00112 00113 public void setTo(ros.communication.Message m) { 00114 deserialize(m.serialize(0)); 00115 } 00116 00117 public int serializationLength() { 00118 int __l = 0; 00119 __l += 1; // success 00120 return __l; 00121 } 00122 00123 public void serialize(ByteBuffer bb, int seq) { 00124 bb.put((byte)success); 00125 } 00126 00127 public void deserialize(ByteBuffer bb) { 00128 success = (short)(bb.get() & 0xff); 00129 } 00130 00131 @SuppressWarnings("all") 00132 public boolean equals(Object o) { 00133 if(!(o instanceof Response)) 00134 return false; 00135 Response other = (Response) o; 00136 return 00137 success == other.success && 00138 true; 00139 } 00140 00141 @SuppressWarnings("all") 00142 public int hashCode() { 00143 final int prime = 31; 00144 int result = 1; 00145 long tmp; 00146 result = prime * result + this.success; 00147 return result; 00148 } 00149 } // class Response 00150 00151 } //class 00152