Go to the documentation of this file.00001
00002 #ifndef COLLISION_PROXIMITY_PLANNER_SERVICE_GETFREEPATH_H
00003 #define COLLISION_PROXIMITY_PLANNER_SERVICE_GETFREEPATH_H
00004 #include <string>
00005 #include <vector>
00006 #include <map>
00007 #include <ostream>
00008 #include "ros/serialization.h"
00009 #include "ros/builtin_message_traits.h"
00010 #include "ros/message_operations.h"
00011 #include "ros/time.h"
00012
00013 #include "ros/macros.h"
00014
00015 #include "ros/assert.h"
00016
00017 #include "ros/service_traits.h"
00018
00019 #include "arm_navigation_msgs/RobotState.h"
00020
00021
00022 #include "arm_navigation_msgs/RobotTrajectory.h"
00023
00024 namespace collision_proximity_planner
00025 {
00026 template <class ContainerAllocator>
00027 struct GetFreePathRequest_ {
00028 typedef GetFreePathRequest_<ContainerAllocator> Type;
00029
00030 GetFreePathRequest_()
00031 : robot_state()
00032 {
00033 }
00034
00035 GetFreePathRequest_(const ContainerAllocator& _alloc)
00036 : robot_state(_alloc)
00037 {
00038 }
00039
00040 typedef ::arm_navigation_msgs::RobotState_<ContainerAllocator> _robot_state_type;
00041 ::arm_navigation_msgs::RobotState_<ContainerAllocator> robot_state;
00042
00043
00044 typedef boost::shared_ptr< ::collision_proximity_planner::GetFreePathRequest_<ContainerAllocator> > Ptr;
00045 typedef boost::shared_ptr< ::collision_proximity_planner::GetFreePathRequest_<ContainerAllocator> const> ConstPtr;
00046 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00047 };
00048 typedef ::collision_proximity_planner::GetFreePathRequest_<std::allocator<void> > GetFreePathRequest;
00049
00050 typedef boost::shared_ptr< ::collision_proximity_planner::GetFreePathRequest> GetFreePathRequestPtr;
00051 typedef boost::shared_ptr< ::collision_proximity_planner::GetFreePathRequest const> GetFreePathRequestConstPtr;
00052
00053
00054
00055 template <class ContainerAllocator>
00056 struct GetFreePathResponse_ {
00057 typedef GetFreePathResponse_<ContainerAllocator> Type;
00058
00059 GetFreePathResponse_()
00060 : robot_trajectory()
00061 {
00062 }
00063
00064 GetFreePathResponse_(const ContainerAllocator& _alloc)
00065 : robot_trajectory(_alloc)
00066 {
00067 }
00068
00069 typedef ::arm_navigation_msgs::RobotTrajectory_<ContainerAllocator> _robot_trajectory_type;
00070 ::arm_navigation_msgs::RobotTrajectory_<ContainerAllocator> robot_trajectory;
00071
00072
00073 typedef boost::shared_ptr< ::collision_proximity_planner::GetFreePathResponse_<ContainerAllocator> > Ptr;
00074 typedef boost::shared_ptr< ::collision_proximity_planner::GetFreePathResponse_<ContainerAllocator> const> ConstPtr;
00075 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00076 };
00077 typedef ::collision_proximity_planner::GetFreePathResponse_<std::allocator<void> > GetFreePathResponse;
00078
00079 typedef boost::shared_ptr< ::collision_proximity_planner::GetFreePathResponse> GetFreePathResponsePtr;
00080 typedef boost::shared_ptr< ::collision_proximity_planner::GetFreePathResponse const> GetFreePathResponseConstPtr;
00081
00082
00083 struct GetFreePath
00084 {
00085
00086 typedef GetFreePathRequest Request;
00087 typedef GetFreePathResponse Response;
00088 Request request;
00089 Response response;
00090
00091 typedef Request RequestType;
00092 typedef Response ResponseType;
00093 };
00094 }
00095
00096 namespace ros
00097 {
00098 namespace message_traits
00099 {
00100 template<class ContainerAllocator> struct IsMessage< ::collision_proximity_planner::GetFreePathRequest_<ContainerAllocator> > : public TrueType {};
00101 template<class ContainerAllocator> struct IsMessage< ::collision_proximity_planner::GetFreePathRequest_<ContainerAllocator> const> : public TrueType {};
00102 template<class ContainerAllocator>
00103 struct MD5Sum< ::collision_proximity_planner::GetFreePathRequest_<ContainerAllocator> > {
00104 static const char* value()
00105 {
00106 return "23e0e254ce49bb298446221648a76af8";
00107 }
00108
00109 static const char* value(const ::collision_proximity_planner::GetFreePathRequest_<ContainerAllocator> &) { return value(); }
00110 static const uint64_t static_value1 = 0x23e0e254ce49bb29ULL;
00111 static const uint64_t static_value2 = 0x8446221648a76af8ULL;
00112 };
00113
00114 template<class ContainerAllocator>
00115 struct DataType< ::collision_proximity_planner::GetFreePathRequest_<ContainerAllocator> > {
00116 static const char* value()
00117 {
00118 return "collision_proximity_planner/GetFreePathRequest";
00119 }
00120
00121 static const char* value(const ::collision_proximity_planner::GetFreePathRequest_<ContainerAllocator> &) { return value(); }
00122 };
00123
00124 template<class ContainerAllocator>
00125 struct Definition< ::collision_proximity_planner::GetFreePathRequest_<ContainerAllocator> > {
00126 static const char* value()
00127 {
00128 return "\n\
00129 arm_navigation_msgs/RobotState robot_state\n\
00130 \n\
00131 ================================================================================\n\
00132 MSG: arm_navigation_msgs/RobotState\n\
00133 # This message contains information about the robot state, i.e. the positions of its joints and links\n\
00134 sensor_msgs/JointState joint_state\n\
00135 arm_navigation_msgs/MultiDOFJointState multi_dof_joint_state\n\
00136 \n\
00137 ================================================================================\n\
00138 MSG: sensor_msgs/JointState\n\
00139 # This is a message that holds data to describe the state of a set of torque controlled joints. \n\
00140 #\n\
00141 # The state of each joint (revolute or prismatic) is defined by:\n\
00142 # * the position of the joint (rad or m),\n\
00143 # * the velocity of the joint (rad/s or m/s) and \n\
00144 # * the effort that is applied in the joint (Nm or N).\n\
00145 #\n\
00146 # Each joint is uniquely identified by its name\n\
00147 # The header specifies the time at which the joint states were recorded. All the joint states\n\
00148 # in one message have to be recorded at the same time.\n\
00149 #\n\
00150 # This message consists of a multiple arrays, one for each part of the joint state. \n\
00151 # The goal is to make each of the fields optional. When e.g. your joints have no\n\
00152 # effort associated with them, you can leave the effort array empty. \n\
00153 #\n\
00154 # All arrays in this message should have the same size, or be empty.\n\
00155 # This is the only way to uniquely associate the joint name with the correct\n\
00156 # states.\n\
00157 \n\
00158 \n\
00159 Header header\n\
00160 \n\
00161 string[] name\n\
00162 float64[] position\n\
00163 float64[] velocity\n\
00164 float64[] effort\n\
00165 \n\
00166 ================================================================================\n\
00167 MSG: std_msgs/Header\n\
00168 # Standard metadata for higher-level stamped data types.\n\
00169 # This is generally used to communicate timestamped data \n\
00170 # in a particular coordinate frame.\n\
00171 # \n\
00172 # sequence ID: consecutively increasing ID \n\
00173 uint32 seq\n\
00174 #Two-integer timestamp that is expressed as:\n\
00175 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00176 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00177 # time-handling sugar is provided by the client library\n\
00178 time stamp\n\
00179 #Frame this data is associated with\n\
00180 # 0: no frame\n\
00181 # 1: global frame\n\
00182 string frame_id\n\
00183 \n\
00184 ================================================================================\n\
00185 MSG: arm_navigation_msgs/MultiDOFJointState\n\
00186 #A representation of a multi-dof joint state\n\
00187 time stamp\n\
00188 string[] joint_names\n\
00189 string[] frame_ids\n\
00190 string[] child_frame_ids\n\
00191 geometry_msgs/Pose[] poses\n\
00192 \n\
00193 ================================================================================\n\
00194 MSG: geometry_msgs/Pose\n\
00195 # A representation of pose in free space, composed of postion and orientation. \n\
00196 Point position\n\
00197 Quaternion orientation\n\
00198 \n\
00199 ================================================================================\n\
00200 MSG: geometry_msgs/Point\n\
00201 # This contains the position of a point in free space\n\
00202 float64 x\n\
00203 float64 y\n\
00204 float64 z\n\
00205 \n\
00206 ================================================================================\n\
00207 MSG: geometry_msgs/Quaternion\n\
00208 # This represents an orientation in free space in quaternion form.\n\
00209 \n\
00210 float64 x\n\
00211 float64 y\n\
00212 float64 z\n\
00213 float64 w\n\
00214 \n\
00215 ";
00216 }
00217
00218 static const char* value(const ::collision_proximity_planner::GetFreePathRequest_<ContainerAllocator> &) { return value(); }
00219 };
00220
00221 }
00222 }
00223
00224
00225 namespace ros
00226 {
00227 namespace message_traits
00228 {
00229 template<class ContainerAllocator> struct IsMessage< ::collision_proximity_planner::GetFreePathResponse_<ContainerAllocator> > : public TrueType {};
00230 template<class ContainerAllocator> struct IsMessage< ::collision_proximity_planner::GetFreePathResponse_<ContainerAllocator> const> : public TrueType {};
00231 template<class ContainerAllocator>
00232 struct MD5Sum< ::collision_proximity_planner::GetFreePathResponse_<ContainerAllocator> > {
00233 static const char* value()
00234 {
00235 return "6366bd72f32fa5d9429f90aac9082227";
00236 }
00237
00238 static const char* value(const ::collision_proximity_planner::GetFreePathResponse_<ContainerAllocator> &) { return value(); }
00239 static const uint64_t static_value1 = 0x6366bd72f32fa5d9ULL;
00240 static const uint64_t static_value2 = 0x429f90aac9082227ULL;
00241 };
00242
00243 template<class ContainerAllocator>
00244 struct DataType< ::collision_proximity_planner::GetFreePathResponse_<ContainerAllocator> > {
00245 static const char* value()
00246 {
00247 return "collision_proximity_planner/GetFreePathResponse";
00248 }
00249
00250 static const char* value(const ::collision_proximity_planner::GetFreePathResponse_<ContainerAllocator> &) { return value(); }
00251 };
00252
00253 template<class ContainerAllocator>
00254 struct Definition< ::collision_proximity_planner::GetFreePathResponse_<ContainerAllocator> > {
00255 static const char* value()
00256 {
00257 return "arm_navigation_msgs/RobotTrajectory robot_trajectory\n\
00258 \n\
00259 \n\
00260 ================================================================================\n\
00261 MSG: arm_navigation_msgs/RobotTrajectory\n\
00262 trajectory_msgs/JointTrajectory joint_trajectory\n\
00263 arm_navigation_msgs/MultiDOFJointTrajectory multi_dof_joint_trajectory\n\
00264 \n\
00265 ================================================================================\n\
00266 MSG: trajectory_msgs/JointTrajectory\n\
00267 Header header\n\
00268 string[] joint_names\n\
00269 JointTrajectoryPoint[] points\n\
00270 ================================================================================\n\
00271 MSG: std_msgs/Header\n\
00272 # Standard metadata for higher-level stamped data types.\n\
00273 # This is generally used to communicate timestamped data \n\
00274 # in a particular coordinate frame.\n\
00275 # \n\
00276 # sequence ID: consecutively increasing ID \n\
00277 uint32 seq\n\
00278 #Two-integer timestamp that is expressed as:\n\
00279 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00280 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00281 # time-handling sugar is provided by the client library\n\
00282 time stamp\n\
00283 #Frame this data is associated with\n\
00284 # 0: no frame\n\
00285 # 1: global frame\n\
00286 string frame_id\n\
00287 \n\
00288 ================================================================================\n\
00289 MSG: trajectory_msgs/JointTrajectoryPoint\n\
00290 float64[] positions\n\
00291 float64[] velocities\n\
00292 float64[] accelerations\n\
00293 duration time_from_start\n\
00294 ================================================================================\n\
00295 MSG: arm_navigation_msgs/MultiDOFJointTrajectory\n\
00296 #A representation of a multi-dof joint trajectory\n\
00297 duration stamp\n\
00298 string[] joint_names\n\
00299 string[] frame_ids\n\
00300 string[] child_frame_ids\n\
00301 MultiDOFJointTrajectoryPoint[] points\n\
00302 \n\
00303 ================================================================================\n\
00304 MSG: arm_navigation_msgs/MultiDOFJointTrajectoryPoint\n\
00305 geometry_msgs/Pose[] poses\n\
00306 duration time_from_start\n\
00307 ================================================================================\n\
00308 MSG: geometry_msgs/Pose\n\
00309 # A representation of pose in free space, composed of postion and orientation. \n\
00310 Point position\n\
00311 Quaternion orientation\n\
00312 \n\
00313 ================================================================================\n\
00314 MSG: geometry_msgs/Point\n\
00315 # This contains the position of a point in free space\n\
00316 float64 x\n\
00317 float64 y\n\
00318 float64 z\n\
00319 \n\
00320 ================================================================================\n\
00321 MSG: geometry_msgs/Quaternion\n\
00322 # This represents an orientation in free space in quaternion form.\n\
00323 \n\
00324 float64 x\n\
00325 float64 y\n\
00326 float64 z\n\
00327 float64 w\n\
00328 \n\
00329 ";
00330 }
00331
00332 static const char* value(const ::collision_proximity_planner::GetFreePathResponse_<ContainerAllocator> &) { return value(); }
00333 };
00334
00335 }
00336 }
00337
00338 namespace ros
00339 {
00340 namespace serialization
00341 {
00342
00343 template<class ContainerAllocator> struct Serializer< ::collision_proximity_planner::GetFreePathRequest_<ContainerAllocator> >
00344 {
00345 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00346 {
00347 stream.next(m.robot_state);
00348 }
00349
00350 ROS_DECLARE_ALLINONE_SERIALIZER;
00351 };
00352 }
00353 }
00354
00355
00356 namespace ros
00357 {
00358 namespace serialization
00359 {
00360
00361 template<class ContainerAllocator> struct Serializer< ::collision_proximity_planner::GetFreePathResponse_<ContainerAllocator> >
00362 {
00363 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00364 {
00365 stream.next(m.robot_trajectory);
00366 }
00367
00368 ROS_DECLARE_ALLINONE_SERIALIZER;
00369 };
00370 }
00371 }
00372
00373 namespace ros
00374 {
00375 namespace service_traits
00376 {
00377 template<>
00378 struct MD5Sum<collision_proximity_planner::GetFreePath> {
00379 static const char* value()
00380 {
00381 return "e5d8e6731173ba0b633eb5320faf8538";
00382 }
00383
00384 static const char* value(const collision_proximity_planner::GetFreePath&) { return value(); }
00385 };
00386
00387 template<>
00388 struct DataType<collision_proximity_planner::GetFreePath> {
00389 static const char* value()
00390 {
00391 return "collision_proximity_planner/GetFreePath";
00392 }
00393
00394 static const char* value(const collision_proximity_planner::GetFreePath&) { return value(); }
00395 };
00396
00397 template<class ContainerAllocator>
00398 struct MD5Sum<collision_proximity_planner::GetFreePathRequest_<ContainerAllocator> > {
00399 static const char* value()
00400 {
00401 return "e5d8e6731173ba0b633eb5320faf8538";
00402 }
00403
00404 static const char* value(const collision_proximity_planner::GetFreePathRequest_<ContainerAllocator> &) { return value(); }
00405 };
00406
00407 template<class ContainerAllocator>
00408 struct DataType<collision_proximity_planner::GetFreePathRequest_<ContainerAllocator> > {
00409 static const char* value()
00410 {
00411 return "collision_proximity_planner/GetFreePath";
00412 }
00413
00414 static const char* value(const collision_proximity_planner::GetFreePathRequest_<ContainerAllocator> &) { return value(); }
00415 };
00416
00417 template<class ContainerAllocator>
00418 struct MD5Sum<collision_proximity_planner::GetFreePathResponse_<ContainerAllocator> > {
00419 static const char* value()
00420 {
00421 return "e5d8e6731173ba0b633eb5320faf8538";
00422 }
00423
00424 static const char* value(const collision_proximity_planner::GetFreePathResponse_<ContainerAllocator> &) { return value(); }
00425 };
00426
00427 template<class ContainerAllocator>
00428 struct DataType<collision_proximity_planner::GetFreePathResponse_<ContainerAllocator> > {
00429 static const char* value()
00430 {
00431 return "collision_proximity_planner/GetFreePath";
00432 }
00433
00434 static const char* value(const collision_proximity_planner::GetFreePathResponse_<ContainerAllocator> &) { return value(); }
00435 };
00436
00437 }
00438 }
00439
00440 #endif // COLLISION_PROXIMITY_PLANNER_SERVICE_GETFREEPATH_H
00441