00001
00002 #ifndef COLLISION_ENVIRONMENT_MSGS_MESSAGE_CLOUDSETTINGS_H
00003 #define COLLISION_ENVIRONMENT_MSGS_MESSAGE_CLOUDSETTINGS_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
00014 namespace collision_environment_msgs
00015 {
00016 template <class ContainerAllocator>
00017 struct CloudSettings_ : public ros::Message
00018 {
00019 typedef CloudSettings_<ContainerAllocator> Type;
00020
00021 CloudSettings_()
00022 : cloud_name()
00023 , static_publish(0)
00024 , dynamic_publish(0)
00025 {
00026 }
00027
00028 CloudSettings_(const ContainerAllocator& _alloc)
00029 : cloud_name(_alloc)
00030 , static_publish(0)
00031 , dynamic_publish(0)
00032 {
00033 }
00034
00035 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _cloud_name_type;
00036 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > cloud_name;
00037
00038 typedef int32_t _static_publish_type;
00039 int32_t static_publish;
00040
00041 typedef int32_t _dynamic_publish_type;
00042 int32_t dynamic_publish;
00043
00044 enum { INCLUDE = 1 };
00045 enum { EXCLUDE = 2 };
00046
00047 private:
00048 static const char* __s_getDataType_() { return "collision_environment_msgs/CloudSettings"; }
00049 public:
00050 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00051
00052 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00053
00054 private:
00055 static const char* __s_getMD5Sum_() { return "b6d0a1851b3076beb1a3c9670f479de9"; }
00056 public:
00057 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00058
00059 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00060
00061 private:
00062 static const char* __s_getMessageDefinition_() { return "string cloud_name\n\
00063 int32 static_publish\n\
00064 int32 dynamic_publish\n\
00065 int32 INCLUDE = 1\n\
00066 int32 EXCLUDE = 2\n\
00067 \n\
00068 "; }
00069 public:
00070 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00071
00072 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00073
00074 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00075 {
00076 ros::serialization::OStream stream(write_ptr, 1000000000);
00077 ros::serialization::serialize(stream, cloud_name);
00078 ros::serialization::serialize(stream, static_publish);
00079 ros::serialization::serialize(stream, dynamic_publish);
00080 return stream.getData();
00081 }
00082
00083 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00084 {
00085 ros::serialization::IStream stream(read_ptr, 1000000000);
00086 ros::serialization::deserialize(stream, cloud_name);
00087 ros::serialization::deserialize(stream, static_publish);
00088 ros::serialization::deserialize(stream, dynamic_publish);
00089 return stream.getData();
00090 }
00091
00092 ROS_DEPRECATED virtual uint32_t serializationLength() const
00093 {
00094 uint32_t size = 0;
00095 size += ros::serialization::serializationLength(cloud_name);
00096 size += ros::serialization::serializationLength(static_publish);
00097 size += ros::serialization::serializationLength(dynamic_publish);
00098 return size;
00099 }
00100
00101 typedef boost::shared_ptr< ::collision_environment_msgs::CloudSettings_<ContainerAllocator> > Ptr;
00102 typedef boost::shared_ptr< ::collision_environment_msgs::CloudSettings_<ContainerAllocator> const> ConstPtr;
00103 };
00104 typedef ::collision_environment_msgs::CloudSettings_<std::allocator<void> > CloudSettings;
00105
00106 typedef boost::shared_ptr< ::collision_environment_msgs::CloudSettings> CloudSettingsPtr;
00107 typedef boost::shared_ptr< ::collision_environment_msgs::CloudSettings const> CloudSettingsConstPtr;
00108
00109
00110 template<typename ContainerAllocator>
00111 std::ostream& operator<<(std::ostream& s, const ::collision_environment_msgs::CloudSettings_<ContainerAllocator> & v)
00112 {
00113 ros::message_operations::Printer< ::collision_environment_msgs::CloudSettings_<ContainerAllocator> >::stream(s, "", v);
00114 return s;}
00115
00116 }
00117
00118 namespace ros
00119 {
00120 namespace message_traits
00121 {
00122 template<class ContainerAllocator>
00123 struct MD5Sum< ::collision_environment_msgs::CloudSettings_<ContainerAllocator> > {
00124 static const char* value()
00125 {
00126 return "b6d0a1851b3076beb1a3c9670f479de9";
00127 }
00128
00129 static const char* value(const ::collision_environment_msgs::CloudSettings_<ContainerAllocator> &) { return value(); }
00130 static const uint64_t static_value1 = 0xb6d0a1851b3076beULL;
00131 static const uint64_t static_value2 = 0xb1a3c9670f479de9ULL;
00132 };
00133
00134 template<class ContainerAllocator>
00135 struct DataType< ::collision_environment_msgs::CloudSettings_<ContainerAllocator> > {
00136 static const char* value()
00137 {
00138 return "collision_environment_msgs/CloudSettings";
00139 }
00140
00141 static const char* value(const ::collision_environment_msgs::CloudSettings_<ContainerAllocator> &) { return value(); }
00142 };
00143
00144 template<class ContainerAllocator>
00145 struct Definition< ::collision_environment_msgs::CloudSettings_<ContainerAllocator> > {
00146 static const char* value()
00147 {
00148 return "string cloud_name\n\
00149 int32 static_publish\n\
00150 int32 dynamic_publish\n\
00151 int32 INCLUDE = 1\n\
00152 int32 EXCLUDE = 2\n\
00153 \n\
00154 ";
00155 }
00156
00157 static const char* value(const ::collision_environment_msgs::CloudSettings_<ContainerAllocator> &) { return value(); }
00158 };
00159
00160 }
00161 }
00162
00163 namespace ros
00164 {
00165 namespace serialization
00166 {
00167
00168 template<class ContainerAllocator> struct Serializer< ::collision_environment_msgs::CloudSettings_<ContainerAllocator> >
00169 {
00170 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00171 {
00172 stream.next(m.cloud_name);
00173 stream.next(m.static_publish);
00174 stream.next(m.dynamic_publish);
00175 }
00176
00177 ROS_DECLARE_ALLINONE_SERIALIZER;
00178 };
00179 }
00180 }
00181
00182 namespace ros
00183 {
00184 namespace message_operations
00185 {
00186
00187 template<class ContainerAllocator>
00188 struct Printer< ::collision_environment_msgs::CloudSettings_<ContainerAllocator> >
00189 {
00190 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::collision_environment_msgs::CloudSettings_<ContainerAllocator> & v)
00191 {
00192 s << indent << "cloud_name: ";
00193 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.cloud_name);
00194 s << indent << "static_publish: ";
00195 Printer<int32_t>::stream(s, indent + " ", v.static_publish);
00196 s << indent << "dynamic_publish: ";
00197 Printer<int32_t>::stream(s, indent + " ", v.dynamic_publish);
00198 }
00199 };
00200
00201
00202 }
00203 }
00204
00205 #endif // COLLISION_ENVIRONMENT_MSGS_MESSAGE_CLOUDSETTINGS_H
00206