00001 /* Auto-generated by genmsg_cpp for file /opt/ros/diamondback/stacks/ros_comm/tools/topic_tools/srv/MuxAdd.srv */ 00002 00003 package ros.pkg.topic_tools.srv; 00004 00005 import java.nio.ByteBuffer; 00006 00007 00008 public class MuxAdd extends ros.communication.Service<MuxAdd.Request, MuxAdd.Response> { 00009 00010 public static java.lang.String __s_getDataType() { return "topic_tools/MuxAdd"; } 00011 public static java.lang.String __s_getMD5Sum() { return "d8f94bae31b356b24d0427f80426d0c3"; } 00012 00013 public java.lang.String getDataType() { return MuxAdd.__s_getDataType(); } 00014 public java.lang.String getMD5Sum() { return MuxAdd.__s_getMD5Sum(); } 00015 00016 public MuxAdd.Request createRequest() { 00017 return new MuxAdd.Request(); 00018 } 00019 00020 public MuxAdd.Response createResponse() { 00021 return new MuxAdd.Response(); 00022 } 00023 00024 static public class Request extends ros.communication.Message { 00025 00026 public java.lang.String topic = new java.lang.String(); 00027 00028 public Request() { 00029 } 00030 00031 public static java.lang.String __s_getDataType() { return "topic_tools/MuxAddRequest"; } 00032 public java.lang.String getDataType() { return __s_getDataType(); } 00033 public static java.lang.String __s_getMD5Sum() { return "d8f94bae31b356b24d0427f80426d0c3"; } 00034 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); } 00035 public static java.lang.String __s_getServerMD5Sum() { return "d8f94bae31b356b24d0427f80426d0c3"; } 00036 public java.lang.String getServerMD5Sum() { return __s_getServerMD5Sum(); } 00037 public static java.lang.String __s_getMessageDefinition() { return "string topic\n" + 00038 "\n" + 00039 ""; } 00040 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); } 00041 00042 public Request clone() { 00043 Request c = new Request(); 00044 c.deserialize(serialize(0)); 00045 return c; 00046 } 00047 00048 public void setTo(ros.communication.Message m) { 00049 deserialize(m.serialize(0)); 00050 } 00051 00052 public int serializationLength() { 00053 int __l = 0; 00054 __l += 4 + topic.length(); 00055 return __l; 00056 } 00057 00058 public void serialize(ByteBuffer bb, int seq) { 00059 Serialization.writeString(bb, topic); 00060 } 00061 00062 public void deserialize(ByteBuffer bb) { 00063 topic = Serialization.readString(bb); 00064 } 00065 00066 @SuppressWarnings("all") 00067 public boolean equals(Object o) { 00068 if(!(o instanceof Request)) 00069 return false; 00070 Request other = (Request) o; 00071 return 00072 topic.equals(other.topic) && 00073 true; 00074 } 00075 00076 @SuppressWarnings("all") 00077 public int hashCode() { 00078 final int prime = 31; 00079 int result = 1; 00080 long tmp; 00081 result = prime * result + (this.topic == null ? 0 : this.topic.hashCode()); 00082 return result; 00083 } 00084 } // class Request 00085 00086 static public class Response extends ros.communication.Message { 00087 00088 00089 public Response() { 00090 } 00091 00092 public static java.lang.String __s_getDataType() { return "topic_tools/MuxAddResponse"; } 00093 public java.lang.String getDataType() { return __s_getDataType(); } 00094 public static java.lang.String __s_getMD5Sum() { return "d41d8cd98f00b204e9800998ecf8427e"; } 00095 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); } 00096 public static java.lang.String __s_getServerMD5Sum() { return "d8f94bae31b356b24d0427f80426d0c3"; } 00097 public java.lang.String getServerMD5Sum() { return __s_getServerMD5Sum(); } 00098 public static java.lang.String __s_getMessageDefinition() { return "\n" + 00099 "\n" + 00100 ""; } 00101 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); } 00102 00103 public Response clone() { 00104 Response c = new Response(); 00105 c.deserialize(serialize(0)); 00106 return c; 00107 } 00108 00109 public void setTo(ros.communication.Message m) { 00110 deserialize(m.serialize(0)); 00111 } 00112 00113 public int serializationLength() { 00114 int __l = 0; 00115 return __l; 00116 } 00117 00118 public void serialize(ByteBuffer bb, int seq) { 00119 } 00120 00121 public void deserialize(ByteBuffer bb) { 00122 } 00123 00124 @SuppressWarnings("all") 00125 public boolean equals(Object o) { 00126 if(!(o instanceof Response)) 00127 return false; 00128 Response other = (Response) o; 00129 return 00130 true; 00131 } 00132 00133 @SuppressWarnings("all") 00134 public int hashCode() { 00135 final int prime = 31; 00136 int result = 1; 00137 long tmp; 00138 return result; 00139 } 00140 } // class Response 00141 00142 } //class 00143