$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-object_manipulation/doc_stacks/2013-03-01_16-13-18.345538/object_manipulation/point_cloud_server/msg/StoreCloudGoal.msg */ 00002 #ifndef POINT_CLOUD_SERVER_MESSAGE_STORECLOUDGOAL_H 00003 #define POINT_CLOUD_SERVER_MESSAGE_STORECLOUDGOAL_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 "sensor_msgs/PointCloud2.h" 00018 00019 namespace point_cloud_server 00020 { 00021 template <class ContainerAllocator> 00022 struct StoreCloudGoal_ { 00023 typedef StoreCloudGoal_<ContainerAllocator> Type; 00024 00025 StoreCloudGoal_() 00026 : name() 00027 , topic() 00028 , cloud() 00029 , storage_frame_id() 00030 , result_frame_id() 00031 , action(0) 00032 { 00033 } 00034 00035 StoreCloudGoal_(const ContainerAllocator& _alloc) 00036 : name(_alloc) 00037 , topic(_alloc) 00038 , cloud(_alloc) 00039 , storage_frame_id(_alloc) 00040 , result_frame_id(_alloc) 00041 , action(0) 00042 { 00043 } 00044 00045 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _name_type; 00046 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > name; 00047 00048 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _topic_type; 00049 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > topic; 00050 00051 typedef ::sensor_msgs::PointCloud2_<ContainerAllocator> _cloud_type; 00052 ::sensor_msgs::PointCloud2_<ContainerAllocator> cloud; 00053 00054 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _storage_frame_id_type; 00055 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > storage_frame_id; 00056 00057 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _result_frame_id_type; 00058 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > result_frame_id; 00059 00060 typedef int32_t _action_type; 00061 int32_t action; 00062 00063 enum { STORE = 0 }; 00064 enum { GET = 1 }; 00065 enum { CLEAR = 2 }; 00066 00067 private: 00068 static const char* __s_getDataType_() { return "point_cloud_server/StoreCloudGoal"; } 00069 public: 00070 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00071 00072 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00073 00074 private: 00075 static const char* __s_getMD5Sum_() { return "c7a62afa81fe2ea3aa9f4e952ee31d69"; } 00076 public: 00077 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00078 00079 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00080 00081 private: 00082 static const char* __s_getMessageDefinition_() { return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00083 # The storage name of the point cloud.\n\ 00084 string name\n\ 00085 \n\ 00086 # The topic on which to capture a point cloud message. \n\ 00087 # If this is empty, then 'cloud' will be used instead.\n\ 00088 string topic\n\ 00089 \n\ 00090 # A point cloud to store.\n\ 00091 sensor_msgs/PointCloud2 cloud\n\ 00092 \n\ 00093 # If not empty, transforms the cloud to this frame before storing.\n\ 00094 string storage_frame_id\n\ 00095 \n\ 00096 # If not empty, transforms the cloud to this frame in the return result.\n\ 00097 string result_frame_id\n\ 00098 \n\ 00099 # A flag to determine whether to reply with the cloud.\n\ 00100 int32 action\n\ 00101 \n\ 00102 # Will get a message on topic, or store cloud.\n\ 00103 int32 STORE=0\n\ 00104 \n\ 00105 # Will get a message on a topic if it is provided, save, and return it;\n\ 00106 # otherwise just returns the existing cloud.\n\ 00107 int32 GET=1\n\ 00108 \n\ 00109 # Topic and cloud are ignored, just removes cloud from the server.\n\ 00110 int32 CLEAR=2\n\ 00111 \n\ 00112 \n\ 00113 ================================================================================\n\ 00114 MSG: sensor_msgs/PointCloud2\n\ 00115 # This message holds a collection of N-dimensional points, which may\n\ 00116 # contain additional information such as normals, intensity, etc. The\n\ 00117 # point data is stored as a binary blob, its layout described by the\n\ 00118 # contents of the \"fields\" array.\n\ 00119 \n\ 00120 # The point cloud data may be organized 2d (image-like) or 1d\n\ 00121 # (unordered). Point clouds organized as 2d images may be produced by\n\ 00122 # camera depth sensors such as stereo or time-of-flight.\n\ 00123 \n\ 00124 # Time of sensor data acquisition, and the coordinate frame ID (for 3d\n\ 00125 # points).\n\ 00126 Header header\n\ 00127 \n\ 00128 # 2D structure of the point cloud. If the cloud is unordered, height is\n\ 00129 # 1 and width is the length of the point cloud.\n\ 00130 uint32 height\n\ 00131 uint32 width\n\ 00132 \n\ 00133 # Describes the channels and their layout in the binary data blob.\n\ 00134 PointField[] fields\n\ 00135 \n\ 00136 bool is_bigendian # Is this data bigendian?\n\ 00137 uint32 point_step # Length of a point in bytes\n\ 00138 uint32 row_step # Length of a row in bytes\n\ 00139 uint8[] data # Actual point data, size is (row_step*height)\n\ 00140 \n\ 00141 bool is_dense # True if there are no invalid points\n\ 00142 \n\ 00143 ================================================================================\n\ 00144 MSG: std_msgs/Header\n\ 00145 # Standard metadata for higher-level stamped data types.\n\ 00146 # This is generally used to communicate timestamped data \n\ 00147 # in a particular coordinate frame.\n\ 00148 # \n\ 00149 # sequence ID: consecutively increasing ID \n\ 00150 uint32 seq\n\ 00151 #Two-integer timestamp that is expressed as:\n\ 00152 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00153 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00154 # time-handling sugar is provided by the client library\n\ 00155 time stamp\n\ 00156 #Frame this data is associated with\n\ 00157 # 0: no frame\n\ 00158 # 1: global frame\n\ 00159 string frame_id\n\ 00160 \n\ 00161 ================================================================================\n\ 00162 MSG: sensor_msgs/PointField\n\ 00163 # This message holds the description of one point entry in the\n\ 00164 # PointCloud2 message format.\n\ 00165 uint8 INT8 = 1\n\ 00166 uint8 UINT8 = 2\n\ 00167 uint8 INT16 = 3\n\ 00168 uint8 UINT16 = 4\n\ 00169 uint8 INT32 = 5\n\ 00170 uint8 UINT32 = 6\n\ 00171 uint8 FLOAT32 = 7\n\ 00172 uint8 FLOAT64 = 8\n\ 00173 \n\ 00174 string name # Name of field\n\ 00175 uint32 offset # Offset from start of point struct\n\ 00176 uint8 datatype # Datatype enumeration, see above\n\ 00177 uint32 count # How many elements in the field\n\ 00178 \n\ 00179 "; } 00180 public: 00181 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00182 00183 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00184 00185 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00186 { 00187 ros::serialization::OStream stream(write_ptr, 1000000000); 00188 ros::serialization::serialize(stream, name); 00189 ros::serialization::serialize(stream, topic); 00190 ros::serialization::serialize(stream, cloud); 00191 ros::serialization::serialize(stream, storage_frame_id); 00192 ros::serialization::serialize(stream, result_frame_id); 00193 ros::serialization::serialize(stream, action); 00194 return stream.getData(); 00195 } 00196 00197 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00198 { 00199 ros::serialization::IStream stream(read_ptr, 1000000000); 00200 ros::serialization::deserialize(stream, name); 00201 ros::serialization::deserialize(stream, topic); 00202 ros::serialization::deserialize(stream, cloud); 00203 ros::serialization::deserialize(stream, storage_frame_id); 00204 ros::serialization::deserialize(stream, result_frame_id); 00205 ros::serialization::deserialize(stream, action); 00206 return stream.getData(); 00207 } 00208 00209 ROS_DEPRECATED virtual uint32_t serializationLength() const 00210 { 00211 uint32_t size = 0; 00212 size += ros::serialization::serializationLength(name); 00213 size += ros::serialization::serializationLength(topic); 00214 size += ros::serialization::serializationLength(cloud); 00215 size += ros::serialization::serializationLength(storage_frame_id); 00216 size += ros::serialization::serializationLength(result_frame_id); 00217 size += ros::serialization::serializationLength(action); 00218 return size; 00219 } 00220 00221 typedef boost::shared_ptr< ::point_cloud_server::StoreCloudGoal_<ContainerAllocator> > Ptr; 00222 typedef boost::shared_ptr< ::point_cloud_server::StoreCloudGoal_<ContainerAllocator> const> ConstPtr; 00223 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00224 }; // struct StoreCloudGoal 00225 typedef ::point_cloud_server::StoreCloudGoal_<std::allocator<void> > StoreCloudGoal; 00226 00227 typedef boost::shared_ptr< ::point_cloud_server::StoreCloudGoal> StoreCloudGoalPtr; 00228 typedef boost::shared_ptr< ::point_cloud_server::StoreCloudGoal const> StoreCloudGoalConstPtr; 00229 00230 00231 template<typename ContainerAllocator> 00232 std::ostream& operator<<(std::ostream& s, const ::point_cloud_server::StoreCloudGoal_<ContainerAllocator> & v) 00233 { 00234 ros::message_operations::Printer< ::point_cloud_server::StoreCloudGoal_<ContainerAllocator> >::stream(s, "", v); 00235 return s;} 00236 00237 } // namespace point_cloud_server 00238 00239 namespace ros 00240 { 00241 namespace message_traits 00242 { 00243 template<class ContainerAllocator> struct IsMessage< ::point_cloud_server::StoreCloudGoal_<ContainerAllocator> > : public TrueType {}; 00244 template<class ContainerAllocator> struct IsMessage< ::point_cloud_server::StoreCloudGoal_<ContainerAllocator> const> : public TrueType {}; 00245 template<class ContainerAllocator> 00246 struct MD5Sum< ::point_cloud_server::StoreCloudGoal_<ContainerAllocator> > { 00247 static const char* value() 00248 { 00249 return "c7a62afa81fe2ea3aa9f4e952ee31d69"; 00250 } 00251 00252 static const char* value(const ::point_cloud_server::StoreCloudGoal_<ContainerAllocator> &) { return value(); } 00253 static const uint64_t static_value1 = 0xc7a62afa81fe2ea3ULL; 00254 static const uint64_t static_value2 = 0xaa9f4e952ee31d69ULL; 00255 }; 00256 00257 template<class ContainerAllocator> 00258 struct DataType< ::point_cloud_server::StoreCloudGoal_<ContainerAllocator> > { 00259 static const char* value() 00260 { 00261 return "point_cloud_server/StoreCloudGoal"; 00262 } 00263 00264 static const char* value(const ::point_cloud_server::StoreCloudGoal_<ContainerAllocator> &) { return value(); } 00265 }; 00266 00267 template<class ContainerAllocator> 00268 struct Definition< ::point_cloud_server::StoreCloudGoal_<ContainerAllocator> > { 00269 static const char* value() 00270 { 00271 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00272 # The storage name of the point cloud.\n\ 00273 string name\n\ 00274 \n\ 00275 # The topic on which to capture a point cloud message. \n\ 00276 # If this is empty, then 'cloud' will be used instead.\n\ 00277 string topic\n\ 00278 \n\ 00279 # A point cloud to store.\n\ 00280 sensor_msgs/PointCloud2 cloud\n\ 00281 \n\ 00282 # If not empty, transforms the cloud to this frame before storing.\n\ 00283 string storage_frame_id\n\ 00284 \n\ 00285 # If not empty, transforms the cloud to this frame in the return result.\n\ 00286 string result_frame_id\n\ 00287 \n\ 00288 # A flag to determine whether to reply with the cloud.\n\ 00289 int32 action\n\ 00290 \n\ 00291 # Will get a message on topic, or store cloud.\n\ 00292 int32 STORE=0\n\ 00293 \n\ 00294 # Will get a message on a topic if it is provided, save, and return it;\n\ 00295 # otherwise just returns the existing cloud.\n\ 00296 int32 GET=1\n\ 00297 \n\ 00298 # Topic and cloud are ignored, just removes cloud from the server.\n\ 00299 int32 CLEAR=2\n\ 00300 \n\ 00301 \n\ 00302 ================================================================================\n\ 00303 MSG: sensor_msgs/PointCloud2\n\ 00304 # This message holds a collection of N-dimensional points, which may\n\ 00305 # contain additional information such as normals, intensity, etc. The\n\ 00306 # point data is stored as a binary blob, its layout described by the\n\ 00307 # contents of the \"fields\" array.\n\ 00308 \n\ 00309 # The point cloud data may be organized 2d (image-like) or 1d\n\ 00310 # (unordered). Point clouds organized as 2d images may be produced by\n\ 00311 # camera depth sensors such as stereo or time-of-flight.\n\ 00312 \n\ 00313 # Time of sensor data acquisition, and the coordinate frame ID (for 3d\n\ 00314 # points).\n\ 00315 Header header\n\ 00316 \n\ 00317 # 2D structure of the point cloud. If the cloud is unordered, height is\n\ 00318 # 1 and width is the length of the point cloud.\n\ 00319 uint32 height\n\ 00320 uint32 width\n\ 00321 \n\ 00322 # Describes the channels and their layout in the binary data blob.\n\ 00323 PointField[] fields\n\ 00324 \n\ 00325 bool is_bigendian # Is this data bigendian?\n\ 00326 uint32 point_step # Length of a point in bytes\n\ 00327 uint32 row_step # Length of a row in bytes\n\ 00328 uint8[] data # Actual point data, size is (row_step*height)\n\ 00329 \n\ 00330 bool is_dense # True if there are no invalid points\n\ 00331 \n\ 00332 ================================================================================\n\ 00333 MSG: std_msgs/Header\n\ 00334 # Standard metadata for higher-level stamped data types.\n\ 00335 # This is generally used to communicate timestamped data \n\ 00336 # in a particular coordinate frame.\n\ 00337 # \n\ 00338 # sequence ID: consecutively increasing ID \n\ 00339 uint32 seq\n\ 00340 #Two-integer timestamp that is expressed as:\n\ 00341 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00342 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00343 # time-handling sugar is provided by the client library\n\ 00344 time stamp\n\ 00345 #Frame this data is associated with\n\ 00346 # 0: no frame\n\ 00347 # 1: global frame\n\ 00348 string frame_id\n\ 00349 \n\ 00350 ================================================================================\n\ 00351 MSG: sensor_msgs/PointField\n\ 00352 # This message holds the description of one point entry in the\n\ 00353 # PointCloud2 message format.\n\ 00354 uint8 INT8 = 1\n\ 00355 uint8 UINT8 = 2\n\ 00356 uint8 INT16 = 3\n\ 00357 uint8 UINT16 = 4\n\ 00358 uint8 INT32 = 5\n\ 00359 uint8 UINT32 = 6\n\ 00360 uint8 FLOAT32 = 7\n\ 00361 uint8 FLOAT64 = 8\n\ 00362 \n\ 00363 string name # Name of field\n\ 00364 uint32 offset # Offset from start of point struct\n\ 00365 uint8 datatype # Datatype enumeration, see above\n\ 00366 uint32 count # How many elements in the field\n\ 00367 \n\ 00368 "; 00369 } 00370 00371 static const char* value(const ::point_cloud_server::StoreCloudGoal_<ContainerAllocator> &) { return value(); } 00372 }; 00373 00374 } // namespace message_traits 00375 } // namespace ros 00376 00377 namespace ros 00378 { 00379 namespace serialization 00380 { 00381 00382 template<class ContainerAllocator> struct Serializer< ::point_cloud_server::StoreCloudGoal_<ContainerAllocator> > 00383 { 00384 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00385 { 00386 stream.next(m.name); 00387 stream.next(m.topic); 00388 stream.next(m.cloud); 00389 stream.next(m.storage_frame_id); 00390 stream.next(m.result_frame_id); 00391 stream.next(m.action); 00392 } 00393 00394 ROS_DECLARE_ALLINONE_SERIALIZER; 00395 }; // struct StoreCloudGoal_ 00396 } // namespace serialization 00397 } // namespace ros 00398 00399 namespace ros 00400 { 00401 namespace message_operations 00402 { 00403 00404 template<class ContainerAllocator> 00405 struct Printer< ::point_cloud_server::StoreCloudGoal_<ContainerAllocator> > 00406 { 00407 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::point_cloud_server::StoreCloudGoal_<ContainerAllocator> & v) 00408 { 00409 s << indent << "name: "; 00410 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.name); 00411 s << indent << "topic: "; 00412 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.topic); 00413 s << indent << "cloud: "; 00414 s << std::endl; 00415 Printer< ::sensor_msgs::PointCloud2_<ContainerAllocator> >::stream(s, indent + " ", v.cloud); 00416 s << indent << "storage_frame_id: "; 00417 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.storage_frame_id); 00418 s << indent << "result_frame_id: "; 00419 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.result_frame_id); 00420 s << indent << "action: "; 00421 Printer<int32_t>::stream(s, indent + " ", v.action); 00422 } 00423 }; 00424 00425 00426 } // namespace message_operations 00427 } // namespace ros 00428 00429 #endif // POINT_CLOUD_SERVER_MESSAGE_STORECLOUDGOAL_H 00430