00001 """autogenerated by genmsg_py from GetGroupInfoRequest.msg. Do not edit."""
00002 import roslib.message
00003 import struct
00004
00005
00006 class GetGroupInfoRequest(roslib.message.Message):
00007 _md5sum = "967d0b0c0d858ded8a6a69abbce0c981"
00008 _type = "planning_environment_msgs/GetGroupInfoRequest"
00009 _has_header = False
00010 _full_text = """
00011
00012
00013
00014
00015
00016
00017 string group_name
00018
00019
00020 """
00021 __slots__ = ['group_name']
00022 _slot_types = ['string']
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 group_name
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(GetGroupInfoRequest, self).__init__(*args, **kwds)
00040
00041 if self.group_name is None:
00042 self.group_name = ''
00043 else:
00044 self.group_name = ''
00045
00046 def _get_types(self):
00047 """
00048 internal API method
00049 """
00050 return self._slot_types
00051
00052 def serialize(self, buff):
00053 """
00054 serialize message into buffer
00055 @param buff: buffer
00056 @type buff: StringIO
00057 """
00058 try:
00059 _x = self.group_name
00060 length = len(_x)
00061 buff.write(struct.pack('<I%ss'%length, length, _x))
00062 except struct.error, se: self._check_types(se)
00063 except TypeError, te: self._check_types(te)
00064
00065 def deserialize(self, str):
00066 """
00067 unpack serialized message in str into this message instance
00068 @param str: byte array of serialized message
00069 @type str: str
00070 """
00071 try:
00072 end = 0
00073 start = end
00074 end += 4
00075 (length,) = _struct_I.unpack(str[start:end])
00076 start = end
00077 end += length
00078 self.group_name = str[start:end]
00079 return self
00080 except struct.error, e:
00081 raise roslib.message.DeserializationError(e)
00082
00083
00084 def serialize_numpy(self, buff, numpy):
00085 """
00086 serialize message with numpy array types into buffer
00087 @param buff: buffer
00088 @type buff: StringIO
00089 @param numpy: numpy python module
00090 @type numpy module
00091 """
00092 try:
00093 _x = self.group_name
00094 length = len(_x)
00095 buff.write(struct.pack('<I%ss'%length, length, _x))
00096 except struct.error, se: self._check_types(se)
00097 except TypeError, te: self._check_types(te)
00098
00099 def deserialize_numpy(self, str, numpy):
00100 """
00101 unpack serialized message in str into this message instance using numpy for array types
00102 @param str: byte array of serialized message
00103 @type str: str
00104 @param numpy: numpy python module
00105 @type numpy: module
00106 """
00107 try:
00108 end = 0
00109 start = end
00110 end += 4
00111 (length,) = _struct_I.unpack(str[start:end])
00112 start = end
00113 end += length
00114 self.group_name = str[start:end]
00115 return self
00116 except struct.error, e:
00117 raise roslib.message.DeserializationError(e)
00118
00119 _struct_I = roslib.message.struct_I
00120 """autogenerated by genmsg_py from GetGroupInfoResponse.msg. Do not edit."""
00121 import roslib.message
00122 import struct
00123
00124 import motion_planning_msgs.msg
00125
00126 class GetGroupInfoResponse(roslib.message.Message):
00127 _md5sum = "65f397a9c63c76b7f5a87fbdac0c50a1"
00128 _type = "planning_environment_msgs/GetGroupInfoResponse"
00129 _has_header = False
00130 _full_text = """
00131
00132 string[] joint_names
00133
00134
00135 string[] link_names
00136
00137
00138
00139
00140 motion_planning_msgs/ArmNavigationErrorCodes error_code
00141
00142
00143 ================================================================================
00144 MSG: motion_planning_msgs/ArmNavigationErrorCodes
00145 int32 val
00146
00147 # overall behavior
00148 int32 PLANNING_FAILED=-1
00149 int32 SUCCESS=1
00150 int32 TIMED_OUT=-2
00151
00152 # start state errors
00153 int32 START_STATE_IN_COLLISION=-3
00154 int32 START_STATE_VIOLATES_PATH_CONSTRAINTS=-4
00155
00156 # goal errors
00157 int32 GOAL_IN_COLLISION=-5
00158 int32 GOAL_VIOLATES_PATH_CONSTRAINTS=-6
00159
00160 # robot state
00161 int32 INVALID_ROBOT_STATE=-7
00162 int32 INCOMPLETE_ROBOT_STATE=-8
00163
00164 # planning request errors
00165 int32 INVALID_PLANNER_ID=-9
00166 int32 INVALID_NUM_PLANNING_ATTEMPTS=-10
00167 int32 INVALID_ALLOWED_PLANNING_TIME=-11
00168 int32 INVALID_GROUP_NAME=-12
00169 int32 INVALID_GOAL_JOINT_CONSTRAINTS=-13
00170 int32 INVALID_GOAL_POSITION_CONSTRAINTS=-14
00171 int32 INVALID_GOAL_ORIENTATION_CONSTRAINTS=-15
00172 int32 INVALID_PATH_JOINT_CONSTRAINTS=-16
00173 int32 INVALID_PATH_POSITION_CONSTRAINTS=-17
00174 int32 INVALID_PATH_ORIENTATION_CONSTRAINTS=-18
00175
00176 # state/trajectory monitor errors
00177 int32 INVALID_TRAJECTORY=-19
00178 int32 INVALID_INDEX=-20
00179 int32 JOINT_LIMITS_VIOLATED=-21
00180 int32 PATH_CONSTRAINTS_VIOLATED=-22
00181 int32 COLLISION_CONSTRAINTS_VIOLATED=-23
00182 int32 GOAL_CONSTRAINTS_VIOLATED=-24
00183 int32 JOINTS_NOT_MOVING=-25
00184 int32 TRAJECTORY_CONTROLLER_FAILED=-26
00185
00186 # system errors
00187 int32 FRAME_TRANSFORM_FAILURE=-27
00188 int32 COLLISION_CHECKING_UNAVAILABLE=-28
00189 int32 ROBOT_STATE_STALE=-29
00190 int32 SENSOR_INFO_STALE=-30
00191
00192 # kinematics errors
00193 int32 NO_IK_SOLUTION=-31
00194 int32 INVALID_LINK_NAME=-32
00195 int32 IK_LINK_IN_COLLISION=-33
00196 int32 NO_FK_SOLUTION=-34
00197 int32 KINEMATICS_STATE_IN_COLLISION=-35
00198
00199 # general errors
00200 int32 INVALID_TIMEOUT=-36
00201
00202
00203 """
00204 __slots__ = ['joint_names','link_names','error_code']
00205 _slot_types = ['string[]','string[]','motion_planning_msgs/ArmNavigationErrorCodes']
00206
00207 def __init__(self, *args, **kwds):
00208 """
00209 Constructor. Any message fields that are implicitly/explicitly
00210 set to None will be assigned a default value. The recommend
00211 use is keyword arguments as this is more robust to future message
00212 changes. You cannot mix in-order arguments and keyword arguments.
00213
00214 The available fields are:
00215 joint_names,link_names,error_code
00216
00217 @param args: complete set of field values, in .msg order
00218 @param kwds: use keyword arguments corresponding to message field names
00219 to set specific fields.
00220 """
00221 if args or kwds:
00222 super(GetGroupInfoResponse, self).__init__(*args, **kwds)
00223
00224 if self.joint_names is None:
00225 self.joint_names = []
00226 if self.link_names is None:
00227 self.link_names = []
00228 if self.error_code is None:
00229 self.error_code = motion_planning_msgs.msg.ArmNavigationErrorCodes()
00230 else:
00231 self.joint_names = []
00232 self.link_names = []
00233 self.error_code = motion_planning_msgs.msg.ArmNavigationErrorCodes()
00234
00235 def _get_types(self):
00236 """
00237 internal API method
00238 """
00239 return self._slot_types
00240
00241 def serialize(self, buff):
00242 """
00243 serialize message into buffer
00244 @param buff: buffer
00245 @type buff: StringIO
00246 """
00247 try:
00248 length = len(self.joint_names)
00249 buff.write(_struct_I.pack(length))
00250 for val1 in self.joint_names:
00251 length = len(val1)
00252 buff.write(struct.pack('<I%ss'%length, length, val1))
00253 length = len(self.link_names)
00254 buff.write(_struct_I.pack(length))
00255 for val1 in self.link_names:
00256 length = len(val1)
00257 buff.write(struct.pack('<I%ss'%length, length, val1))
00258 buff.write(_struct_i.pack(self.error_code.val))
00259 except struct.error, se: self._check_types(se)
00260 except TypeError, te: self._check_types(te)
00261
00262 def deserialize(self, str):
00263 """
00264 unpack serialized message in str into this message instance
00265 @param str: byte array of serialized message
00266 @type str: str
00267 """
00268 try:
00269 if self.error_code is None:
00270 self.error_code = motion_planning_msgs.msg.ArmNavigationErrorCodes()
00271 end = 0
00272 start = end
00273 end += 4
00274 (length,) = _struct_I.unpack(str[start:end])
00275 self.joint_names = []
00276 for i in xrange(0, length):
00277 start = end
00278 end += 4
00279 (length,) = _struct_I.unpack(str[start:end])
00280 start = end
00281 end += length
00282 val1 = str[start:end]
00283 self.joint_names.append(val1)
00284 start = end
00285 end += 4
00286 (length,) = _struct_I.unpack(str[start:end])
00287 self.link_names = []
00288 for i in xrange(0, length):
00289 start = end
00290 end += 4
00291 (length,) = _struct_I.unpack(str[start:end])
00292 start = end
00293 end += length
00294 val1 = str[start:end]
00295 self.link_names.append(val1)
00296 start = end
00297 end += 4
00298 (self.error_code.val,) = _struct_i.unpack(str[start:end])
00299 return self
00300 except struct.error, e:
00301 raise roslib.message.DeserializationError(e)
00302
00303
00304 def serialize_numpy(self, buff, numpy):
00305 """
00306 serialize message with numpy array types into buffer
00307 @param buff: buffer
00308 @type buff: StringIO
00309 @param numpy: numpy python module
00310 @type numpy module
00311 """
00312 try:
00313 length = len(self.joint_names)
00314 buff.write(_struct_I.pack(length))
00315 for val1 in self.joint_names:
00316 length = len(val1)
00317 buff.write(struct.pack('<I%ss'%length, length, val1))
00318 length = len(self.link_names)
00319 buff.write(_struct_I.pack(length))
00320 for val1 in self.link_names:
00321 length = len(val1)
00322 buff.write(struct.pack('<I%ss'%length, length, val1))
00323 buff.write(_struct_i.pack(self.error_code.val))
00324 except struct.error, se: self._check_types(se)
00325 except TypeError, te: self._check_types(te)
00326
00327 def deserialize_numpy(self, str, numpy):
00328 """
00329 unpack serialized message in str into this message instance using numpy for array types
00330 @param str: byte array of serialized message
00331 @type str: str
00332 @param numpy: numpy python module
00333 @type numpy: module
00334 """
00335 try:
00336 if self.error_code is None:
00337 self.error_code = motion_planning_msgs.msg.ArmNavigationErrorCodes()
00338 end = 0
00339 start = end
00340 end += 4
00341 (length,) = _struct_I.unpack(str[start:end])
00342 self.joint_names = []
00343 for i in xrange(0, length):
00344 start = end
00345 end += 4
00346 (length,) = _struct_I.unpack(str[start:end])
00347 start = end
00348 end += length
00349 val1 = str[start:end]
00350 self.joint_names.append(val1)
00351 start = end
00352 end += 4
00353 (length,) = _struct_I.unpack(str[start:end])
00354 self.link_names = []
00355 for i in xrange(0, length):
00356 start = end
00357 end += 4
00358 (length,) = _struct_I.unpack(str[start:end])
00359 start = end
00360 end += length
00361 val1 = str[start:end]
00362 self.link_names.append(val1)
00363 start = end
00364 end += 4
00365 (self.error_code.val,) = _struct_i.unpack(str[start:end])
00366 return self
00367 except struct.error, e:
00368 raise roslib.message.DeserializationError(e)
00369
00370 _struct_I = roslib.message.struct_I
00371 _struct_i = struct.Struct("<i")
00372 class GetGroupInfo(roslib.message.ServiceDefinition):
00373 _type = 'planning_environment_msgs/GetGroupInfo'
00374 _md5sum = 'ea5e90e42fb70a06b53bacff792b6742'
00375 _request_class = GetGroupInfoRequest
00376 _response_class = GetGroupInfoResponse