Project: engagement_generation License: BSD Dependencies:
Used by:
None |
engagement_generation/msg_gen/java/ros/pkg/engagement_msgs/msg/APAction.javaGo to the documentation of this file.00001 /* Auto-generated by genmsg_java.py for file /home/mel/workspace/ros_stacks/engagement/engagement_msgs/msg/APAction.msg */ 00002 00003 package ros.pkg.engagement_msgs.msg; 00004 00005 import java.nio.ByteBuffer; 00006 00007 public class APAction extends ros.communication.Message { 00008 static public final byte NO_ACTION = -1; 00009 static public final byte NOD = 0; 00010 static public final byte SHAKE = 1; 00011 static public final byte SPEECH = 2; 00012 static public final byte POINT = 3; 00013 static public final byte LOOK = 4; 00014 static public final byte EXTENDED_ACTION = 5; 00015 00016 public byte value; 00017 public java.lang.String data = new java.lang.String(); 00018 00019 public APAction() { 00020 } 00021 00022 public static java.lang.String __s_getDataType() { return "engagement_msgs/APAction"; } 00023 public java.lang.String getDataType() { return __s_getDataType(); } 00024 public static java.lang.String __s_getMD5Sum() { return "42f9689d85fd76c170a8ffd616566465"; } 00025 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); } 00026 public static java.lang.String __s_getMessageDefinition() { return "# Declare constants for the different actions\n" + 00027 "int8 NO_ACTION=-1\n" + 00028 "int8 NOD=0\n" + 00029 "int8 SHAKE=1\n" + 00030 "int8 SPEECH=2\n" + 00031 "int8 POINT=3\n" + 00032 "int8 LOOK=4\n" + 00033 "int8 EXTENDED_ACTION=5\n" + 00034 "\n" + 00035 "# What action the human used to complete the adjacency pair\n" + 00036 "int8 value\n" + 00037 "\n" + 00038 "# Additional data for this action\n" + 00039 "string data\n" + 00040 ""; } 00041 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); } 00042 00043 public APAction clone() { 00044 APAction c = new APAction(); 00045 c.deserialize(serialize(0)); 00046 return c; 00047 } 00048 00049 public void setTo(ros.communication.Message m) { 00050 deserialize(m.serialize(0)); 00051 } 00052 00053 public int serializationLength() { 00054 int __l = 0; 00055 __l += 1; // value 00056 __l += 4 + data.length(); 00057 return __l; 00058 } 00059 00060 public void serialize(ByteBuffer bb, int seq) { 00061 bb.put(value); 00062 Serialization.writeString(bb, data); 00063 } 00064 00065 public void deserialize(ByteBuffer bb) { 00066 value = bb.get(); 00067 data = Serialization.readString(bb); 00068 } 00069 00070 @SuppressWarnings("all") 00071 public boolean equals(Object o) { 00072 if(!(o instanceof APAction)) 00073 return false; 00074 APAction other = (APAction) o; 00075 return 00076 value == other.value && 00077 data.equals(other.data) && 00078 true; 00079 } 00080 00081 @SuppressWarnings("all") 00082 public int hashCode() { 00083 final int prime = 31; 00084 int result = 1; 00085 long tmp; 00086 result = prime * result + this.value; 00087 result = prime * result + (this.data == null ? 0 : this.data.hashCode()); 00088 return result; 00089 } 00090 } // class APAction 00091 |