00001 """autogenerated by genmsg_py from GetEnvironmentSafetyRequest.msg. Do not edit."""
00002 import roslib.message
00003 import struct
00004
00005
00006 class GetEnvironmentSafetyRequest(roslib.message.Message):
00007 _md5sum = "d41d8cd98f00b204e9800998ecf8427e"
00008 _type = "planning_environment_msgs/GetEnvironmentSafetyRequest"
00009 _has_header = False
00010 _full_text = """
00011
00012
00013
00014
00015 """
00016 __slots__ = []
00017 _slot_types = []
00018
00019 def __init__(self, *args, **kwds):
00020 """
00021 Constructor. Any message fields that are implicitly/explicitly
00022 set to None will be assigned a default value. The recommend
00023 use is keyword arguments as this is more robust to future message
00024 changes. You cannot mix in-order arguments and keyword arguments.
00025
00026 The available fields are:
00027
00028
00029 @param args: complete set of field values, in .msg order
00030 @param kwds: use keyword arguments corresponding to message field names
00031 to set specific fields.
00032 """
00033 if args or kwds:
00034 super(GetEnvironmentSafetyRequest, self).__init__(*args, **kwds)
00035
00036 def _get_types(self):
00037 """
00038 internal API method
00039 """
00040 return self._slot_types
00041
00042 def serialize(self, buff):
00043 """
00044 serialize message into buffer
00045 @param buff: buffer
00046 @type buff: StringIO
00047 """
00048 try:
00049 pass
00050 except struct.error, se: self._check_types(se)
00051 except TypeError, te: self._check_types(te)
00052
00053 def deserialize(self, str):
00054 """
00055 unpack serialized message in str into this message instance
00056 @param str: byte array of serialized message
00057 @type str: str
00058 """
00059 try:
00060 end = 0
00061 return self
00062 except struct.error, e:
00063 raise roslib.message.DeserializationError(e)
00064
00065
00066 def serialize_numpy(self, buff, numpy):
00067 """
00068 serialize message with numpy array types into buffer
00069 @param buff: buffer
00070 @type buff: StringIO
00071 @param numpy: numpy python module
00072 @type numpy module
00073 """
00074 try:
00075 pass
00076 except struct.error, se: self._check_types(se)
00077 except TypeError, te: self._check_types(te)
00078
00079 def deserialize_numpy(self, str, numpy):
00080 """
00081 unpack serialized message in str into this message instance using numpy for array types
00082 @param str: byte array of serialized message
00083 @type str: str
00084 @param numpy: numpy python module
00085 @type numpy: module
00086 """
00087 try:
00088 end = 0
00089 return self
00090 except struct.error, e:
00091 raise roslib.message.DeserializationError(e)
00092
00093 _struct_I = roslib.message.struct_I
00094 """autogenerated by genmsg_py from GetEnvironmentSafetyResponse.msg. Do not edit."""
00095 import roslib.message
00096 import struct
00097
00098 import motion_planning_msgs.msg
00099
00100 class GetEnvironmentSafetyResponse(roslib.message.Message):
00101 _md5sum = "48fd1d8662be4b18e218b0ea865c93ed"
00102 _type = "planning_environment_msgs/GetEnvironmentSafetyResponse"
00103 _has_header = False
00104 _full_text = """
00105
00106
00107 motion_planning_msgs/ArmNavigationErrorCodes error_code
00108
00109 ================================================================================
00110 MSG: motion_planning_msgs/ArmNavigationErrorCodes
00111 int32 val
00112
00113 # overall behavior
00114 int32 PLANNING_FAILED=-1
00115 int32 SUCCESS=1
00116 int32 TIMED_OUT=-2
00117
00118 # start state errors
00119 int32 START_STATE_IN_COLLISION=-3
00120 int32 START_STATE_VIOLATES_PATH_CONSTRAINTS=-4
00121
00122 # goal errors
00123 int32 GOAL_IN_COLLISION=-5
00124 int32 GOAL_VIOLATES_PATH_CONSTRAINTS=-6
00125
00126 # robot state
00127 int32 INVALID_ROBOT_STATE=-7
00128 int32 INCOMPLETE_ROBOT_STATE=-8
00129
00130 # planning request errors
00131 int32 INVALID_PLANNER_ID=-9
00132 int32 INVALID_NUM_PLANNING_ATTEMPTS=-10
00133 int32 INVALID_ALLOWED_PLANNING_TIME=-11
00134 int32 INVALID_GROUP_NAME=-12
00135 int32 INVALID_GOAL_JOINT_CONSTRAINTS=-13
00136 int32 INVALID_GOAL_POSITION_CONSTRAINTS=-14
00137 int32 INVALID_GOAL_ORIENTATION_CONSTRAINTS=-15
00138 int32 INVALID_PATH_JOINT_CONSTRAINTS=-16
00139 int32 INVALID_PATH_POSITION_CONSTRAINTS=-17
00140 int32 INVALID_PATH_ORIENTATION_CONSTRAINTS=-18
00141
00142 # state/trajectory monitor errors
00143 int32 INVALID_TRAJECTORY=-19
00144 int32 INVALID_INDEX=-20
00145 int32 JOINT_LIMITS_VIOLATED=-21
00146 int32 PATH_CONSTRAINTS_VIOLATED=-22
00147 int32 COLLISION_CONSTRAINTS_VIOLATED=-23
00148 int32 GOAL_CONSTRAINTS_VIOLATED=-24
00149 int32 JOINTS_NOT_MOVING=-25
00150 int32 TRAJECTORY_CONTROLLER_FAILED=-26
00151
00152 # system errors
00153 int32 FRAME_TRANSFORM_FAILURE=-27
00154 int32 COLLISION_CHECKING_UNAVAILABLE=-28
00155 int32 ROBOT_STATE_STALE=-29
00156 int32 SENSOR_INFO_STALE=-30
00157
00158 # kinematics errors
00159 int32 NO_IK_SOLUTION=-31
00160 int32 INVALID_LINK_NAME=-32
00161 int32 IK_LINK_IN_COLLISION=-33
00162 int32 NO_FK_SOLUTION=-34
00163 int32 KINEMATICS_STATE_IN_COLLISION=-35
00164
00165 # general errors
00166 int32 INVALID_TIMEOUT=-36
00167
00168
00169 """
00170 __slots__ = ['error_code']
00171 _slot_types = ['motion_planning_msgs/ArmNavigationErrorCodes']
00172
00173 def __init__(self, *args, **kwds):
00174 """
00175 Constructor. Any message fields that are implicitly/explicitly
00176 set to None will be assigned a default value. The recommend
00177 use is keyword arguments as this is more robust to future message
00178 changes. You cannot mix in-order arguments and keyword arguments.
00179
00180 The available fields are:
00181 error_code
00182
00183 @param args: complete set of field values, in .msg order
00184 @param kwds: use keyword arguments corresponding to message field names
00185 to set specific fields.
00186 """
00187 if args or kwds:
00188 super(GetEnvironmentSafetyResponse, self).__init__(*args, **kwds)
00189
00190 if self.error_code is None:
00191 self.error_code = motion_planning_msgs.msg.ArmNavigationErrorCodes()
00192 else:
00193 self.error_code = motion_planning_msgs.msg.ArmNavigationErrorCodes()
00194
00195 def _get_types(self):
00196 """
00197 internal API method
00198 """
00199 return self._slot_types
00200
00201 def serialize(self, buff):
00202 """
00203 serialize message into buffer
00204 @param buff: buffer
00205 @type buff: StringIO
00206 """
00207 try:
00208 buff.write(_struct_i.pack(self.error_code.val))
00209 except struct.error, se: self._check_types(se)
00210 except TypeError, te: self._check_types(te)
00211
00212 def deserialize(self, str):
00213 """
00214 unpack serialized message in str into this message instance
00215 @param str: byte array of serialized message
00216 @type str: str
00217 """
00218 try:
00219 if self.error_code is None:
00220 self.error_code = motion_planning_msgs.msg.ArmNavigationErrorCodes()
00221 end = 0
00222 start = end
00223 end += 4
00224 (self.error_code.val,) = _struct_i.unpack(str[start:end])
00225 return self
00226 except struct.error, e:
00227 raise roslib.message.DeserializationError(e)
00228
00229
00230 def serialize_numpy(self, buff, numpy):
00231 """
00232 serialize message with numpy array types into buffer
00233 @param buff: buffer
00234 @type buff: StringIO
00235 @param numpy: numpy python module
00236 @type numpy module
00237 """
00238 try:
00239 buff.write(_struct_i.pack(self.error_code.val))
00240 except struct.error, se: self._check_types(se)
00241 except TypeError, te: self._check_types(te)
00242
00243 def deserialize_numpy(self, str, numpy):
00244 """
00245 unpack serialized message in str into this message instance using numpy for array types
00246 @param str: byte array of serialized message
00247 @type str: str
00248 @param numpy: numpy python module
00249 @type numpy: module
00250 """
00251 try:
00252 if self.error_code is None:
00253 self.error_code = motion_planning_msgs.msg.ArmNavigationErrorCodes()
00254 end = 0
00255 start = end
00256 end += 4
00257 (self.error_code.val,) = _struct_i.unpack(str[start:end])
00258 return self
00259 except struct.error, e:
00260 raise roslib.message.DeserializationError(e)
00261
00262 _struct_I = roslib.message.struct_I
00263 _struct_i = struct.Struct("<i")
00264 class GetEnvironmentSafety(roslib.message.ServiceDefinition):
00265 _type = 'planning_environment_msgs/GetEnvironmentSafety'
00266 _md5sum = '48fd1d8662be4b18e218b0ea865c93ed'
00267 _request_class = GetEnvironmentSafetyRequest
00268 _response_class = GetEnvironmentSafetyResponse