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