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_HUMANPOSE_H
00029 #define SOCIAL_FILTER_MESSAGE_HUMANPOSE_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 "std_msgs/Header.h"
00044
00045 namespace social_filter
00046 {
00047 template <class ContainerAllocator>
00048 struct humanPose_ {
00049 typedef humanPose_<ContainerAllocator> Type;
00050
00051 humanPose_()
00052 : header()
00053 , id(0)
00054 , x(0.0)
00055 , y(0.0)
00056 , theta(0.0)
00057 , linear_velocity(0.0)
00058 , angular_velocity(0.0)
00059 {
00060 }
00061
00062 humanPose_(const ContainerAllocator& _alloc)
00063 : header(_alloc)
00064 , id(0)
00065 , x(0.0)
00066 , y(0.0)
00067 , theta(0.0)
00068 , linear_velocity(0.0)
00069 , angular_velocity(0.0)
00070 {
00071 }
00072
00073 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00074 ::std_msgs::Header_<ContainerAllocator> header;
00075
00076 typedef int8_t _id_type;
00077 int8_t id;
00078
00079 typedef float _x_type;
00080 float x;
00081
00082 typedef float _y_type;
00083 float y;
00084
00085 typedef float _theta_type;
00086 float theta;
00087
00088 typedef float _linear_velocity_type;
00089 float linear_velocity;
00090
00091 typedef float _angular_velocity_type;
00092 float angular_velocity;
00093
00094
00095 private:
00096 static const char* __s_getDataType_() { return "social_filter/humanPose"; }
00097 public:
00098 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00099
00100 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00101
00102 private:
00103 static const char* __s_getMD5Sum_() { return "ceacb455de3799af175bff49a64446eb"; }
00104 public:
00105 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00106
00107 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00108
00109 private:
00110 static const char* __s_getMessageDefinition_() { return "Header header\n\
00111 \n\
00112 int8 id\n\
00113 float32 x\n\
00114 float32 y\n\
00115 float32 theta\n\
00116 float32 linear_velocity\n\
00117 float32 angular_velocity\n\
00118 ================================================================================\n\
00119 MSG: std_msgs/Header\n\
00120 # Standard metadata for higher-level stamped data types.\n\
00121 # This is generally used to communicate timestamped data \n\
00122 # in a particular coordinate frame.\n\
00123 # \n\
00124 # sequence ID: consecutively increasing ID \n\
00125 uint32 seq\n\
00126 #Two-integer timestamp that is expressed as:\n\
00127 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00128 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00129 # time-handling sugar is provided by the client library\n\
00130 time stamp\n\
00131 #Frame this data is associated with\n\
00132 # 0: no frame\n\
00133 # 1: global frame\n\
00134 string frame_id\n\
00135 \n\
00136 "; }
00137 public:
00138 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00139
00140 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00141
00142 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00143 {
00144 ros::serialization::OStream stream(write_ptr, 1000000000);
00145 ros::serialization::serialize(stream, header);
00146 ros::serialization::serialize(stream, id);
00147 ros::serialization::serialize(stream, x);
00148 ros::serialization::serialize(stream, y);
00149 ros::serialization::serialize(stream, theta);
00150 ros::serialization::serialize(stream, linear_velocity);
00151 ros::serialization::serialize(stream, angular_velocity);
00152 return stream.getData();
00153 }
00154
00155 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00156 {
00157 ros::serialization::IStream stream(read_ptr, 1000000000);
00158 ros::serialization::deserialize(stream, header);
00159 ros::serialization::deserialize(stream, id);
00160 ros::serialization::deserialize(stream, x);
00161 ros::serialization::deserialize(stream, y);
00162 ros::serialization::deserialize(stream, theta);
00163 ros::serialization::deserialize(stream, linear_velocity);
00164 ros::serialization::deserialize(stream, angular_velocity);
00165 return stream.getData();
00166 }
00167
00168 ROS_DEPRECATED virtual uint32_t serializationLength() const
00169 {
00170 uint32_t size = 0;
00171 size += ros::serialization::serializationLength(header);
00172 size += ros::serialization::serializationLength(id);
00173 size += ros::serialization::serializationLength(x);
00174 size += ros::serialization::serializationLength(y);
00175 size += ros::serialization::serializationLength(theta);
00176 size += ros::serialization::serializationLength(linear_velocity);
00177 size += ros::serialization::serializationLength(angular_velocity);
00178 return size;
00179 }
00180
00181 typedef boost::shared_ptr< ::social_filter::humanPose_<ContainerAllocator> > Ptr;
00182 typedef boost::shared_ptr< ::social_filter::humanPose_<ContainerAllocator> const> ConstPtr;
00183 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00184 };
00185 typedef ::social_filter::humanPose_<std::allocator<void> > humanPose;
00186
00187 typedef boost::shared_ptr< ::social_filter::humanPose> humanPosePtr;
00188 typedef boost::shared_ptr< ::social_filter::humanPose const> humanPoseConstPtr;
00189
00190
00191 template<typename ContainerAllocator>
00192 std::ostream& operator<<(std::ostream& s, const ::social_filter::humanPose_<ContainerAllocator> & v)
00193 {
00194 ros::message_operations::Printer< ::social_filter::humanPose_<ContainerAllocator> >::stream(s, "", v);
00195 return s;}
00196
00197 }
00198
00199 namespace ros
00200 {
00201 namespace message_traits
00202 {
00203 template<class ContainerAllocator> struct IsMessage< ::social_filter::humanPose_<ContainerAllocator> > : public TrueType {};
00204 template<class ContainerAllocator> struct IsMessage< ::social_filter::humanPose_<ContainerAllocator> const> : public TrueType {};
00205 template<class ContainerAllocator>
00206 struct MD5Sum< ::social_filter::humanPose_<ContainerAllocator> > {
00207 static const char* value()
00208 {
00209 return "ceacb455de3799af175bff49a64446eb";
00210 }
00211
00212 static const char* value(const ::social_filter::humanPose_<ContainerAllocator> &) { return value(); }
00213 static const uint64_t static_value1 = 0xceacb455de3799afULL;
00214 static const uint64_t static_value2 = 0x175bff49a64446ebULL;
00215 };
00216
00217 template<class ContainerAllocator>
00218 struct DataType< ::social_filter::humanPose_<ContainerAllocator> > {
00219 static const char* value()
00220 {
00221 return "social_filter/humanPose";
00222 }
00223
00224 static const char* value(const ::social_filter::humanPose_<ContainerAllocator> &) { return value(); }
00225 };
00226
00227 template<class ContainerAllocator>
00228 struct Definition< ::social_filter::humanPose_<ContainerAllocator> > {
00229 static const char* value()
00230 {
00231 return "Header header\n\
00232 \n\
00233 int8 id\n\
00234 float32 x\n\
00235 float32 y\n\
00236 float32 theta\n\
00237 float32 linear_velocity\n\
00238 float32 angular_velocity\n\
00239 ================================================================================\n\
00240 MSG: std_msgs/Header\n\
00241 # Standard metadata for higher-level stamped data types.\n\
00242 # This is generally used to communicate timestamped data \n\
00243 # in a particular coordinate frame.\n\
00244 # \n\
00245 # sequence ID: consecutively increasing ID \n\
00246 uint32 seq\n\
00247 #Two-integer timestamp that is expressed as:\n\
00248 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00249 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00250 # time-handling sugar is provided by the client library\n\
00251 time stamp\n\
00252 #Frame this data is associated with\n\
00253 # 0: no frame\n\
00254 # 1: global frame\n\
00255 string frame_id\n\
00256 \n\
00257 ";
00258 }
00259
00260 static const char* value(const ::social_filter::humanPose_<ContainerAllocator> &) { return value(); }
00261 };
00262
00263 template<class ContainerAllocator> struct HasHeader< ::social_filter::humanPose_<ContainerAllocator> > : public TrueType {};
00264 template<class ContainerAllocator> struct HasHeader< const ::social_filter::humanPose_<ContainerAllocator> > : public TrueType {};
00265 }
00266 }
00267
00268 namespace ros
00269 {
00270 namespace serialization
00271 {
00272
00273 template<class ContainerAllocator> struct Serializer< ::social_filter::humanPose_<ContainerAllocator> >
00274 {
00275 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00276 {
00277 stream.next(m.header);
00278 stream.next(m.id);
00279 stream.next(m.x);
00280 stream.next(m.y);
00281 stream.next(m.theta);
00282 stream.next(m.linear_velocity);
00283 stream.next(m.angular_velocity);
00284 }
00285
00286 ROS_DECLARE_ALLINONE_SERIALIZER;
00287 };
00288 }
00289 }
00290
00291 namespace ros
00292 {
00293 namespace message_operations
00294 {
00295
00296 template<class ContainerAllocator>
00297 struct Printer< ::social_filter::humanPose_<ContainerAllocator> >
00298 {
00299 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::social_filter::humanPose_<ContainerAllocator> & v)
00300 {
00301 s << indent << "header: ";
00302 s << std::endl;
00303 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00304 s << indent << "id: ";
00305 Printer<int8_t>::stream(s, indent + " ", v.id);
00306 s << indent << "x: ";
00307 Printer<float>::stream(s, indent + " ", v.x);
00308 s << indent << "y: ";
00309 Printer<float>::stream(s, indent + " ", v.y);
00310 s << indent << "theta: ";
00311 Printer<float>::stream(s, indent + " ", v.theta);
00312 s << indent << "linear_velocity: ";
00313 Printer<float>::stream(s, indent + " ", v.linear_velocity);
00314 s << indent << "angular_velocity: ";
00315 Printer<float>::stream(s, indent + " ", v.angular_velocity);
00316 }
00317 };
00318
00319
00320 }
00321 }
00322
00323 #endif // SOCIAL_FILTER_MESSAGE_HUMANPOSE_H
00324