00001
00002
00003 package ros.pkg.sensor_msgs.msg;
00004
00005 import java.nio.ByteBuffer;
00006
00007 public class NavSatStatus extends ros.communication.Message {
00008 static public final byte STATUS_NO_FIX = -1;
00009 static public final byte STATUS_FIX = 0;
00010 static public final byte STATUS_SBAS_FIX = 1;
00011 static public final byte STATUS_GBAS_FIX = 2;
00012 static public final int SERVICE_GPS = 1;
00013 static public final int SERVICE_GLONASS = 2;
00014 static public final int SERVICE_COMPASS = 4;
00015 static public final int SERVICE_GALILEO = 8;
00016
00017 public byte status;
00018 public int service;
00019
00020 public NavSatStatus() {
00021 }
00022
00023 public static java.lang.String __s_getDataType() { return "sensor_msgs/NavSatStatus"; }
00024 public java.lang.String getDataType() { return __s_getDataType(); }
00025 public static java.lang.String __s_getMD5Sum() { return "331cdbddfa4bc96ffc3b9ad98900a54c"; }
00026 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); }
00027 public static java.lang.String __s_getMessageDefinition() { return "# Navigation Satellite fix status for any Global Navigation Satellite System\n" +
00028 "\n" +
00029 "# Whether to output an augmented fix is determined by both the fix\n" +
00030 "# type and the last time differential corrections were received. A\n" +
00031 "# fix is valid when status >= STATUS_FIX.\n" +
00032 "\n" +
00033 "int8 STATUS_NO_FIX = -1 # unable to fix position\n" +
00034 "int8 STATUS_FIX = 0 # unaugmented fix\n" +
00035 "int8 STATUS_SBAS_FIX = 1 # with satellite-based augmentation\n" +
00036 "int8 STATUS_GBAS_FIX = 2 # with ground-based augmentation\n" +
00037 "\n" +
00038 "int8 status\n" +
00039 "\n" +
00040 "# Bits defining which Global Navigation Satellite System signals were\n" +
00041 "# used by the receiver.\n" +
00042 "\n" +
00043 "uint16 SERVICE_GPS = 1\n" +
00044 "uint16 SERVICE_GLONASS = 2\n" +
00045 "uint16 SERVICE_COMPASS = 4 # includes BeiDou.\n" +
00046 "uint16 SERVICE_GALILEO = 8\n" +
00047 "\n" +
00048 "uint16 service\n" +
00049 "\n" +
00050 ""; }
00051 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); }
00052
00053 public NavSatStatus clone() {
00054 NavSatStatus c = new NavSatStatus();
00055 c.deserialize(serialize(0));
00056 return c;
00057 }
00058
00059 public void setTo(ros.communication.Message m) {
00060 deserialize(m.serialize(0));
00061 }
00062
00063 public int serializationLength() {
00064 int __l = 0;
00065 __l += 1;
00066 __l += 2;
00067 return __l;
00068 }
00069
00070 public void serialize(ByteBuffer bb, int seq) {
00071 bb.put(status);
00072 bb.putShort((short)service);
00073 }
00074
00075 public void deserialize(ByteBuffer bb) {
00076 status = bb.get();
00077 service = (int)(bb.getShort() & 0xffff);
00078 }
00079
00080 @SuppressWarnings("all")
00081 public boolean equals(Object o) {
00082 if(!(o instanceof NavSatStatus))
00083 return false;
00084 NavSatStatus other = (NavSatStatus) o;
00085 return
00086 status == other.status &&
00087 service == other.service &&
00088 true;
00089 }
00090
00091 @SuppressWarnings("all")
00092 public int hashCode() {
00093 final int prime = 31;
00094 int result = 1;
00095 long tmp;
00096 result = prime * result + this.status;
00097 result = prime * result + this.service;
00098 return result;
00099 }
00100 }
00101