00001 /* Auto-generated by genmsg_cpp for file /opt/ros/diamondback/stacks/ros_comm/tools/topic_tools/srv/MuxSelect.srv */ 00002 00003 package ros.pkg.topic_tools.srv; 00004 00005 import java.nio.ByteBuffer; 00006 00007 00008 public class MuxSelect extends ros.communication.Service<MuxSelect.Request, MuxSelect.Response> { 00009 00010 public static java.lang.String __s_getDataType() { return "topic_tools/MuxSelect"; } 00011 public static java.lang.String __s_getMD5Sum() { return "053052240ca985e1f2eedbb0dae9b1f7"; } 00012 00013 public java.lang.String getDataType() { return MuxSelect.__s_getDataType(); } 00014 public java.lang.String getMD5Sum() { return MuxSelect.__s_getMD5Sum(); } 00015 00016 public MuxSelect.Request createRequest() { 00017 return new MuxSelect.Request(); 00018 } 00019 00020 public MuxSelect.Response createResponse() { 00021 return new MuxSelect.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/MuxSelectRequest"; } 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 "053052240ca985e1f2eedbb0dae9b1f7"; } 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 public java.lang.String prev_topic = new java.lang.String(); 00089 00090 public Response() { 00091 } 00092 00093 public static java.lang.String __s_getDataType() { return "topic_tools/MuxSelectResponse"; } 00094 public java.lang.String getDataType() { return __s_getDataType(); } 00095 public static java.lang.String __s_getMD5Sum() { return "3db0a473debdbafea387c9e49358c320"; } 00096 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); } 00097 public static java.lang.String __s_getServerMD5Sum() { return "053052240ca985e1f2eedbb0dae9b1f7"; } 00098 public java.lang.String getServerMD5Sum() { return __s_getServerMD5Sum(); } 00099 public static java.lang.String __s_getMessageDefinition() { return "string prev_topic\n" + 00100 "\n" + 00101 "\n" + 00102 ""; } 00103 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); } 00104 00105 public Response clone() { 00106 Response c = new Response(); 00107 c.deserialize(serialize(0)); 00108 return c; 00109 } 00110 00111 public void setTo(ros.communication.Message m) { 00112 deserialize(m.serialize(0)); 00113 } 00114 00115 public int serializationLength() { 00116 int __l = 0; 00117 __l += 4 + prev_topic.length(); 00118 return __l; 00119 } 00120 00121 public void serialize(ByteBuffer bb, int seq) { 00122 Serialization.writeString(bb, prev_topic); 00123 } 00124 00125 public void deserialize(ByteBuffer bb) { 00126 prev_topic = Serialization.readString(bb); 00127 } 00128 00129 @SuppressWarnings("all") 00130 public boolean equals(Object o) { 00131 if(!(o instanceof Response)) 00132 return false; 00133 Response other = (Response) o; 00134 return 00135 prev_topic.equals(other.prev_topic) && 00136 true; 00137 } 00138 00139 @SuppressWarnings("all") 00140 public int hashCode() { 00141 final int prime = 31; 00142 int result = 1; 00143 long tmp; 00144 result = prime * result + (this.prev_topic == null ? 0 : this.prev_topic.hashCode()); 00145 return result; 00146 } 00147 } // class Response 00148 00149 } //class 00150