00001 """autogenerated by genmsg_py from GraspStatusRequest.msg. Do not edit."""
00002 import roslib.message
00003 import struct
00004
00005
00006 class GraspStatusRequest(roslib.message.Message):
00007 _md5sum = "d41d8cd98f00b204e9800998ecf8427e"
00008 _type = "object_manipulation_msgs/GraspStatusRequest"
00009 _has_header = False
00010 _full_text = """
00011
00012
00013
00014
00015
00016
00017
00018 """
00019 __slots__ = []
00020 _slot_types = []
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
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(GraspStatusRequest, self).__init__(*args, **kwds)
00038
00039 def _get_types(self):
00040 """
00041 internal API method
00042 """
00043 return self._slot_types
00044
00045 def serialize(self, buff):
00046 """
00047 serialize message into buffer
00048 @param buff: buffer
00049 @type buff: StringIO
00050 """
00051 try:
00052 pass
00053 except struct.error, se: self._check_types(se)
00054 except TypeError, te: self._check_types(te)
00055
00056 def deserialize(self, str):
00057 """
00058 unpack serialized message in str into this message instance
00059 @param str: byte array of serialized message
00060 @type str: str
00061 """
00062 try:
00063 end = 0
00064 return self
00065 except struct.error, e:
00066 raise roslib.message.DeserializationError(e)
00067
00068
00069 def serialize_numpy(self, buff, numpy):
00070 """
00071 serialize message with numpy array types into buffer
00072 @param buff: buffer
00073 @type buff: StringIO
00074 @param numpy: numpy python module
00075 @type numpy module
00076 """
00077 try:
00078 pass
00079 except struct.error, se: self._check_types(se)
00080 except TypeError, te: self._check_types(te)
00081
00082 def deserialize_numpy(self, str, numpy):
00083 """
00084 unpack serialized message in str into this message instance using numpy for array types
00085 @param str: byte array of serialized message
00086 @type str: str
00087 @param numpy: numpy python module
00088 @type numpy: module
00089 """
00090 try:
00091 end = 0
00092 return self
00093 except struct.error, e:
00094 raise roslib.message.DeserializationError(e)
00095
00096 _struct_I = roslib.message.struct_I
00097 """autogenerated by genmsg_py from GraspStatusResponse.msg. Do not edit."""
00098 import roslib.message
00099 import struct
00100
00101
00102 class GraspStatusResponse(roslib.message.Message):
00103 _md5sum = "d58cf7836f039d8e002583af45001d6d"
00104 _type = "object_manipulation_msgs/GraspStatusResponse"
00105 _has_header = False
00106 _full_text = """
00107 bool is_hand_occupied
00108
00109
00110 """
00111 __slots__ = ['is_hand_occupied']
00112 _slot_types = ['bool']
00113
00114 def __init__(self, *args, **kwds):
00115 """
00116 Constructor. Any message fields that are implicitly/explicitly
00117 set to None will be assigned a default value. The recommend
00118 use is keyword arguments as this is more robust to future message
00119 changes. You cannot mix in-order arguments and keyword arguments.
00120
00121 The available fields are:
00122 is_hand_occupied
00123
00124 @param args: complete set of field values, in .msg order
00125 @param kwds: use keyword arguments corresponding to message field names
00126 to set specific fields.
00127 """
00128 if args or kwds:
00129 super(GraspStatusResponse, self).__init__(*args, **kwds)
00130
00131 if self.is_hand_occupied is None:
00132 self.is_hand_occupied = False
00133 else:
00134 self.is_hand_occupied = False
00135
00136 def _get_types(self):
00137 """
00138 internal API method
00139 """
00140 return self._slot_types
00141
00142 def serialize(self, buff):
00143 """
00144 serialize message into buffer
00145 @param buff: buffer
00146 @type buff: StringIO
00147 """
00148 try:
00149 buff.write(_struct_B.pack(self.is_hand_occupied))
00150 except struct.error, se: self._check_types(se)
00151 except TypeError, te: self._check_types(te)
00152
00153 def deserialize(self, str):
00154 """
00155 unpack serialized message in str into this message instance
00156 @param str: byte array of serialized message
00157 @type str: str
00158 """
00159 try:
00160 end = 0
00161 start = end
00162 end += 1
00163 (self.is_hand_occupied,) = _struct_B.unpack(str[start:end])
00164 self.is_hand_occupied = bool(self.is_hand_occupied)
00165 return self
00166 except struct.error, e:
00167 raise roslib.message.DeserializationError(e)
00168
00169
00170 def serialize_numpy(self, buff, numpy):
00171 """
00172 serialize message with numpy array types into buffer
00173 @param buff: buffer
00174 @type buff: StringIO
00175 @param numpy: numpy python module
00176 @type numpy module
00177 """
00178 try:
00179 buff.write(_struct_B.pack(self.is_hand_occupied))
00180 except struct.error, se: self._check_types(se)
00181 except TypeError, te: self._check_types(te)
00182
00183 def deserialize_numpy(self, str, numpy):
00184 """
00185 unpack serialized message in str into this message instance using numpy for array types
00186 @param str: byte array of serialized message
00187 @type str: str
00188 @param numpy: numpy python module
00189 @type numpy: module
00190 """
00191 try:
00192 end = 0
00193 start = end
00194 end += 1
00195 (self.is_hand_occupied,) = _struct_B.unpack(str[start:end])
00196 self.is_hand_occupied = bool(self.is_hand_occupied)
00197 return self
00198 except struct.error, e:
00199 raise roslib.message.DeserializationError(e)
00200
00201 _struct_I = roslib.message.struct_I
00202 _struct_B = struct.Struct("<B")
00203 class GraspStatus(roslib.message.ServiceDefinition):
00204 _type = 'object_manipulation_msgs/GraspStatus'
00205 _md5sum = 'd58cf7836f039d8e002583af45001d6d'
00206 _request_class = GraspStatusRequest
00207 _response_class = GraspStatusResponse