00001
00002 #ifndef PLANNING_ENVIRONMENT_MSGS_SERVICE_GETENVIRONMENTSAFETY_H
00003 #define PLANNING_ENVIRONMENT_MSGS_SERVICE_GETENVIRONMENTSAFETY_H
00004 #include <string>
00005 #include <vector>
00006 #include <ostream>
00007 #include "ros/serialization.h"
00008 #include "ros/builtin_message_traits.h"
00009 #include "ros/message_operations.h"
00010 #include "ros/message.h"
00011 #include "ros/time.h"
00012
00013 #include "ros/service_traits.h"
00014
00015
00016
00017 #include "motion_planning_msgs/ArmNavigationErrorCodes.h"
00018
00019 namespace planning_environment_msgs
00020 {
00021 template <class ContainerAllocator>
00022 struct GetEnvironmentSafetyRequest_ : public ros::Message
00023 {
00024 typedef GetEnvironmentSafetyRequest_<ContainerAllocator> Type;
00025
00026 GetEnvironmentSafetyRequest_()
00027 {
00028 }
00029
00030 GetEnvironmentSafetyRequest_(const ContainerAllocator& _alloc)
00031 {
00032 }
00033
00034
00035 private:
00036 static const char* __s_getDataType_() { return "planning_environment_msgs/GetEnvironmentSafetyRequest"; }
00037 public:
00038 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00039
00040 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00041
00042 private:
00043 static const char* __s_getMD5Sum_() { return "d41d8cd98f00b204e9800998ecf8427e"; }
00044 public:
00045 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00046
00047 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00048
00049 private:
00050 static const char* __s_getServerMD5Sum_() { return "48fd1d8662be4b18e218b0ea865c93ed"; }
00051 public:
00052 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00053
00054 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00055
00056 private:
00057 static const char* __s_getMessageDefinition_() { return "\n\
00058 \n\
00059 \n\
00060 \n\
00061 \n\
00062 "; }
00063 public:
00064 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00065
00066 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00067
00068 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00069 {
00070 ros::serialization::OStream stream(write_ptr, 1000000000);
00071 return stream.getData();
00072 }
00073
00074 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00075 {
00076 ros::serialization::IStream stream(read_ptr, 1000000000);
00077 return stream.getData();
00078 }
00079
00080 ROS_DEPRECATED virtual uint32_t serializationLength() const
00081 {
00082 uint32_t size = 0;
00083 return size;
00084 }
00085
00086 typedef boost::shared_ptr< ::planning_environment_msgs::GetEnvironmentSafetyRequest_<ContainerAllocator> > Ptr;
00087 typedef boost::shared_ptr< ::planning_environment_msgs::GetEnvironmentSafetyRequest_<ContainerAllocator> const> ConstPtr;
00088 };
00089 typedef ::planning_environment_msgs::GetEnvironmentSafetyRequest_<std::allocator<void> > GetEnvironmentSafetyRequest;
00090
00091 typedef boost::shared_ptr< ::planning_environment_msgs::GetEnvironmentSafetyRequest> GetEnvironmentSafetyRequestPtr;
00092 typedef boost::shared_ptr< ::planning_environment_msgs::GetEnvironmentSafetyRequest const> GetEnvironmentSafetyRequestConstPtr;
00093
00094
00095 template <class ContainerAllocator>
00096 struct GetEnvironmentSafetyResponse_ : public ros::Message
00097 {
00098 typedef GetEnvironmentSafetyResponse_<ContainerAllocator> Type;
00099
00100 GetEnvironmentSafetyResponse_()
00101 : error_code()
00102 {
00103 }
00104
00105 GetEnvironmentSafetyResponse_(const ContainerAllocator& _alloc)
00106 : error_code(_alloc)
00107 {
00108 }
00109
00110 typedef ::motion_planning_msgs::ArmNavigationErrorCodes_<ContainerAllocator> _error_code_type;
00111 ::motion_planning_msgs::ArmNavigationErrorCodes_<ContainerAllocator> error_code;
00112
00113
00114 private:
00115 static const char* __s_getDataType_() { return "planning_environment_msgs/GetEnvironmentSafetyResponse"; }
00116 public:
00117 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00118
00119 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00120
00121 private:
00122 static const char* __s_getMD5Sum_() { return "48fd1d8662be4b18e218b0ea865c93ed"; }
00123 public:
00124 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00125
00126 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00127
00128 private:
00129 static const char* __s_getServerMD5Sum_() { return "48fd1d8662be4b18e218b0ea865c93ed"; }
00130 public:
00131 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00132
00133 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00134
00135 private:
00136 static const char* __s_getMessageDefinition_() { return "\n\
00137 \n\
00138 \n\
00139 motion_planning_msgs/ArmNavigationErrorCodes error_code\n\
00140 \n\
00141 ================================================================================\n\
00142 MSG: motion_planning_msgs/ArmNavigationErrorCodes\n\
00143 int32 val\n\
00144 \n\
00145 # overall behavior\n\
00146 int32 PLANNING_FAILED=-1\n\
00147 int32 SUCCESS=1\n\
00148 int32 TIMED_OUT=-2\n\
00149 \n\
00150 # start state errors\n\
00151 int32 START_STATE_IN_COLLISION=-3\n\
00152 int32 START_STATE_VIOLATES_PATH_CONSTRAINTS=-4\n\
00153 \n\
00154 # goal errors\n\
00155 int32 GOAL_IN_COLLISION=-5\n\
00156 int32 GOAL_VIOLATES_PATH_CONSTRAINTS=-6\n\
00157 \n\
00158 # robot state\n\
00159 int32 INVALID_ROBOT_STATE=-7\n\
00160 int32 INCOMPLETE_ROBOT_STATE=-8\n\
00161 \n\
00162 # planning request errors\n\
00163 int32 INVALID_PLANNER_ID=-9\n\
00164 int32 INVALID_NUM_PLANNING_ATTEMPTS=-10\n\
00165 int32 INVALID_ALLOWED_PLANNING_TIME=-11\n\
00166 int32 INVALID_GROUP_NAME=-12\n\
00167 int32 INVALID_GOAL_JOINT_CONSTRAINTS=-13\n\
00168 int32 INVALID_GOAL_POSITION_CONSTRAINTS=-14\n\
00169 int32 INVALID_GOAL_ORIENTATION_CONSTRAINTS=-15\n\
00170 int32 INVALID_PATH_JOINT_CONSTRAINTS=-16\n\
00171 int32 INVALID_PATH_POSITION_CONSTRAINTS=-17\n\
00172 int32 INVALID_PATH_ORIENTATION_CONSTRAINTS=-18\n\
00173 \n\
00174 # state/trajectory monitor errors\n\
00175 int32 INVALID_TRAJECTORY=-19\n\
00176 int32 INVALID_INDEX=-20\n\
00177 int32 JOINT_LIMITS_VIOLATED=-21\n\
00178 int32 PATH_CONSTRAINTS_VIOLATED=-22\n\
00179 int32 COLLISION_CONSTRAINTS_VIOLATED=-23\n\
00180 int32 GOAL_CONSTRAINTS_VIOLATED=-24\n\
00181 int32 JOINTS_NOT_MOVING=-25\n\
00182 int32 TRAJECTORY_CONTROLLER_FAILED=-26\n\
00183 \n\
00184 # system errors\n\
00185 int32 FRAME_TRANSFORM_FAILURE=-27\n\
00186 int32 COLLISION_CHECKING_UNAVAILABLE=-28\n\
00187 int32 ROBOT_STATE_STALE=-29\n\
00188 int32 SENSOR_INFO_STALE=-30\n\
00189 \n\
00190 # kinematics errors\n\
00191 int32 NO_IK_SOLUTION=-31\n\
00192 int32 INVALID_LINK_NAME=-32\n\
00193 int32 IK_LINK_IN_COLLISION=-33\n\
00194 int32 NO_FK_SOLUTION=-34\n\
00195 int32 KINEMATICS_STATE_IN_COLLISION=-35\n\
00196 \n\
00197 # general errors\n\
00198 int32 INVALID_TIMEOUT=-36\n\
00199 \n\
00200 \n\
00201 "; }
00202 public:
00203 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00204
00205 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00206
00207 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00208 {
00209 ros::serialization::OStream stream(write_ptr, 1000000000);
00210 ros::serialization::serialize(stream, error_code);
00211 return stream.getData();
00212 }
00213
00214 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00215 {
00216 ros::serialization::IStream stream(read_ptr, 1000000000);
00217 ros::serialization::deserialize(stream, error_code);
00218 return stream.getData();
00219 }
00220
00221 ROS_DEPRECATED virtual uint32_t serializationLength() const
00222 {
00223 uint32_t size = 0;
00224 size += ros::serialization::serializationLength(error_code);
00225 return size;
00226 }
00227
00228 typedef boost::shared_ptr< ::planning_environment_msgs::GetEnvironmentSafetyResponse_<ContainerAllocator> > Ptr;
00229 typedef boost::shared_ptr< ::planning_environment_msgs::GetEnvironmentSafetyResponse_<ContainerAllocator> const> ConstPtr;
00230 };
00231 typedef ::planning_environment_msgs::GetEnvironmentSafetyResponse_<std::allocator<void> > GetEnvironmentSafetyResponse;
00232
00233 typedef boost::shared_ptr< ::planning_environment_msgs::GetEnvironmentSafetyResponse> GetEnvironmentSafetyResponsePtr;
00234 typedef boost::shared_ptr< ::planning_environment_msgs::GetEnvironmentSafetyResponse const> GetEnvironmentSafetyResponseConstPtr;
00235
00236 struct GetEnvironmentSafety
00237 {
00238
00239 typedef GetEnvironmentSafetyRequest Request;
00240 typedef GetEnvironmentSafetyResponse Response;
00241 Request request;
00242 Response response;
00243
00244 typedef Request RequestType;
00245 typedef Response ResponseType;
00246 };
00247 }
00248
00249 namespace ros
00250 {
00251 namespace message_traits
00252 {
00253 template<class ContainerAllocator>
00254 struct MD5Sum< ::planning_environment_msgs::GetEnvironmentSafetyRequest_<ContainerAllocator> > {
00255 static const char* value()
00256 {
00257 return "d41d8cd98f00b204e9800998ecf8427e";
00258 }
00259
00260 static const char* value(const ::planning_environment_msgs::GetEnvironmentSafetyRequest_<ContainerAllocator> &) { return value(); }
00261 static const uint64_t static_value1 = 0xd41d8cd98f00b204ULL;
00262 static const uint64_t static_value2 = 0xe9800998ecf8427eULL;
00263 };
00264
00265 template<class ContainerAllocator>
00266 struct DataType< ::planning_environment_msgs::GetEnvironmentSafetyRequest_<ContainerAllocator> > {
00267 static const char* value()
00268 {
00269 return "planning_environment_msgs/GetEnvironmentSafetyRequest";
00270 }
00271
00272 static const char* value(const ::planning_environment_msgs::GetEnvironmentSafetyRequest_<ContainerAllocator> &) { return value(); }
00273 };
00274
00275 template<class ContainerAllocator>
00276 struct Definition< ::planning_environment_msgs::GetEnvironmentSafetyRequest_<ContainerAllocator> > {
00277 static const char* value()
00278 {
00279 return "\n\
00280 \n\
00281 \n\
00282 \n\
00283 \n\
00284 ";
00285 }
00286
00287 static const char* value(const ::planning_environment_msgs::GetEnvironmentSafetyRequest_<ContainerAllocator> &) { return value(); }
00288 };
00289
00290 template<class ContainerAllocator> struct IsFixedSize< ::planning_environment_msgs::GetEnvironmentSafetyRequest_<ContainerAllocator> > : public TrueType {};
00291 }
00292 }
00293
00294
00295 namespace ros
00296 {
00297 namespace message_traits
00298 {
00299 template<class ContainerAllocator>
00300 struct MD5Sum< ::planning_environment_msgs::GetEnvironmentSafetyResponse_<ContainerAllocator> > {
00301 static const char* value()
00302 {
00303 return "48fd1d8662be4b18e218b0ea865c93ed";
00304 }
00305
00306 static const char* value(const ::planning_environment_msgs::GetEnvironmentSafetyResponse_<ContainerAllocator> &) { return value(); }
00307 static const uint64_t static_value1 = 0x48fd1d8662be4b18ULL;
00308 static const uint64_t static_value2 = 0xe218b0ea865c93edULL;
00309 };
00310
00311 template<class ContainerAllocator>
00312 struct DataType< ::planning_environment_msgs::GetEnvironmentSafetyResponse_<ContainerAllocator> > {
00313 static const char* value()
00314 {
00315 return "planning_environment_msgs/GetEnvironmentSafetyResponse";
00316 }
00317
00318 static const char* value(const ::planning_environment_msgs::GetEnvironmentSafetyResponse_<ContainerAllocator> &) { return value(); }
00319 };
00320
00321 template<class ContainerAllocator>
00322 struct Definition< ::planning_environment_msgs::GetEnvironmentSafetyResponse_<ContainerAllocator> > {
00323 static const char* value()
00324 {
00325 return "\n\
00326 \n\
00327 \n\
00328 motion_planning_msgs/ArmNavigationErrorCodes error_code\n\
00329 \n\
00330 ================================================================================\n\
00331 MSG: motion_planning_msgs/ArmNavigationErrorCodes\n\
00332 int32 val\n\
00333 \n\
00334 # overall behavior\n\
00335 int32 PLANNING_FAILED=-1\n\
00336 int32 SUCCESS=1\n\
00337 int32 TIMED_OUT=-2\n\
00338 \n\
00339 # start state errors\n\
00340 int32 START_STATE_IN_COLLISION=-3\n\
00341 int32 START_STATE_VIOLATES_PATH_CONSTRAINTS=-4\n\
00342 \n\
00343 # goal errors\n\
00344 int32 GOAL_IN_COLLISION=-5\n\
00345 int32 GOAL_VIOLATES_PATH_CONSTRAINTS=-6\n\
00346 \n\
00347 # robot state\n\
00348 int32 INVALID_ROBOT_STATE=-7\n\
00349 int32 INCOMPLETE_ROBOT_STATE=-8\n\
00350 \n\
00351 # planning request errors\n\
00352 int32 INVALID_PLANNER_ID=-9\n\
00353 int32 INVALID_NUM_PLANNING_ATTEMPTS=-10\n\
00354 int32 INVALID_ALLOWED_PLANNING_TIME=-11\n\
00355 int32 INVALID_GROUP_NAME=-12\n\
00356 int32 INVALID_GOAL_JOINT_CONSTRAINTS=-13\n\
00357 int32 INVALID_GOAL_POSITION_CONSTRAINTS=-14\n\
00358 int32 INVALID_GOAL_ORIENTATION_CONSTRAINTS=-15\n\
00359 int32 INVALID_PATH_JOINT_CONSTRAINTS=-16\n\
00360 int32 INVALID_PATH_POSITION_CONSTRAINTS=-17\n\
00361 int32 INVALID_PATH_ORIENTATION_CONSTRAINTS=-18\n\
00362 \n\
00363 # state/trajectory monitor errors\n\
00364 int32 INVALID_TRAJECTORY=-19\n\
00365 int32 INVALID_INDEX=-20\n\
00366 int32 JOINT_LIMITS_VIOLATED=-21\n\
00367 int32 PATH_CONSTRAINTS_VIOLATED=-22\n\
00368 int32 COLLISION_CONSTRAINTS_VIOLATED=-23\n\
00369 int32 GOAL_CONSTRAINTS_VIOLATED=-24\n\
00370 int32 JOINTS_NOT_MOVING=-25\n\
00371 int32 TRAJECTORY_CONTROLLER_FAILED=-26\n\
00372 \n\
00373 # system errors\n\
00374 int32 FRAME_TRANSFORM_FAILURE=-27\n\
00375 int32 COLLISION_CHECKING_UNAVAILABLE=-28\n\
00376 int32 ROBOT_STATE_STALE=-29\n\
00377 int32 SENSOR_INFO_STALE=-30\n\
00378 \n\
00379 # kinematics errors\n\
00380 int32 NO_IK_SOLUTION=-31\n\
00381 int32 INVALID_LINK_NAME=-32\n\
00382 int32 IK_LINK_IN_COLLISION=-33\n\
00383 int32 NO_FK_SOLUTION=-34\n\
00384 int32 KINEMATICS_STATE_IN_COLLISION=-35\n\
00385 \n\
00386 # general errors\n\
00387 int32 INVALID_TIMEOUT=-36\n\
00388 \n\
00389 \n\
00390 ";
00391 }
00392
00393 static const char* value(const ::planning_environment_msgs::GetEnvironmentSafetyResponse_<ContainerAllocator> &) { return value(); }
00394 };
00395
00396 template<class ContainerAllocator> struct IsFixedSize< ::planning_environment_msgs::GetEnvironmentSafetyResponse_<ContainerAllocator> > : public TrueType {};
00397 }
00398 }
00399
00400 namespace ros
00401 {
00402 namespace serialization
00403 {
00404
00405 template<class ContainerAllocator> struct Serializer< ::planning_environment_msgs::GetEnvironmentSafetyRequest_<ContainerAllocator> >
00406 {
00407 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00408 {
00409 }
00410
00411 ROS_DECLARE_ALLINONE_SERIALIZER;
00412 };
00413 }
00414 }
00415
00416
00417 namespace ros
00418 {
00419 namespace serialization
00420 {
00421
00422 template<class ContainerAllocator> struct Serializer< ::planning_environment_msgs::GetEnvironmentSafetyResponse_<ContainerAllocator> >
00423 {
00424 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00425 {
00426 stream.next(m.error_code);
00427 }
00428
00429 ROS_DECLARE_ALLINONE_SERIALIZER;
00430 };
00431 }
00432 }
00433
00434 namespace ros
00435 {
00436 namespace service_traits
00437 {
00438 template<>
00439 struct MD5Sum<planning_environment_msgs::GetEnvironmentSafety> {
00440 static const char* value()
00441 {
00442 return "48fd1d8662be4b18e218b0ea865c93ed";
00443 }
00444
00445 static const char* value(const planning_environment_msgs::GetEnvironmentSafety&) { return value(); }
00446 };
00447
00448 template<>
00449 struct DataType<planning_environment_msgs::GetEnvironmentSafety> {
00450 static const char* value()
00451 {
00452 return "planning_environment_msgs/GetEnvironmentSafety";
00453 }
00454
00455 static const char* value(const planning_environment_msgs::GetEnvironmentSafety&) { return value(); }
00456 };
00457
00458 template<class ContainerAllocator>
00459 struct MD5Sum<planning_environment_msgs::GetEnvironmentSafetyRequest_<ContainerAllocator> > {
00460 static const char* value()
00461 {
00462 return "48fd1d8662be4b18e218b0ea865c93ed";
00463 }
00464
00465 static const char* value(const planning_environment_msgs::GetEnvironmentSafetyRequest_<ContainerAllocator> &) { return value(); }
00466 };
00467
00468 template<class ContainerAllocator>
00469 struct DataType<planning_environment_msgs::GetEnvironmentSafetyRequest_<ContainerAllocator> > {
00470 static const char* value()
00471 {
00472 return "planning_environment_msgs/GetEnvironmentSafety";
00473 }
00474
00475 static const char* value(const planning_environment_msgs::GetEnvironmentSafetyRequest_<ContainerAllocator> &) { return value(); }
00476 };
00477
00478 template<class ContainerAllocator>
00479 struct MD5Sum<planning_environment_msgs::GetEnvironmentSafetyResponse_<ContainerAllocator> > {
00480 static const char* value()
00481 {
00482 return "48fd1d8662be4b18e218b0ea865c93ed";
00483 }
00484
00485 static const char* value(const planning_environment_msgs::GetEnvironmentSafetyResponse_<ContainerAllocator> &) { return value(); }
00486 };
00487
00488 template<class ContainerAllocator>
00489 struct DataType<planning_environment_msgs::GetEnvironmentSafetyResponse_<ContainerAllocator> > {
00490 static const char* value()
00491 {
00492 return "planning_environment_msgs/GetEnvironmentSafety";
00493 }
00494
00495 static const char* value(const planning_environment_msgs::GetEnvironmentSafetyResponse_<ContainerAllocator> &) { return value(); }
00496 };
00497
00498 }
00499 }
00500
00501 #endif // PLANNING_ENVIRONMENT_MSGS_SERVICE_GETENVIRONMENTSAFETY_H
00502