Go to the documentation of this file.00001
00002 #ifndef TELEKYB_MSGS_MESSAGE_BEHAVIOR_H
00003 #define TELEKYB_MSGS_MESSAGE_BEHAVIOR_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 "std_msgs/Header.h"
00018
00019 namespace telekyb_msgs
00020 {
00021 template <class ContainerAllocator>
00022 struct Behavior_ {
00023 typedef Behavior_<ContainerAllocator> Type;
00024
00025 Behavior_()
00026 : header()
00027 , behaviorID(0)
00028 , behaviorName()
00029 {
00030 }
00031
00032 Behavior_(const ContainerAllocator& _alloc)
00033 : header(_alloc)
00034 , behaviorID(0)
00035 , behaviorName(_alloc)
00036 {
00037 }
00038
00039 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00040 ::std_msgs::Header_<ContainerAllocator> header;
00041
00042 typedef uint64_t _behaviorID_type;
00043 uint64_t behaviorID;
00044
00045 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _behaviorName_type;
00046 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > behaviorName;
00047
00048
00049 typedef boost::shared_ptr< ::telekyb_msgs::Behavior_<ContainerAllocator> > Ptr;
00050 typedef boost::shared_ptr< ::telekyb_msgs::Behavior_<ContainerAllocator> const> ConstPtr;
00051 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00052 };
00053 typedef ::telekyb_msgs::Behavior_<std::allocator<void> > Behavior;
00054
00055 typedef boost::shared_ptr< ::telekyb_msgs::Behavior> BehaviorPtr;
00056 typedef boost::shared_ptr< ::telekyb_msgs::Behavior const> BehaviorConstPtr;
00057
00058
00059 template<typename ContainerAllocator>
00060 std::ostream& operator<<(std::ostream& s, const ::telekyb_msgs::Behavior_<ContainerAllocator> & v)
00061 {
00062 ros::message_operations::Printer< ::telekyb_msgs::Behavior_<ContainerAllocator> >::stream(s, "", v);
00063 return s;}
00064
00065 }
00066
00067 namespace ros
00068 {
00069 namespace message_traits
00070 {
00071 template<class ContainerAllocator> struct IsMessage< ::telekyb_msgs::Behavior_<ContainerAllocator> > : public TrueType {};
00072 template<class ContainerAllocator> struct IsMessage< ::telekyb_msgs::Behavior_<ContainerAllocator> const> : public TrueType {};
00073 template<class ContainerAllocator>
00074 struct MD5Sum< ::telekyb_msgs::Behavior_<ContainerAllocator> > {
00075 static const char* value()
00076 {
00077 return "c07cc78ced021dda3f94e8bfcaf99488";
00078 }
00079
00080 static const char* value(const ::telekyb_msgs::Behavior_<ContainerAllocator> &) { return value(); }
00081 static const uint64_t static_value1 = 0xc07cc78ced021ddaULL;
00082 static const uint64_t static_value2 = 0x3f94e8bfcaf99488ULL;
00083 };
00084
00085 template<class ContainerAllocator>
00086 struct DataType< ::telekyb_msgs::Behavior_<ContainerAllocator> > {
00087 static const char* value()
00088 {
00089 return "telekyb_msgs/Behavior";
00090 }
00091
00092 static const char* value(const ::telekyb_msgs::Behavior_<ContainerAllocator> &) { return value(); }
00093 };
00094
00095 template<class ContainerAllocator>
00096 struct Definition< ::telekyb_msgs::Behavior_<ContainerAllocator> > {
00097 static const char* value()
00098 {
00099 return "#\n\
00100 # Copyright 2011 Antonio Franchi and Martin Riedel \n\
00101 #\n\
00102 # This file is part of TeleKyb.\n\
00103 #\n\
00104 # TeleKyb is free software: you can redistribute it and/or modify\n\
00105 # it under the terms of the GNU General Public License as published by\n\
00106 # the Free Software Foundation, either version 3 of the License, or\n\
00107 # (at your option) any later version.\n\
00108 #\n\
00109 # TeleKyb is distributed in the hope that it will be useful,\n\
00110 # but WITHOUT ANY WARRANTY; without even the implied warranty of\n\
00111 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n\
00112 # GNU General Public License for more details.\n\
00113 #\n\
00114 # You should have received a copy of the GNU General Public License\n\
00115 # along with TeleKyb. If not, see <http://www.gnu.org/licenses/>.\n\
00116 \n\
00117 # Message to Inform Client of Behavior Changes.\n\
00118 Header header\n\
00119 \n\
00120 uint64 behaviorID\n\
00121 string behaviorName\n\
00122 \n\
00123 ================================================================================\n\
00124 MSG: std_msgs/Header\n\
00125 # Standard metadata for higher-level stamped data types.\n\
00126 # This is generally used to communicate timestamped data \n\
00127 # in a particular coordinate frame.\n\
00128 # \n\
00129 # sequence ID: consecutively increasing ID \n\
00130 uint32 seq\n\
00131 #Two-integer timestamp that is expressed as:\n\
00132 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00133 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00134 # time-handling sugar is provided by the client library\n\
00135 time stamp\n\
00136 #Frame this data is associated with\n\
00137 # 0: no frame\n\
00138 # 1: global frame\n\
00139 string frame_id\n\
00140 \n\
00141 ";
00142 }
00143
00144 static const char* value(const ::telekyb_msgs::Behavior_<ContainerAllocator> &) { return value(); }
00145 };
00146
00147 template<class ContainerAllocator> struct HasHeader< ::telekyb_msgs::Behavior_<ContainerAllocator> > : public TrueType {};
00148 template<class ContainerAllocator> struct HasHeader< const ::telekyb_msgs::Behavior_<ContainerAllocator> > : public TrueType {};
00149 }
00150 }
00151
00152 namespace ros
00153 {
00154 namespace serialization
00155 {
00156
00157 template<class ContainerAllocator> struct Serializer< ::telekyb_msgs::Behavior_<ContainerAllocator> >
00158 {
00159 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00160 {
00161 stream.next(m.header);
00162 stream.next(m.behaviorID);
00163 stream.next(m.behaviorName);
00164 }
00165
00166 ROS_DECLARE_ALLINONE_SERIALIZER;
00167 };
00168 }
00169 }
00170
00171 namespace ros
00172 {
00173 namespace message_operations
00174 {
00175
00176 template<class ContainerAllocator>
00177 struct Printer< ::telekyb_msgs::Behavior_<ContainerAllocator> >
00178 {
00179 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::telekyb_msgs::Behavior_<ContainerAllocator> & v)
00180 {
00181 s << indent << "header: ";
00182 s << std::endl;
00183 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00184 s << indent << "behaviorID: ";
00185 Printer<uint64_t>::stream(s, indent + " ", v.behaviorID);
00186 s << indent << "behaviorName: ";
00187 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.behaviorName);
00188 }
00189 };
00190
00191
00192 }
00193 }
00194
00195 #endif // TELEKYB_MSGS_MESSAGE_BEHAVIOR_H
00196