00001
00002 #ifndef MOTION_PLANNING_MSGS_MESSAGE_WORKSPACEPARAMETERS_H
00003 #define MOTION_PLANNING_MSGS_MESSAGE_WORKSPACEPARAMETERS_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 "geometric_shapes_msgs/Shape.h"
00014 #include "geometry_msgs/PoseStamped.h"
00015
00016 namespace motion_planning_msgs
00017 {
00018 template <class ContainerAllocator>
00019 struct WorkspaceParameters_ : public ros::Message
00020 {
00021 typedef WorkspaceParameters_<ContainerAllocator> Type;
00022
00023 WorkspaceParameters_()
00024 : workspace_region_shape()
00025 , workspace_region_pose()
00026 {
00027 }
00028
00029 WorkspaceParameters_(const ContainerAllocator& _alloc)
00030 : workspace_region_shape(_alloc)
00031 , workspace_region_pose(_alloc)
00032 {
00033 }
00034
00035 typedef ::geometric_shapes_msgs::Shape_<ContainerAllocator> _workspace_region_shape_type;
00036 ::geometric_shapes_msgs::Shape_<ContainerAllocator> workspace_region_shape;
00037
00038 typedef ::geometry_msgs::PoseStamped_<ContainerAllocator> _workspace_region_pose_type;
00039 ::geometry_msgs::PoseStamped_<ContainerAllocator> workspace_region_pose;
00040
00041
00042 private:
00043 static const char* __s_getDataType_() { return "motion_planning_msgs/WorkspaceParameters"; }
00044 public:
00045 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00046
00047 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00048
00049 private:
00050 static const char* __s_getMD5Sum_() { return "1487490edff0df276863abf2cf221de5"; }
00051 public:
00052 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00053
00054 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00055
00056 private:
00057 static const char* __s_getMessageDefinition_() { return "# This message contains a set of parameters useful in\n\
00058 # setting up the workspace for planning\n\
00059 geometric_shapes_msgs/Shape workspace_region_shape\n\
00060 geometry_msgs/PoseStamped workspace_region_pose\n\
00061 \n\
00062 \n\
00063 ================================================================================\n\
00064 MSG: geometric_shapes_msgs/Shape\n\
00065 byte SPHERE=0\n\
00066 byte BOX=1\n\
00067 byte CYLINDER=2\n\
00068 byte MESH=3\n\
00069 \n\
00070 byte type\n\
00071 \n\
00072 \n\
00073 #### define sphere, box, cylinder ####\n\
00074 # the origin of each shape is considered at the shape's center\n\
00075 \n\
00076 # for sphere\n\
00077 # radius := dimensions[0]\n\
00078 \n\
00079 # for cylinder\n\
00080 # radius := dimensions[0]\n\
00081 # length := dimensions[1]\n\
00082 # the length is along the Z axis\n\
00083 \n\
00084 # for box\n\
00085 # size_x := dimensions[0]\n\
00086 # size_y := dimensions[1]\n\
00087 # size_z := dimensions[2]\n\
00088 float64[] dimensions\n\
00089 \n\
00090 \n\
00091 #### define mesh ####\n\
00092 \n\
00093 # list of triangles; triangle k is defined by tre vertices located\n\
00094 # at indices triangles[3k], triangles[3k+1], triangles[3k+2]\n\
00095 int32[] triangles\n\
00096 geometry_msgs/Point[] vertices\n\
00097 \n\
00098 ================================================================================\n\
00099 MSG: geometry_msgs/Point\n\
00100 # This contains the position of a point in free space\n\
00101 float64 x\n\
00102 float64 y\n\
00103 float64 z\n\
00104 \n\
00105 ================================================================================\n\
00106 MSG: geometry_msgs/PoseStamped\n\
00107 # A Pose with reference coordinate frame and timestamp\n\
00108 Header header\n\
00109 Pose pose\n\
00110 \n\
00111 ================================================================================\n\
00112 MSG: std_msgs/Header\n\
00113 # Standard metadata for higher-level stamped data types.\n\
00114 # This is generally used to communicate timestamped data \n\
00115 # in a particular coordinate frame.\n\
00116 # \n\
00117 # sequence ID: consecutively increasing ID \n\
00118 uint32 seq\n\
00119 #Two-integer timestamp that is expressed as:\n\
00120 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00121 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00122 # time-handling sugar is provided by the client library\n\
00123 time stamp\n\
00124 #Frame this data is associated with\n\
00125 # 0: no frame\n\
00126 # 1: global frame\n\
00127 string frame_id\n\
00128 \n\
00129 ================================================================================\n\
00130 MSG: geometry_msgs/Pose\n\
00131 # A representation of pose in free space, composed of postion and orientation. \n\
00132 Point position\n\
00133 Quaternion orientation\n\
00134 \n\
00135 ================================================================================\n\
00136 MSG: geometry_msgs/Quaternion\n\
00137 # This represents an orientation in free space in quaternion form.\n\
00138 \n\
00139 float64 x\n\
00140 float64 y\n\
00141 float64 z\n\
00142 float64 w\n\
00143 \n\
00144 "; }
00145 public:
00146 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00147
00148 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00149
00150 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00151 {
00152 ros::serialization::OStream stream(write_ptr, 1000000000);
00153 ros::serialization::serialize(stream, workspace_region_shape);
00154 ros::serialization::serialize(stream, workspace_region_pose);
00155 return stream.getData();
00156 }
00157
00158 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00159 {
00160 ros::serialization::IStream stream(read_ptr, 1000000000);
00161 ros::serialization::deserialize(stream, workspace_region_shape);
00162 ros::serialization::deserialize(stream, workspace_region_pose);
00163 return stream.getData();
00164 }
00165
00166 ROS_DEPRECATED virtual uint32_t serializationLength() const
00167 {
00168 uint32_t size = 0;
00169 size += ros::serialization::serializationLength(workspace_region_shape);
00170 size += ros::serialization::serializationLength(workspace_region_pose);
00171 return size;
00172 }
00173
00174 typedef boost::shared_ptr< ::motion_planning_msgs::WorkspaceParameters_<ContainerAllocator> > Ptr;
00175 typedef boost::shared_ptr< ::motion_planning_msgs::WorkspaceParameters_<ContainerAllocator> const> ConstPtr;
00176 };
00177 typedef ::motion_planning_msgs::WorkspaceParameters_<std::allocator<void> > WorkspaceParameters;
00178
00179 typedef boost::shared_ptr< ::motion_planning_msgs::WorkspaceParameters> WorkspaceParametersPtr;
00180 typedef boost::shared_ptr< ::motion_planning_msgs::WorkspaceParameters const> WorkspaceParametersConstPtr;
00181
00182
00183 template<typename ContainerAllocator>
00184 std::ostream& operator<<(std::ostream& s, const ::motion_planning_msgs::WorkspaceParameters_<ContainerAllocator> & v)
00185 {
00186 ros::message_operations::Printer< ::motion_planning_msgs::WorkspaceParameters_<ContainerAllocator> >::stream(s, "", v);
00187 return s;}
00188
00189 }
00190
00191 namespace ros
00192 {
00193 namespace message_traits
00194 {
00195 template<class ContainerAllocator>
00196 struct MD5Sum< ::motion_planning_msgs::WorkspaceParameters_<ContainerAllocator> > {
00197 static const char* value()
00198 {
00199 return "1487490edff0df276863abf2cf221de5";
00200 }
00201
00202 static const char* value(const ::motion_planning_msgs::WorkspaceParameters_<ContainerAllocator> &) { return value(); }
00203 static const uint64_t static_value1 = 0x1487490edff0df27ULL;
00204 static const uint64_t static_value2 = 0x6863abf2cf221de5ULL;
00205 };
00206
00207 template<class ContainerAllocator>
00208 struct DataType< ::motion_planning_msgs::WorkspaceParameters_<ContainerAllocator> > {
00209 static const char* value()
00210 {
00211 return "motion_planning_msgs/WorkspaceParameters";
00212 }
00213
00214 static const char* value(const ::motion_planning_msgs::WorkspaceParameters_<ContainerAllocator> &) { return value(); }
00215 };
00216
00217 template<class ContainerAllocator>
00218 struct Definition< ::motion_planning_msgs::WorkspaceParameters_<ContainerAllocator> > {
00219 static const char* value()
00220 {
00221 return "# This message contains a set of parameters useful in\n\
00222 # setting up the workspace for planning\n\
00223 geometric_shapes_msgs/Shape workspace_region_shape\n\
00224 geometry_msgs/PoseStamped workspace_region_pose\n\
00225 \n\
00226 \n\
00227 ================================================================================\n\
00228 MSG: geometric_shapes_msgs/Shape\n\
00229 byte SPHERE=0\n\
00230 byte BOX=1\n\
00231 byte CYLINDER=2\n\
00232 byte MESH=3\n\
00233 \n\
00234 byte type\n\
00235 \n\
00236 \n\
00237 #### define sphere, box, cylinder ####\n\
00238 # the origin of each shape is considered at the shape's center\n\
00239 \n\
00240 # for sphere\n\
00241 # radius := dimensions[0]\n\
00242 \n\
00243 # for cylinder\n\
00244 # radius := dimensions[0]\n\
00245 # length := dimensions[1]\n\
00246 # the length is along the Z axis\n\
00247 \n\
00248 # for box\n\
00249 # size_x := dimensions[0]\n\
00250 # size_y := dimensions[1]\n\
00251 # size_z := dimensions[2]\n\
00252 float64[] dimensions\n\
00253 \n\
00254 \n\
00255 #### define mesh ####\n\
00256 \n\
00257 # list of triangles; triangle k is defined by tre vertices located\n\
00258 # at indices triangles[3k], triangles[3k+1], triangles[3k+2]\n\
00259 int32[] triangles\n\
00260 geometry_msgs/Point[] vertices\n\
00261 \n\
00262 ================================================================================\n\
00263 MSG: geometry_msgs/Point\n\
00264 # This contains the position of a point in free space\n\
00265 float64 x\n\
00266 float64 y\n\
00267 float64 z\n\
00268 \n\
00269 ================================================================================\n\
00270 MSG: geometry_msgs/PoseStamped\n\
00271 # A Pose with reference coordinate frame and timestamp\n\
00272 Header header\n\
00273 Pose pose\n\
00274 \n\
00275 ================================================================================\n\
00276 MSG: std_msgs/Header\n\
00277 # Standard metadata for higher-level stamped data types.\n\
00278 # This is generally used to communicate timestamped data \n\
00279 # in a particular coordinate frame.\n\
00280 # \n\
00281 # sequence ID: consecutively increasing ID \n\
00282 uint32 seq\n\
00283 #Two-integer timestamp that is expressed as:\n\
00284 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00285 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00286 # time-handling sugar is provided by the client library\n\
00287 time stamp\n\
00288 #Frame this data is associated with\n\
00289 # 0: no frame\n\
00290 # 1: global frame\n\
00291 string frame_id\n\
00292 \n\
00293 ================================================================================\n\
00294 MSG: geometry_msgs/Pose\n\
00295 # A representation of pose in free space, composed of postion and orientation. \n\
00296 Point position\n\
00297 Quaternion orientation\n\
00298 \n\
00299 ================================================================================\n\
00300 MSG: geometry_msgs/Quaternion\n\
00301 # This represents an orientation in free space in quaternion form.\n\
00302 \n\
00303 float64 x\n\
00304 float64 y\n\
00305 float64 z\n\
00306 float64 w\n\
00307 \n\
00308 ";
00309 }
00310
00311 static const char* value(const ::motion_planning_msgs::WorkspaceParameters_<ContainerAllocator> &) { return value(); }
00312 };
00313
00314 }
00315 }
00316
00317 namespace ros
00318 {
00319 namespace serialization
00320 {
00321
00322 template<class ContainerAllocator> struct Serializer< ::motion_planning_msgs::WorkspaceParameters_<ContainerAllocator> >
00323 {
00324 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00325 {
00326 stream.next(m.workspace_region_shape);
00327 stream.next(m.workspace_region_pose);
00328 }
00329
00330 ROS_DECLARE_ALLINONE_SERIALIZER;
00331 };
00332 }
00333 }
00334
00335 namespace ros
00336 {
00337 namespace message_operations
00338 {
00339
00340 template<class ContainerAllocator>
00341 struct Printer< ::motion_planning_msgs::WorkspaceParameters_<ContainerAllocator> >
00342 {
00343 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::motion_planning_msgs::WorkspaceParameters_<ContainerAllocator> & v)
00344 {
00345 s << indent << "workspace_region_shape: ";
00346 s << std::endl;
00347 Printer< ::geometric_shapes_msgs::Shape_<ContainerAllocator> >::stream(s, indent + " ", v.workspace_region_shape);
00348 s << indent << "workspace_region_pose: ";
00349 s << std::endl;
00350 Printer< ::geometry_msgs::PoseStamped_<ContainerAllocator> >::stream(s, indent + " ", v.workspace_region_pose);
00351 }
00352 };
00353
00354
00355 }
00356 }
00357
00358 #endif // MOTION_PLANNING_MSGS_MESSAGE_WORKSPACEPARAMETERS_H
00359