00001
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 typedef boost::shared_ptr< ::point_cloud_server::StoreCloudGoal_<ContainerAllocator> > Ptr;
00068 typedef boost::shared_ptr< ::point_cloud_server::StoreCloudGoal_<ContainerAllocator> const> ConstPtr;
00069 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00070 };
00071 typedef ::point_cloud_server::StoreCloudGoal_<std::allocator<void> > StoreCloudGoal;
00072
00073 typedef boost::shared_ptr< ::point_cloud_server::StoreCloudGoal> StoreCloudGoalPtr;
00074 typedef boost::shared_ptr< ::point_cloud_server::StoreCloudGoal const> StoreCloudGoalConstPtr;
00075
00076
00077 template<typename ContainerAllocator>
00078 std::ostream& operator<<(std::ostream& s, const ::point_cloud_server::StoreCloudGoal_<ContainerAllocator> & v)
00079 {
00080 ros::message_operations::Printer< ::point_cloud_server::StoreCloudGoal_<ContainerAllocator> >::stream(s, "", v);
00081 return s;}
00082
00083 }
00084
00085 namespace ros
00086 {
00087 namespace message_traits
00088 {
00089 template<class ContainerAllocator> struct IsMessage< ::point_cloud_server::StoreCloudGoal_<ContainerAllocator> > : public TrueType {};
00090 template<class ContainerAllocator> struct IsMessage< ::point_cloud_server::StoreCloudGoal_<ContainerAllocator> const> : public TrueType {};
00091 template<class ContainerAllocator>
00092 struct MD5Sum< ::point_cloud_server::StoreCloudGoal_<ContainerAllocator> > {
00093 static const char* value()
00094 {
00095 return "c7a62afa81fe2ea3aa9f4e952ee31d69";
00096 }
00097
00098 static const char* value(const ::point_cloud_server::StoreCloudGoal_<ContainerAllocator> &) { return value(); }
00099 static const uint64_t static_value1 = 0xc7a62afa81fe2ea3ULL;
00100 static const uint64_t static_value2 = 0xaa9f4e952ee31d69ULL;
00101 };
00102
00103 template<class ContainerAllocator>
00104 struct DataType< ::point_cloud_server::StoreCloudGoal_<ContainerAllocator> > {
00105 static const char* value()
00106 {
00107 return "point_cloud_server/StoreCloudGoal";
00108 }
00109
00110 static const char* value(const ::point_cloud_server::StoreCloudGoal_<ContainerAllocator> &) { return value(); }
00111 };
00112
00113 template<class ContainerAllocator>
00114 struct Definition< ::point_cloud_server::StoreCloudGoal_<ContainerAllocator> > {
00115 static const char* value()
00116 {
00117 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00118 # The storage name of the point cloud.\n\
00119 string name\n\
00120 \n\
00121 # The topic on which to capture a point cloud message. \n\
00122 # If this is empty, then 'cloud' will be used instead.\n\
00123 string topic\n\
00124 \n\
00125 # A point cloud to store.\n\
00126 sensor_msgs/PointCloud2 cloud\n\
00127 \n\
00128 # If not empty, transforms the cloud to this frame before storing.\n\
00129 string storage_frame_id\n\
00130 \n\
00131 # If not empty, transforms the cloud to this frame in the return result.\n\
00132 string result_frame_id\n\
00133 \n\
00134 # A flag to determine whether to reply with the cloud.\n\
00135 int32 action\n\
00136 \n\
00137 # Will get a message on topic, or store cloud.\n\
00138 int32 STORE=0\n\
00139 \n\
00140 # Will get a message on a topic if it is provided, save, and return it;\n\
00141 # otherwise just returns the existing cloud.\n\
00142 int32 GET=1\n\
00143 \n\
00144 # Topic and cloud are ignored, just removes cloud from the server.\n\
00145 int32 CLEAR=2\n\
00146 \n\
00147 \n\
00148 ================================================================================\n\
00149 MSG: sensor_msgs/PointCloud2\n\
00150 # This message holds a collection of N-dimensional points, which may\n\
00151 # contain additional information such as normals, intensity, etc. The\n\
00152 # point data is stored as a binary blob, its layout described by the\n\
00153 # contents of the \"fields\" array.\n\
00154 \n\
00155 # The point cloud data may be organized 2d (image-like) or 1d\n\
00156 # (unordered). Point clouds organized as 2d images may be produced by\n\
00157 # camera depth sensors such as stereo or time-of-flight.\n\
00158 \n\
00159 # Time of sensor data acquisition, and the coordinate frame ID (for 3d\n\
00160 # points).\n\
00161 Header header\n\
00162 \n\
00163 # 2D structure of the point cloud. If the cloud is unordered, height is\n\
00164 # 1 and width is the length of the point cloud.\n\
00165 uint32 height\n\
00166 uint32 width\n\
00167 \n\
00168 # Describes the channels and their layout in the binary data blob.\n\
00169 PointField[] fields\n\
00170 \n\
00171 bool is_bigendian # Is this data bigendian?\n\
00172 uint32 point_step # Length of a point in bytes\n\
00173 uint32 row_step # Length of a row in bytes\n\
00174 uint8[] data # Actual point data, size is (row_step*height)\n\
00175 \n\
00176 bool is_dense # True if there are no invalid points\n\
00177 \n\
00178 ================================================================================\n\
00179 MSG: std_msgs/Header\n\
00180 # Standard metadata for higher-level stamped data types.\n\
00181 # This is generally used to communicate timestamped data \n\
00182 # in a particular coordinate frame.\n\
00183 # \n\
00184 # sequence ID: consecutively increasing ID \n\
00185 uint32 seq\n\
00186 #Two-integer timestamp that is expressed as:\n\
00187 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00188 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00189 # time-handling sugar is provided by the client library\n\
00190 time stamp\n\
00191 #Frame this data is associated with\n\
00192 # 0: no frame\n\
00193 # 1: global frame\n\
00194 string frame_id\n\
00195 \n\
00196 ================================================================================\n\
00197 MSG: sensor_msgs/PointField\n\
00198 # This message holds the description of one point entry in the\n\
00199 # PointCloud2 message format.\n\
00200 uint8 INT8 = 1\n\
00201 uint8 UINT8 = 2\n\
00202 uint8 INT16 = 3\n\
00203 uint8 UINT16 = 4\n\
00204 uint8 INT32 = 5\n\
00205 uint8 UINT32 = 6\n\
00206 uint8 FLOAT32 = 7\n\
00207 uint8 FLOAT64 = 8\n\
00208 \n\
00209 string name # Name of field\n\
00210 uint32 offset # Offset from start of point struct\n\
00211 uint8 datatype # Datatype enumeration, see above\n\
00212 uint32 count # How many elements in the field\n\
00213 \n\
00214 ";
00215 }
00216
00217 static const char* value(const ::point_cloud_server::StoreCloudGoal_<ContainerAllocator> &) { return value(); }
00218 };
00219
00220 }
00221 }
00222
00223 namespace ros
00224 {
00225 namespace serialization
00226 {
00227
00228 template<class ContainerAllocator> struct Serializer< ::point_cloud_server::StoreCloudGoal_<ContainerAllocator> >
00229 {
00230 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00231 {
00232 stream.next(m.name);
00233 stream.next(m.topic);
00234 stream.next(m.cloud);
00235 stream.next(m.storage_frame_id);
00236 stream.next(m.result_frame_id);
00237 stream.next(m.action);
00238 }
00239
00240 ROS_DECLARE_ALLINONE_SERIALIZER;
00241 };
00242 }
00243 }
00244
00245 namespace ros
00246 {
00247 namespace message_operations
00248 {
00249
00250 template<class ContainerAllocator>
00251 struct Printer< ::point_cloud_server::StoreCloudGoal_<ContainerAllocator> >
00252 {
00253 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::point_cloud_server::StoreCloudGoal_<ContainerAllocator> & v)
00254 {
00255 s << indent << "name: ";
00256 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.name);
00257 s << indent << "topic: ";
00258 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.topic);
00259 s << indent << "cloud: ";
00260 s << std::endl;
00261 Printer< ::sensor_msgs::PointCloud2_<ContainerAllocator> >::stream(s, indent + " ", v.cloud);
00262 s << indent << "storage_frame_id: ";
00263 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.storage_frame_id);
00264 s << indent << "result_frame_id: ";
00265 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.result_frame_id);
00266 s << indent << "action: ";
00267 Printer<int32_t>::stream(s, indent + " ", v.action);
00268 }
00269 };
00270
00271
00272 }
00273 }
00274
00275 #endif // POINT_CLOUD_SERVER_MESSAGE_STORECLOUDGOAL_H
00276