00001 """autogenerated by genmsg_py from nav_actionGoal.msg. Do not edit."""
00002 import roslib.message
00003 import struct
00004
00005 import std_msgs.msg
00006
00007 class nav_actionGoal(roslib.message.Message):
00008 _md5sum = "ca1b443adebf0d1bcf1510f73ee9f389"
00009 _type = "navp_action/nav_actionGoal"
00010 _has_header = False
00011 _full_text = """# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00012 #goal definition
00013 std_msgs/UInt64 target_lo
00014
00015 ================================================================================
00016 MSG: std_msgs/UInt64
00017 uint64 data
00018 """
00019 __slots__ = ['target_lo']
00020 _slot_types = ['std_msgs/UInt64']
00021
00022 def __init__(self, *args, **kwds):
00023 """
00024 Constructor. Any message fields that are implicitly/explicitly
00025 set to None will be assigned a default value. The recommend
00026 use is keyword arguments as this is more robust to future message
00027 changes. You cannot mix in-order arguments and keyword arguments.
00028
00029 The available fields are:
00030 target_lo
00031
00032 @param args: complete set of field values, in .msg order
00033 @param kwds: use keyword arguments corresponding to message field names
00034 to set specific fields.
00035 """
00036 if args or kwds:
00037 super(nav_actionGoal, self).__init__(*args, **kwds)
00038
00039 if self.target_lo is None:
00040 self.target_lo = std_msgs.msg.UInt64()
00041 else:
00042 self.target_lo = std_msgs.msg.UInt64()
00043
00044 def _get_types(self):
00045 """
00046 internal API method
00047 """
00048 return self._slot_types
00049
00050 def serialize(self, buff):
00051 """
00052 serialize message into buffer
00053 @param buff: buffer
00054 @type buff: StringIO
00055 """
00056 try:
00057 buff.write(_struct_Q.pack(self.target_lo.data))
00058 except struct.error, se: self._check_types(se)
00059 except TypeError, te: self._check_types(te)
00060
00061 def deserialize(self, str):
00062 """
00063 unpack serialized message in str into this message instance
00064 @param str: byte array of serialized message
00065 @type str: str
00066 """
00067 try:
00068 if self.target_lo is None:
00069 self.target_lo = std_msgs.msg.UInt64()
00070 end = 0
00071 start = end
00072 end += 8
00073 (self.target_lo.data,) = _struct_Q.unpack(str[start:end])
00074 return self
00075 except struct.error, e:
00076 raise roslib.message.DeserializationError(e)
00077
00078
00079 def serialize_numpy(self, buff, numpy):
00080 """
00081 serialize message with numpy array types into buffer
00082 @param buff: buffer
00083 @type buff: StringIO
00084 @param numpy: numpy python module
00085 @type numpy module
00086 """
00087 try:
00088 buff.write(_struct_Q.pack(self.target_lo.data))
00089 except struct.error, se: self._check_types(se)
00090 except TypeError, te: self._check_types(te)
00091
00092 def deserialize_numpy(self, str, numpy):
00093 """
00094 unpack serialized message in str into this message instance using numpy for array types
00095 @param str: byte array of serialized message
00096 @type str: str
00097 @param numpy: numpy python module
00098 @type numpy: module
00099 """
00100 try:
00101 if self.target_lo is None:
00102 self.target_lo = std_msgs.msg.UInt64()
00103 end = 0
00104 start = end
00105 end += 8
00106 (self.target_lo.data,) = _struct_Q.unpack(str[start:end])
00107 return self
00108 except struct.error, e:
00109 raise roslib.message.DeserializationError(e)
00110
00111 _struct_I = roslib.message.struct_I
00112 _struct_Q = struct.Struct("<Q")