Go to the documentation of this file.00001
00002 #ifndef HRL_LIB_MESSAGE_NUMPYARRAY_H
00003 #define HRL_LIB_MESSAGE_NUMPYARRAY_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 hrl_lib
00020 {
00021 template <class ContainerAllocator>
00022 struct NumpyArray_ {
00023 typedef NumpyArray_<ContainerAllocator> Type;
00024
00025 NumpyArray_()
00026 : header()
00027 , data()
00028 , shape()
00029 , dtype()
00030 {
00031 }
00032
00033 NumpyArray_(const ContainerAllocator& _alloc)
00034 : header(_alloc)
00035 , data(_alloc)
00036 , shape(_alloc)
00037 , dtype(_alloc)
00038 {
00039 }
00040
00041 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00042 ::std_msgs::Header_<ContainerAllocator> header;
00043
00044 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _data_type;
00045 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > data;
00046
00047 typedef std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > _shape_type;
00048 std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > shape;
00049
00050 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _dtype_type;
00051 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > dtype;
00052
00053
00054 typedef boost::shared_ptr< ::hrl_lib::NumpyArray_<ContainerAllocator> > Ptr;
00055 typedef boost::shared_ptr< ::hrl_lib::NumpyArray_<ContainerAllocator> const> ConstPtr;
00056 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00057 };
00058 typedef ::hrl_lib::NumpyArray_<std::allocator<void> > NumpyArray;
00059
00060 typedef boost::shared_ptr< ::hrl_lib::NumpyArray> NumpyArrayPtr;
00061 typedef boost::shared_ptr< ::hrl_lib::NumpyArray const> NumpyArrayConstPtr;
00062
00063
00064 template<typename ContainerAllocator>
00065 std::ostream& operator<<(std::ostream& s, const ::hrl_lib::NumpyArray_<ContainerAllocator> & v)
00066 {
00067 ros::message_operations::Printer< ::hrl_lib::NumpyArray_<ContainerAllocator> >::stream(s, "", v);
00068 return s;}
00069
00070 }
00071
00072 namespace ros
00073 {
00074 namespace message_traits
00075 {
00076 template<class ContainerAllocator> struct IsMessage< ::hrl_lib::NumpyArray_<ContainerAllocator> > : public TrueType {};
00077 template<class ContainerAllocator> struct IsMessage< ::hrl_lib::NumpyArray_<ContainerAllocator> const> : public TrueType {};
00078 template<class ContainerAllocator>
00079 struct MD5Sum< ::hrl_lib::NumpyArray_<ContainerAllocator> > {
00080 static const char* value()
00081 {
00082 return "18efe15e5e1ff3c15a2573bddc555f1b";
00083 }
00084
00085 static const char* value(const ::hrl_lib::NumpyArray_<ContainerAllocator> &) { return value(); }
00086 static const uint64_t static_value1 = 0x18efe15e5e1ff3c1ULL;
00087 static const uint64_t static_value2 = 0x5a2573bddc555f1bULL;
00088 };
00089
00090 template<class ContainerAllocator>
00091 struct DataType< ::hrl_lib::NumpyArray_<ContainerAllocator> > {
00092 static const char* value()
00093 {
00094 return "hrl_lib/NumpyArray";
00095 }
00096
00097 static const char* value(const ::hrl_lib::NumpyArray_<ContainerAllocator> &) { return value(); }
00098 };
00099
00100 template<class ContainerAllocator>
00101 struct Definition< ::hrl_lib::NumpyArray_<ContainerAllocator> > {
00102 static const char* value()
00103 {
00104 return "Header header\n\
00105 string data\n\
00106 int32[] shape\n\
00107 string dtype\n\
00108 \n\
00109 ================================================================================\n\
00110 MSG: std_msgs/Header\n\
00111 # Standard metadata for higher-level stamped data types.\n\
00112 # This is generally used to communicate timestamped data \n\
00113 # in a particular coordinate frame.\n\
00114 # \n\
00115 # sequence ID: consecutively increasing ID \n\
00116 uint32 seq\n\
00117 #Two-integer timestamp that is expressed as:\n\
00118 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00119 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00120 # time-handling sugar is provided by the client library\n\
00121 time stamp\n\
00122 #Frame this data is associated with\n\
00123 # 0: no frame\n\
00124 # 1: global frame\n\
00125 string frame_id\n\
00126 \n\
00127 ";
00128 }
00129
00130 static const char* value(const ::hrl_lib::NumpyArray_<ContainerAllocator> &) { return value(); }
00131 };
00132
00133 template<class ContainerAllocator> struct HasHeader< ::hrl_lib::NumpyArray_<ContainerAllocator> > : public TrueType {};
00134 template<class ContainerAllocator> struct HasHeader< const ::hrl_lib::NumpyArray_<ContainerAllocator> > : public TrueType {};
00135 }
00136 }
00137
00138 namespace ros
00139 {
00140 namespace serialization
00141 {
00142
00143 template<class ContainerAllocator> struct Serializer< ::hrl_lib::NumpyArray_<ContainerAllocator> >
00144 {
00145 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00146 {
00147 stream.next(m.header);
00148 stream.next(m.data);
00149 stream.next(m.shape);
00150 stream.next(m.dtype);
00151 }
00152
00153 ROS_DECLARE_ALLINONE_SERIALIZER;
00154 };
00155 }
00156 }
00157
00158 namespace ros
00159 {
00160 namespace message_operations
00161 {
00162
00163 template<class ContainerAllocator>
00164 struct Printer< ::hrl_lib::NumpyArray_<ContainerAllocator> >
00165 {
00166 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::hrl_lib::NumpyArray_<ContainerAllocator> & v)
00167 {
00168 s << indent << "header: ";
00169 s << std::endl;
00170 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00171 s << indent << "data: ";
00172 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.data);
00173 s << indent << "shape[]" << std::endl;
00174 for (size_t i = 0; i < v.shape.size(); ++i)
00175 {
00176 s << indent << " shape[" << i << "]: ";
00177 Printer<int32_t>::stream(s, indent + " ", v.shape[i]);
00178 }
00179 s << indent << "dtype: ";
00180 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.dtype);
00181 }
00182 };
00183
00184
00185 }
00186 }
00187
00188 #endif // HRL_LIB_MESSAGE_NUMPYARRAY_H
00189
hrl_lib
Author(s): Cressel Anderson, Travis Deyle, Advait Jain, Hai Nguyen, Advisor: Prof. Charlie Kemp, Lab: Healthcare Robotics Lab at Georgia Tech
autogenerated on Wed Nov 27 2013 11:34:06