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