Go to the documentation of this file.00001
00002 #ifndef LFD_COMMON_MESSAGE_STATE_H
00003 #define LFD_COMMON_MESSAGE_STATE_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
00018 namespace lfd_common
00019 {
00020 template <class ContainerAllocator>
00021 struct state_ {
00022 typedef state_<ContainerAllocator> Type;
00023
00024 state_()
00025 : state_vector()
00026 {
00027 }
00028
00029 state_(const ContainerAllocator& _alloc)
00030 : state_vector(_alloc)
00031 {
00032 }
00033
00034 typedef std::vector<float, typename ContainerAllocator::template rebind<float>::other > _state_vector_type;
00035 std::vector<float, typename ContainerAllocator::template rebind<float>::other > state_vector;
00036
00037
00038 typedef boost::shared_ptr< ::lfd_common::state_<ContainerAllocator> > Ptr;
00039 typedef boost::shared_ptr< ::lfd_common::state_<ContainerAllocator> const> ConstPtr;
00040 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00041 };
00042 typedef ::lfd_common::state_<std::allocator<void> > state;
00043
00044 typedef boost::shared_ptr< ::lfd_common::state> statePtr;
00045 typedef boost::shared_ptr< ::lfd_common::state const> stateConstPtr;
00046
00047
00048 template<typename ContainerAllocator>
00049 std::ostream& operator<<(std::ostream& s, const ::lfd_common::state_<ContainerAllocator> & v)
00050 {
00051 ros::message_operations::Printer< ::lfd_common::state_<ContainerAllocator> >::stream(s, "", v);
00052 return s;}
00053
00054 }
00055
00056 namespace ros
00057 {
00058 namespace message_traits
00059 {
00060 template<class ContainerAllocator> struct IsMessage< ::lfd_common::state_<ContainerAllocator> > : public TrueType {};
00061 template<class ContainerAllocator> struct IsMessage< ::lfd_common::state_<ContainerAllocator> const> : public TrueType {};
00062 template<class ContainerAllocator>
00063 struct MD5Sum< ::lfd_common::state_<ContainerAllocator> > {
00064 static const char* value()
00065 {
00066 return "78f573f9a37da9007417681c9dfa3fca";
00067 }
00068
00069 static const char* value(const ::lfd_common::state_<ContainerAllocator> &) { return value(); }
00070 static const uint64_t static_value1 = 0x78f573f9a37da900ULL;
00071 static const uint64_t static_value2 = 0x7417681c9dfa3fcaULL;
00072 };
00073
00074 template<class ContainerAllocator>
00075 struct DataType< ::lfd_common::state_<ContainerAllocator> > {
00076 static const char* value()
00077 {
00078 return "lfd_common/state";
00079 }
00080
00081 static const char* value(const ::lfd_common::state_<ContainerAllocator> &) { return value(); }
00082 };
00083
00084 template<class ContainerAllocator>
00085 struct Definition< ::lfd_common::state_<ContainerAllocator> > {
00086 static const char* value()
00087 {
00088 return "# The state vector\n\
00089 float32[] state_vector\n\
00090 \n\
00091 ";
00092 }
00093
00094 static const char* value(const ::lfd_common::state_<ContainerAllocator> &) { return value(); }
00095 };
00096
00097 }
00098 }
00099
00100 namespace ros
00101 {
00102 namespace serialization
00103 {
00104
00105 template<class ContainerAllocator> struct Serializer< ::lfd_common::state_<ContainerAllocator> >
00106 {
00107 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00108 {
00109 stream.next(m.state_vector);
00110 }
00111
00112 ROS_DECLARE_ALLINONE_SERIALIZER;
00113 };
00114 }
00115 }
00116
00117 namespace ros
00118 {
00119 namespace message_operations
00120 {
00121
00122 template<class ContainerAllocator>
00123 struct Printer< ::lfd_common::state_<ContainerAllocator> >
00124 {
00125 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::lfd_common::state_<ContainerAllocator> & v)
00126 {
00127 s << indent << "state_vector[]" << std::endl;
00128 for (size_t i = 0; i < v.state_vector.size(); ++i)
00129 {
00130 s << indent << " state_vector[" << i << "]: ";
00131 Printer<float>::stream(s, indent + " ", v.state_vector[i]);
00132 }
00133 }
00134 };
00135
00136
00137 }
00138 }
00139
00140 #endif // LFD_COMMON_MESSAGE_STATE_H
00141