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