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