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