Go to the documentation of this file.00001 """autogenerated by genpy from pr2_gripper_sensor_msgs/PR2GripperSlipServoGoal.msg. Do not edit."""
00002 import sys
00003 python3 = True if sys.hexversion > 0x03000000 else False
00004 import genpy
00005 import struct
00006
00007 import pr2_gripper_sensor_msgs.msg
00008
00009 class PR2GripperSlipServoGoal(genpy.Message):
00010 _md5sum = "bf76e656d304158c04ab279db7cefc85"
00011 _type = "pr2_gripper_sensor_msgs/PR2GripperSlipServoGoal"
00012 _has_header = False
00013 _full_text = """# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00014 # Action to launch the gripper into slip servoing mode
00015
00016 #goals
00017 PR2GripperSlipServoCommand command
00018
00019 ================================================================================
00020 MSG: pr2_gripper_sensor_msgs/PR2GripperSlipServoCommand
00021 # this command is currently blank, but may see additional variable
00022 # additions in the future
00023
00024 # see the param server documentation for a list of variables that effect
00025 # slip servo performance
00026 """
00027 __slots__ = ['command']
00028 _slot_types = ['pr2_gripper_sensor_msgs/PR2GripperSlipServoCommand']
00029
00030 def __init__(self, *args, **kwds):
00031 """
00032 Constructor. Any message fields that are implicitly/explicitly
00033 set to None will be assigned a default value. The recommend
00034 use is keyword arguments as this is more robust to future message
00035 changes. You cannot mix in-order arguments and keyword arguments.
00036
00037 The available fields are:
00038 command
00039
00040 :param args: complete set of field values, in .msg order
00041 :param kwds: use keyword arguments corresponding to message field names
00042 to set specific fields.
00043 """
00044 if args or kwds:
00045 super(PR2GripperSlipServoGoal, self).__init__(*args, **kwds)
00046
00047 if self.command is None:
00048 self.command = pr2_gripper_sensor_msgs.msg.PR2GripperSlipServoCommand()
00049 else:
00050 self.command = pr2_gripper_sensor_msgs.msg.PR2GripperSlipServoCommand()
00051
00052 def _get_types(self):
00053 """
00054 internal API method
00055 """
00056 return self._slot_types
00057
00058 def serialize(self, buff):
00059 """
00060 serialize message into buffer
00061 :param buff: buffer, ``StringIO``
00062 """
00063 try:
00064 pass
00065 except struct.error as se: self._check_types(se)
00066 except TypeError as te: self._check_types(te)
00067
00068 def deserialize(self, str):
00069 """
00070 unpack serialized message in str into this message instance
00071 :param str: byte array of serialized message, ``str``
00072 """
00073 try:
00074 if self.command is None:
00075 self.command = pr2_gripper_sensor_msgs.msg.PR2GripperSlipServoCommand()
00076 end = 0
00077 return self
00078 except struct.error as e:
00079 raise genpy.DeserializationError(e)
00080
00081
00082 def serialize_numpy(self, buff, numpy):
00083 """
00084 serialize message with numpy array types into buffer
00085 :param buff: buffer, ``StringIO``
00086 :param numpy: numpy python module
00087 """
00088 try:
00089 pass
00090 except struct.error as se: self._check_types(se)
00091 except TypeError as te: self._check_types(te)
00092
00093 def deserialize_numpy(self, str, numpy):
00094 """
00095 unpack serialized message in str into this message instance using numpy for array types
00096 :param str: byte array of serialized message, ``str``
00097 :param numpy: numpy python module
00098 """
00099 try:
00100 if self.command is None:
00101 self.command = pr2_gripper_sensor_msgs.msg.PR2GripperSlipServoCommand()
00102 end = 0
00103 return self
00104 except struct.error as e:
00105 raise genpy.DeserializationError(e)
00106
00107 _struct_I = genpy.struct_I