00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef SOCIAL_FILTER_MESSAGE_HUMANPOSES_H
00029 #define SOCIAL_FILTER_MESSAGE_HUMANPOSES_H
00030 #include <string>
00031 #include <vector>
00032 #include <map>
00033 #include <ostream>
00034 #include "ros/serialization.h"
00035 #include "ros/builtin_message_traits.h"
00036 #include "ros/message_operations.h"
00037 #include "ros/time.h"
00038
00039 #include "ros/macros.h"
00040
00041 #include "ros/assert.h"
00042
00043 #include "humanPose.h"
00044
00045 namespace social_filter
00046 {
00047 template <class ContainerAllocator>
00048 struct humanPoses_ {
00049 typedef humanPoses_<ContainerAllocator> Type;
00050
00051 humanPoses_()
00052 : humans()
00053 {
00054 }
00055
00056 humanPoses_(const ContainerAllocator& _alloc)
00057 : humans(_alloc)
00058 {
00059 }
00060
00061 typedef std::vector< ::social_filter::humanPose_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::social_filter::humanPose_<ContainerAllocator> >::other > _humans_type;
00062 std::vector< ::social_filter::humanPose_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::social_filter::humanPose_<ContainerAllocator> >::other > humans;
00063
00064
00065 ROS_DEPRECATED uint32_t get_humans_size() const { return (uint32_t)humans.size(); }
00066 ROS_DEPRECATED void set_humans_size(uint32_t size) { humans.resize((size_t)size); }
00067 ROS_DEPRECATED void get_humans_vec(std::vector< ::social_filter::humanPose_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::social_filter::humanPose_<ContainerAllocator> >::other > & vec) const { vec = this->humans; }
00068 ROS_DEPRECATED void set_humans_vec(const std::vector< ::social_filter::humanPose_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::social_filter::humanPose_<ContainerAllocator> >::other > & vec) { this->humans = vec; }
00069 private:
00070 static const char* __s_getDataType_() { return "social_filter/humanPoses"; }
00071 public:
00072 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00073
00074 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00075
00076 private:
00077 static const char* __s_getMD5Sum_() { return "3e3887214c20e063a19ab3e7d9f3fb4c"; }
00078 public:
00079 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00080
00081 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00082
00083 private:
00084 static const char* __s_getMessageDefinition_() { return "humanPose[] humans\n\
00085 ================================================================================\n\
00086 MSG: social_filter/humanPose\n\
00087 Header header\n\
00088 \n\
00089 int8 id\n\
00090 float32 x\n\
00091 float32 y\n\
00092 float32 theta\n\
00093 float32 linear_velocity\n\
00094 float32 angular_velocity\n\
00095 ================================================================================\n\
00096 MSG: std_msgs/Header\n\
00097 # Standard metadata for higher-level stamped data types.\n\
00098 # This is generally used to communicate timestamped data \n\
00099 # in a particular coordinate frame.\n\
00100 # \n\
00101 # sequence ID: consecutively increasing ID \n\
00102 uint32 seq\n\
00103 #Two-integer timestamp that is expressed as:\n\
00104 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00105 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00106 # time-handling sugar is provided by the client library\n\
00107 time stamp\n\
00108 #Frame this data is associated with\n\
00109 # 0: no frame\n\
00110 # 1: global frame\n\
00111 string frame_id\n\
00112 \n\
00113 "; }
00114 public:
00115 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00116
00117 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00118
00119 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00120 {
00121 ros::serialization::OStream stream(write_ptr, 1000000000);
00122 ros::serialization::serialize(stream, humans);
00123 return stream.getData();
00124 }
00125
00126 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00127 {
00128 ros::serialization::IStream stream(read_ptr, 1000000000);
00129 ros::serialization::deserialize(stream, humans);
00130 return stream.getData();
00131 }
00132
00133 ROS_DEPRECATED virtual uint32_t serializationLength() const
00134 {
00135 uint32_t size = 0;
00136 size += ros::serialization::serializationLength(humans);
00137 return size;
00138 }
00139
00140 typedef boost::shared_ptr< ::social_filter::humanPoses_<ContainerAllocator> > Ptr;
00141 typedef boost::shared_ptr< ::social_filter::humanPoses_<ContainerAllocator> const> ConstPtr;
00142 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00143 };
00144 typedef ::social_filter::humanPoses_<std::allocator<void> > humanPoses;
00145
00146 typedef boost::shared_ptr< ::social_filter::humanPoses> humanPosesPtr;
00147 typedef boost::shared_ptr< ::social_filter::humanPoses const> humanPosesConstPtr;
00148
00149
00150 template<typename ContainerAllocator>
00151 std::ostream& operator<<(std::ostream& s, const ::social_filter::humanPoses_<ContainerAllocator> & v)
00152 {
00153 ros::message_operations::Printer< ::social_filter::humanPoses_<ContainerAllocator> >::stream(s, "", v);
00154 return s;}
00155
00156 }
00157
00158 namespace ros
00159 {
00160 namespace message_traits
00161 {
00162 template<class ContainerAllocator> struct IsMessage< ::social_filter::humanPoses_<ContainerAllocator> > : public TrueType {};
00163 template<class ContainerAllocator> struct IsMessage< ::social_filter::humanPoses_<ContainerAllocator> const> : public TrueType {};
00164 template<class ContainerAllocator>
00165 struct MD5Sum< ::social_filter::humanPoses_<ContainerAllocator> > {
00166 static const char* value()
00167 {
00168 return "3e3887214c20e063a19ab3e7d9f3fb4c";
00169 }
00170
00171 static const char* value(const ::social_filter::humanPoses_<ContainerAllocator> &) { return value(); }
00172 static const uint64_t static_value1 = 0x3e3887214c20e063ULL;
00173 static const uint64_t static_value2 = 0xa19ab3e7d9f3fb4cULL;
00174 };
00175
00176 template<class ContainerAllocator>
00177 struct DataType< ::social_filter::humanPoses_<ContainerAllocator> > {
00178 static const char* value()
00179 {
00180 return "social_filter/humanPoses";
00181 }
00182
00183 static const char* value(const ::social_filter::humanPoses_<ContainerAllocator> &) { return value(); }
00184 };
00185
00186 template<class ContainerAllocator>
00187 struct Definition< ::social_filter::humanPoses_<ContainerAllocator> > {
00188 static const char* value()
00189 {
00190 return "humanPose[] humans\n\
00191 ================================================================================\n\
00192 MSG: social_filter/humanPose\n\
00193 Header header\n\
00194 \n\
00195 int8 id\n\
00196 float32 x\n\
00197 float32 y\n\
00198 float32 theta\n\
00199 float32 linear_velocity\n\
00200 float32 angular_velocity\n\
00201 ================================================================================\n\
00202 MSG: std_msgs/Header\n\
00203 # Standard metadata for higher-level stamped data types.\n\
00204 # This is generally used to communicate timestamped data \n\
00205 # in a particular coordinate frame.\n\
00206 # \n\
00207 # sequence ID: consecutively increasing ID \n\
00208 uint32 seq\n\
00209 #Two-integer timestamp that is expressed as:\n\
00210 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00211 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00212 # time-handling sugar is provided by the client library\n\
00213 time stamp\n\
00214 #Frame this data is associated with\n\
00215 # 0: no frame\n\
00216 # 1: global frame\n\
00217 string frame_id\n\
00218 \n\
00219 ";
00220 }
00221
00222 static const char* value(const ::social_filter::humanPoses_<ContainerAllocator> &) { return value(); }
00223 };
00224
00225 }
00226 }
00227
00228 namespace ros
00229 {
00230 namespace serialization
00231 {
00232
00233 template<class ContainerAllocator> struct Serializer< ::social_filter::humanPoses_<ContainerAllocator> >
00234 {
00235 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00236 {
00237 stream.next(m.humans);
00238 }
00239
00240 ROS_DECLARE_ALLINONE_SERIALIZER;
00241 };
00242 }
00243 }
00244
00245 namespace ros
00246 {
00247 namespace message_operations
00248 {
00249
00250 template<class ContainerAllocator>
00251 struct Printer< ::social_filter::humanPoses_<ContainerAllocator> >
00252 {
00253 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::social_filter::humanPoses_<ContainerAllocator> & v)
00254 {
00255 s << indent << "humans[]" << std::endl;
00256 for (size_t i = 0; i < v.humans.size(); ++i)
00257 {
00258 s << indent << " humans[" << i << "]: ";
00259 s << std::endl;
00260 s << indent;
00261 Printer< ::social_filter::humanPose_<ContainerAllocator> >::stream(s, indent + " ", v.humans[i]);
00262 }
00263 }
00264 };
00265
00266
00267 }
00268 }
00269
00270 #endif // SOCIAL_FILTER_MESSAGE_HUMANPOSES_H
00271