Project: engagement_generation License: BSD Dependencies:
Used by:
None |
engagement_generation/msg_gen/java/ros/pkg/rosgraph_msgs/msg/Clock.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/Clock.msg */ 00002 00003 package ros.pkg.rosgraph_msgs.msg; 00004 00005 import java.nio.ByteBuffer; 00006 00007 public class Clock extends ros.communication.Message { 00008 00009 public ros.communication.Time clock = new ros.communication.Time(); 00010 00011 public Clock() { 00012 } 00013 00014 public static java.lang.String __s_getDataType() { return "rosgraph_msgs/Clock"; } 00015 public java.lang.String getDataType() { return __s_getDataType(); } 00016 public static java.lang.String __s_getMD5Sum() { return "a9c97c1d230cfc112e270351a944ee47"; } 00017 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); } 00018 public static java.lang.String __s_getMessageDefinition() { return "# roslib/Clock is used for publishing simulated time in ROS. \n" + 00019 "# This message simply communicates the current time.\n" + 00020 "# For more information, see http://www.ros.org/wiki/Clock\n" + 00021 "time clock\n" + 00022 "\n" + 00023 ""; } 00024 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); } 00025 00026 public Clock clone() { 00027 Clock c = new Clock(); 00028 c.deserialize(serialize(0)); 00029 return c; 00030 } 00031 00032 public void setTo(ros.communication.Message m) { 00033 deserialize(m.serialize(0)); 00034 } 00035 00036 public int serializationLength() { 00037 int __l = 0; 00038 __l += 8; // clock 00039 return __l; 00040 } 00041 00042 public void serialize(ByteBuffer bb, int seq) { 00043 Serialization.writeTime(bb, clock); 00044 } 00045 00046 public void deserialize(ByteBuffer bb) { 00047 clock = Serialization.readTime(bb); 00048 } 00049 00050 @SuppressWarnings("all") 00051 public boolean equals(Object o) { 00052 if(!(o instanceof Clock)) 00053 return false; 00054 Clock other = (Clock) o; 00055 return 00056 clock.equals(other.clock) && 00057 true; 00058 } 00059 00060 @SuppressWarnings("all") 00061 public int hashCode() { 00062 final int prime = 31; 00063 int result = 1; 00064 long tmp; 00065 result = prime * result + (this.clock == null ? 0 : this.clock.hashCode()); 00066 return result; 00067 } 00068 } // class Clock 00069 |