_ManualArmManipFeedback.py
Go to the documentation of this file.
00001 """autogenerated by genpy from srs_assisted_arm_navigation_msgs/ManualArmManipFeedback.msg. Do not edit."""
00002 import sys
00003 python3 = True if sys.hexversion > 0x03000000 else False
00004 import genpy
00005 import struct
00006 
00007 
00008 class ManualArmManipFeedback(genpy.Message):
00009   _md5sum = "ed2e21aa21fafbcd2657d0eaa59c1468"
00010   _type = "srs_assisted_arm_navigation_msgs/ManualArmManipFeedback"
00011   _has_header = False #flag to mark the presence of a Header object
00012   _full_text = """# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00013 # feedback
00014 bool starting
00015 bool planning
00016 bool executing
00017 bool reset
00018 
00019 
00020 """
00021   __slots__ = ['starting','planning','executing','reset']
00022   _slot_types = ['bool','bool','bool','bool']
00023 
00024   def __init__(self, *args, **kwds):
00025     """
00026     Constructor. Any message fields that are implicitly/explicitly
00027     set to None will be assigned a default value. The recommend
00028     use is keyword arguments as this is more robust to future message
00029     changes.  You cannot mix in-order arguments and keyword arguments.
00030 
00031     The available fields are:
00032        starting,planning,executing,reset
00033 
00034     :param args: complete set of field values, in .msg order
00035     :param kwds: use keyword arguments corresponding to message field names
00036     to set specific fields.
00037     """
00038     if args or kwds:
00039       super(ManualArmManipFeedback, self).__init__(*args, **kwds)
00040       #message fields cannot be None, assign default values for those that are
00041       if self.starting is None:
00042         self.starting = False
00043       if self.planning is None:
00044         self.planning = False
00045       if self.executing is None:
00046         self.executing = False
00047       if self.reset is None:
00048         self.reset = False
00049     else:
00050       self.starting = False
00051       self.planning = False
00052       self.executing = False
00053       self.reset = False
00054 
00055   def _get_types(self):
00056     """
00057     internal API method
00058     """
00059     return self._slot_types
00060 
00061   def serialize(self, buff):
00062     """
00063     serialize message into buffer
00064     :param buff: buffer, ``StringIO``
00065     """
00066     try:
00067       _x = self
00068       buff.write(_struct_4B.pack(_x.starting, _x.planning, _x.executing, _x.reset))
00069     except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(_x))))
00070     except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(_x))))
00071 
00072   def deserialize(self, str):
00073     """
00074     unpack serialized message in str into this message instance
00075     :param str: byte array of serialized message, ``str``
00076     """
00077     try:
00078       end = 0
00079       _x = self
00080       start = end
00081       end += 4
00082       (_x.starting, _x.planning, _x.executing, _x.reset,) = _struct_4B.unpack(str[start:end])
00083       self.starting = bool(self.starting)
00084       self.planning = bool(self.planning)
00085       self.executing = bool(self.executing)
00086       self.reset = bool(self.reset)
00087       return self
00088     except struct.error as e:
00089       raise genpy.DeserializationError(e) #most likely buffer underfill
00090 
00091 
00092   def serialize_numpy(self, buff, numpy):
00093     """
00094     serialize message with numpy array types into buffer
00095     :param buff: buffer, ``StringIO``
00096     :param numpy: numpy python module
00097     """
00098     try:
00099       _x = self
00100       buff.write(_struct_4B.pack(_x.starting, _x.planning, _x.executing, _x.reset))
00101     except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(_x))))
00102     except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(_x))))
00103 
00104   def deserialize_numpy(self, str, numpy):
00105     """
00106     unpack serialized message in str into this message instance using numpy for array types
00107     :param str: byte array of serialized message, ``str``
00108     :param numpy: numpy python module
00109     """
00110     try:
00111       end = 0
00112       _x = self
00113       start = end
00114       end += 4
00115       (_x.starting, _x.planning, _x.executing, _x.reset,) = _struct_4B.unpack(str[start:end])
00116       self.starting = bool(self.starting)
00117       self.planning = bool(self.planning)
00118       self.executing = bool(self.executing)
00119       self.reset = bool(self.reset)
00120       return self
00121     except struct.error as e:
00122       raise genpy.DeserializationError(e) #most likely buffer underfill
00123 
00124 _struct_I = genpy.struct_I
00125 _struct_4B = struct.Struct("<4B")


srs_assisted_arm_navigation_msgs
Author(s): Zdenek Materna
autogenerated on Mon Oct 6 2014 08:09:35