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