Project: engagement_generation License: BSD Dependencies:
Used by:
None |
engagement_generation/msg_gen/java/ros/pkg/rosgraph_msgs/msg/Log.javaGo to the documentation of this file.00001 /* Auto-generated by genmsg_java.py for file /opt/ros/diamondback/stacks/ros_comm/messages/rosgraph_msgs/msg/Log.msg */ 00002 00003 package ros.pkg.rosgraph_msgs.msg; 00004 00005 import java.nio.ByteBuffer; 00006 00007 public class Log extends ros.communication.Message { 00008 static public final short DEBUG = 1; 00009 static public final short INFO = 2; 00010 static public final short WARN = 4; 00011 static public final short ERROR = 8; 00012 static public final short FATAL = 16; 00013 00014 public ros.pkg.std_msgs.msg.Header header = new ros.pkg.std_msgs.msg.Header(); 00015 public short level; 00016 public java.lang.String name = new java.lang.String(); 00017 public java.lang.String msg = new java.lang.String(); 00018 public java.lang.String file = new java.lang.String(); 00019 public java.lang.String function = new java.lang.String(); 00020 public long line; 00021 public java.util.ArrayList<java.lang.String> topics = new java.util.ArrayList<java.lang.String>(); 00022 00023 public Log() { 00024 } 00025 00026 public static java.lang.String __s_getDataType() { return "rosgraph_msgs/Log"; } 00027 public java.lang.String getDataType() { return __s_getDataType(); } 00028 public static java.lang.String __s_getMD5Sum() { return "acffd30cd6b6de30f120938c17c593fb"; } 00029 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); } 00030 public static java.lang.String __s_getMessageDefinition() { return "##\n" + 00031 "## Severity level constants\n" + 00032 "##\n" + 00033 "byte DEBUG=1 #debug level\n" + 00034 "byte INFO=2 #general level\n" + 00035 "byte WARN=4 #warning level\n" + 00036 "byte ERROR=8 #error level\n" + 00037 "byte FATAL=16 #fatal/critical level\n" + 00038 "##\n" + 00039 "## Fields\n" + 00040 "##\n" + 00041 "Header header\n" + 00042 "byte level\n" + 00043 "string name # name of the node\n" + 00044 "string msg # message \n" + 00045 "string file # file the message came from\n" + 00046 "string function # function the message came from\n" + 00047 "uint32 line # line the message came from\n" + 00048 "string[] topics # topic names that the node publishes\n" + 00049 "\n" + 00050 "================================================================================\n" + 00051 "MSG: std_msgs/Header\n" + 00052 "# Standard metadata for higher-level stamped data types.\n" + 00053 "# This is generally used to communicate timestamped data \n" + 00054 "# in a particular coordinate frame.\n" + 00055 "# \n" + 00056 "# sequence ID: consecutively increasing ID \n" + 00057 "uint32 seq\n" + 00058 "#Two-integer timestamp that is expressed as:\n" + 00059 "# * stamp.secs: seconds (stamp_secs) since epoch\n" + 00060 "# * stamp.nsecs: nanoseconds since stamp_secs\n" + 00061 "# time-handling sugar is provided by the client library\n" + 00062 "time stamp\n" + 00063 "#Frame this data is associated with\n" + 00064 "# 0: no frame\n" + 00065 "# 1: global frame\n" + 00066 "string frame_id\n" + 00067 "\n" + 00068 ""; } 00069 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); } 00070 00071 public Log clone() { 00072 Log c = new Log(); 00073 c.deserialize(serialize(0)); 00074 return c; 00075 } 00076 00077 public void setTo(ros.communication.Message m) { 00078 deserialize(m.serialize(0)); 00079 } 00080 00081 public int serializationLength() { 00082 int __l = 0; 00083 __l += header.serializationLength(); 00084 __l += 1; // level 00085 __l += 4 + name.length(); 00086 __l += 4 + msg.length(); 00087 __l += 4 + file.length(); 00088 __l += 4 + function.length(); 00089 __l += 4; // line 00090 __l += 4; 00091 for(java.lang.String val : topics) { 00092 __l += 4 + val.length(); 00093 } 00094 return __l; 00095 } 00096 00097 public void serialize(ByteBuffer bb, int seq) { 00098 header.serialize(bb, seq); 00099 bb.put((byte)level); 00100 Serialization.writeString(bb, name); 00101 Serialization.writeString(bb, msg); 00102 Serialization.writeString(bb, file); 00103 Serialization.writeString(bb, function); 00104 bb.putInt((int)line); 00105 bb.putInt(topics.size()); 00106 for(java.lang.String val : topics) { 00107 Serialization.writeString(bb, val); 00108 } 00109 } 00110 00111 public void deserialize(ByteBuffer bb) { 00112 header.deserialize(bb); 00113 level = (short)(bb.get() & 0xff); 00114 name = Serialization.readString(bb); 00115 msg = Serialization.readString(bb); 00116 file = Serialization.readString(bb); 00117 function = Serialization.readString(bb); 00118 line = (long)(bb.getInt() & 0xffffffff); 00119 00120 int __topics_len = bb.getInt(); 00121 topics = new java.util.ArrayList<java.lang.String>(__topics_len); 00122 for(int __i=0; __i<__topics_len; __i++) { 00123 topics.add(Serialization.readString(bb)); 00124 } 00125 } 00126 00127 @SuppressWarnings("all") 00128 public boolean equals(Object o) { 00129 if(!(o instanceof Log)) 00130 return false; 00131 Log other = (Log) o; 00132 return 00133 header.equals(other.header) && 00134 level == other.level && 00135 name.equals(other.name) && 00136 msg.equals(other.msg) && 00137 file.equals(other.file) && 00138 function.equals(other.function) && 00139 line == other.line && 00140 topics.equals(other.topics) && 00141 true; 00142 } 00143 00144 @SuppressWarnings("all") 00145 public int hashCode() { 00146 final int prime = 31; 00147 int result = 1; 00148 long tmp; 00149 result = prime * result + (this.header == null ? 0 : this.header.hashCode()); 00150 result = prime * result + this.level; 00151 result = prime * result + (this.name == null ? 0 : this.name.hashCode()); 00152 result = prime * result + (this.msg == null ? 0 : this.msg.hashCode()); 00153 result = prime * result + (this.file == null ? 0 : this.file.hashCode()); 00154 result = prime * result + (this.function == null ? 0 : this.function.hashCode()); 00155 result = prime * result + (int)(this.line ^ (this.line >>> 32)); 00156 result = prime * result + (this.topics == null ? 0 : this.topics.hashCode()); 00157 return result; 00158 } 00159 } // class Log 00160 |