humanPose.h
Go to the documentation of this file.
1 /**************************************************************************************************
2  Software License Agreement (BSD License)
3 
4  Copyright (c) 2011-2013, LAR toolkit developers - University of Aveiro - http://lars.mec.ua.pt
5  All rights reserved.
6 
7  Redistribution and use in source and binary forms, with or without modification, are permitted
8  provided that the following conditions are met:
9 
10  *Redistributions of source code must retain the above copyright notice, this list of
11  conditions and the following disclaimer.
12  *Redistributions in binary form must reproduce the above copyright notice, this list of
13  conditions and the following disclaimer in the documentation and/or other materials provided
14  with the distribution.
15  *Neither the name of the University of Aveiro nor the names of its contributors may be used to
16  endorse or promote products derived from this software without specific prior written permission.
17 
18  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
19  IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20  FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
21  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22  DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
24  IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
25  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 ***************************************************************************************************/
27 /* Auto-generated by genmsg_cpp for file /home/prometeu/ros/inria_wheelchair/social_filter/msg/humanPose.msg */
28 #ifndef SOCIAL_FILTER_MESSAGE_HUMANPOSE_H
29 #define SOCIAL_FILTER_MESSAGE_HUMANPOSE_H
30 #include <string>
31 #include <vector>
32 #include <map>
33 #include <ostream>
34 #include "ros/serialization.h"
35 #include "ros/builtin_message_traits.h"
36 #include "ros/message_operations.h"
37 #include "ros/time.h"
38 
39 #include "ros/macros.h"
40 
41 #include "ros/assert.h"
42 
43 #include "std_msgs/Header.h"
44 
45 namespace social_filter
46 {
47 template <class ContainerAllocator>
48 struct humanPose_ {
50 
52  : header()
53  , id(0)
54  , x(0.0)
55  , y(0.0)
56  , theta(0.0)
57  , linear_velocity(0.0)
58  , angular_velocity(0.0)
59  {
60  }
61 
62  humanPose_(const ContainerAllocator& _alloc)
63  : header(_alloc)
64  , id(0)
65  , x(0.0)
66  , y(0.0)
67  , theta(0.0)
68  , linear_velocity(0.0)
69  , angular_velocity(0.0)
70  {
71  }
72 
73  typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
74  ::std_msgs::Header_<ContainerAllocator> header;
75 
76  typedef int8_t _id_type;
77  int8_t id;
78 
79  typedef float _x_type;
80  float x;
81 
82  typedef float _y_type;
83  float y;
84 
85  typedef float _theta_type;
86  float theta;
87 
88  typedef float _linear_velocity_type;
90 
91  typedef float _angular_velocity_type;
93 
94 
95 private:
96  static const char* __s_getDataType_() { return "social_filter/humanPose"; }
97 public:
98  ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
99 
100  ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
101 
102 private:
103  static const char* __s_getMD5Sum_() { return "ceacb455de3799af175bff49a64446eb"; }
104 public:
105  ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
106 
107  ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
108 
109 private:
110  static const char* __s_getMessageDefinition_() { return "Header header\n\
111 \n\
112 int8 id\n\
113 float32 x\n\
114 float32 y\n\
115 float32 theta\n\
116 float32 linear_velocity\n\
117 float32 angular_velocity\n\
118 ================================================================================\n\
119 MSG: std_msgs/Header\n\
120 # Standard metadata for higher-level stamped data types.\n\
121 # This is generally used to communicate timestamped data \n\
122 # in a particular coordinate frame.\n\
123 # \n\
124 # sequence ID: consecutively increasing ID \n\
125 uint32 seq\n\
126 #Two-integer timestamp that is expressed as:\n\
127 # * stamp.secs: seconds (stamp_secs) since epoch\n\
128 # * stamp.nsecs: nanoseconds since stamp_secs\n\
129 # time-handling sugar is provided by the client library\n\
130 time stamp\n\
131 #Frame this data is associated with\n\
132 # 0: no frame\n\
133 # 1: global frame\n\
134 string frame_id\n\
135 \n\
136 "; }
137 public:
138  ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
139 
140  ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
141 
142  ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
143  {
144  ros::serialization::OStream stream(write_ptr, 1000000000);
145  ros::serialization::serialize(stream, header);
146  ros::serialization::serialize(stream, id);
147  ros::serialization::serialize(stream, x);
148  ros::serialization::serialize(stream, y);
149  ros::serialization::serialize(stream, theta);
150  ros::serialization::serialize(stream, linear_velocity);
151  ros::serialization::serialize(stream, angular_velocity);
152  return stream.getData();
153  }
154 
155  ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
156  {
157  ros::serialization::IStream stream(read_ptr, 1000000000);
158  ros::serialization::deserialize(stream, header);
159  ros::serialization::deserialize(stream, id);
160  ros::serialization::deserialize(stream, x);
161  ros::serialization::deserialize(stream, y);
162  ros::serialization::deserialize(stream, theta);
163  ros::serialization::deserialize(stream, linear_velocity);
164  ros::serialization::deserialize(stream, angular_velocity);
165  return stream.getData();
166  }
167 
168  ROS_DEPRECATED virtual uint32_t serializationLength() const
169  {
170  uint32_t size = 0;
171  size += ros::serialization::serializationLength(header);
172  size += ros::serialization::serializationLength(id);
173  size += ros::serialization::serializationLength(x);
174  size += ros::serialization::serializationLength(y);
175  size += ros::serialization::serializationLength(theta);
176  size += ros::serialization::serializationLength(linear_velocity);
177  size += ros::serialization::serializationLength(angular_velocity);
178  return size;
179  }
180 
181  typedef boost::shared_ptr< ::social_filter::humanPose_<ContainerAllocator> > Ptr;
182  typedef boost::shared_ptr< ::social_filter::humanPose_<ContainerAllocator> const> ConstPtr;
183  boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
184 }; // struct humanPose
185 typedef ::social_filter::humanPose_<std::allocator<void> > humanPose;
186 
187 typedef boost::shared_ptr< ::social_filter::humanPose> humanPosePtr;
188 typedef boost::shared_ptr< ::social_filter::humanPose const> humanPoseConstPtr;
189 
190 
191 template<typename ContainerAllocator>
192 std::ostream& operator<<(std::ostream& s, const ::social_filter::humanPose_<ContainerAllocator> & v)
193 {
194  ros::message_operations::Printer< ::social_filter::humanPose_<ContainerAllocator> >::stream(s, "", v);
195  return s;}
196 
197 } // namespace social_filter
198 
199 namespace ros
200 {
201 namespace message_traits
202 {
203 template<class ContainerAllocator> struct IsMessage< ::social_filter::humanPose_<ContainerAllocator> > : public TrueType {};
204 template<class ContainerAllocator> struct IsMessage< ::social_filter::humanPose_<ContainerAllocator> const> : public TrueType {};
205 template<class ContainerAllocator>
206 struct MD5Sum< ::social_filter::humanPose_<ContainerAllocator> > {
207  static const char* value()
208  {
209  return "ceacb455de3799af175bff49a64446eb";
210  }
211 
212  static const char* value(const ::social_filter::humanPose_<ContainerAllocator> &) { return value(); }
213  static const uint64_t static_value1 = 0xceacb455de3799afULL;
214  static const uint64_t static_value2 = 0x175bff49a64446ebULL;
215 };
216 
217 template<class ContainerAllocator>
218 struct DataType< ::social_filter::humanPose_<ContainerAllocator> > {
219  static const char* value()
220  {
221  return "social_filter/humanPose";
222  }
223 
224  static const char* value(const ::social_filter::humanPose_<ContainerAllocator> &) { return value(); }
225 };
226 
227 template<class ContainerAllocator>
228 struct Definition< ::social_filter::humanPose_<ContainerAllocator> > {
229  static const char* value()
230  {
231  return "Header header\n\
232 \n\
233 int8 id\n\
234 float32 x\n\
235 float32 y\n\
236 float32 theta\n\
237 float32 linear_velocity\n\
238 float32 angular_velocity\n\
239 ================================================================================\n\
240 MSG: std_msgs/Header\n\
241 # Standard metadata for higher-level stamped data types.\n\
242 # This is generally used to communicate timestamped data \n\
243 # in a particular coordinate frame.\n\
244 # \n\
245 # sequence ID: consecutively increasing ID \n\
246 uint32 seq\n\
247 #Two-integer timestamp that is expressed as:\n\
248 # * stamp.secs: seconds (stamp_secs) since epoch\n\
249 # * stamp.nsecs: nanoseconds since stamp_secs\n\
250 # time-handling sugar is provided by the client library\n\
251 time stamp\n\
252 #Frame this data is associated with\n\
253 # 0: no frame\n\
254 # 1: global frame\n\
255 string frame_id\n\
256 \n\
257 ";
258  }
259 
260  static const char* value(const ::social_filter::humanPose_<ContainerAllocator> &) { return value(); }
261 };
262 
263 template<class ContainerAllocator> struct HasHeader< ::social_filter::humanPose_<ContainerAllocator> > : public TrueType {};
264 template<class ContainerAllocator> struct HasHeader< const ::social_filter::humanPose_<ContainerAllocator> > : public TrueType {};
265 } // namespace message_traits
266 } // namespace ros
267 
268 namespace ros
269 {
270 namespace serialization
271 {
272 
273 template<class ContainerAllocator> struct Serializer< ::social_filter::humanPose_<ContainerAllocator> >
274 {
275  template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
276  {
277  stream.next(m.header);
278  stream.next(m.id);
279  stream.next(m.x);
280  stream.next(m.y);
281  stream.next(m.theta);
282  stream.next(m.linear_velocity);
283  stream.next(m.angular_velocity);
284  }
285 
287 }; // struct humanPose_
288 } // namespace serialization
289 } // namespace ros
290 
291 namespace ros
292 {
293 namespace message_operations
294 {
295 
296 template<class ContainerAllocator>
297 struct Printer< ::social_filter::humanPose_<ContainerAllocator> >
298 {
299  template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::social_filter::humanPose_<ContainerAllocator> & v)
300  {
301  s << indent << "header: ";
302 s << std::endl;
303  Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
304  s << indent << "id: ";
305  Printer<int8_t>::stream(s, indent + " ", v.id);
306  s << indent << "x: ";
307  Printer<float>::stream(s, indent + " ", v.x);
308  s << indent << "y: ";
309  Printer<float>::stream(s, indent + " ", v.y);
310  s << indent << "theta: ";
311  Printer<float>::stream(s, indent + " ", v.theta);
312  s << indent << "linear_velocity: ";
313  Printer<float>::stream(s, indent + " ", v.linear_velocity);
314  s << indent << "angular_velocity: ";
315  Printer<float>::stream(s, indent + " ", v.angular_velocity);
316  }
317 };
318 
319 
320 } // namespace message_operations
321 } // namespace ros
322 
323 #endif // SOCIAL_FILTER_MESSAGE_HUMANPOSE_H
324 
static const char * __s_getMD5Sum_()
Definition: humanPose.h:103
boost::shared_ptr< ::social_filter::humanPose_< ContainerAllocator > const > ConstPtr
Definition: humanPose.h:182
ROS_DEPRECATED const std::string __getMD5Sum() const
Definition: humanPose.h:107
static const char * __s_getMessageDefinition_()
Definition: humanPose.h:110
static const char * __s_getDataType_()
Definition: humanPose.h:96
boost::shared_ptr< ::social_filter::humanPose_< ContainerAllocator > > Ptr
Definition: humanPose.h:181
static const char * value(const ::social_filter::humanPose_< ContainerAllocator > &)
Definition: humanPose.h:212
static ROS_DEPRECATED const std::string __s_getDataType()
Definition: humanPose.h:98
static const char * value(const ::social_filter::humanPose_< ContainerAllocator > &)
Definition: humanPose.h:224
ROS_DEPRECATED const std::string __getDataType() const
Definition: humanPose.h:100
static void stream(Stream &s, const std::string &indent, const ::social_filter::humanPose_< ContainerAllocator > &v)
Definition: humanPose.h:299
::std_msgs::Header_< ContainerAllocator > _header_type
Definition: humanPose.h:73
virtual ROS_DEPRECATED uint32_t serializationLength() const
Definition: humanPose.h:168
humanPose_< ContainerAllocator > Type
Definition: humanPose.h:49
::social_filter::humanPose_< std::allocator< void > > humanPose
Definition: humanPose.h:185
boost::shared_ptr< std::map< std::string, std::string > > __connection_header
Definition: humanPose.h:183
static ROS_DEPRECATED const std::string __s_getMessageDefinition()
Definition: humanPose.h:138
static const char * value(const ::social_filter::humanPose_< ContainerAllocator > &)
Definition: humanPose.h:260
humanPose_(const ContainerAllocator &_alloc)
Definition: humanPose.h:62
boost::shared_ptr< ::social_filter::humanPose > humanPosePtr
Definition: humanPose.h:187
::std_msgs::Header_< ContainerAllocator > header
Definition: humanPose.h:74
boost::shared_ptr< ::social_filter::humanPose const > humanPoseConstPtr
Definition: humanPose.h:188
static ROS_DEPRECATED const std::string __s_getMD5Sum()
Definition: humanPose.h:105
ROS_DEPRECATED const std::string __getMessageDefinition() const
Definition: humanPose.h:140
virtual ROS_DEPRECATED uint8_t * deserialize(uint8_t *read_ptr)
Definition: humanPose.h:155
virtual ROS_DEPRECATED uint8_t * serialize(uint8_t *write_ptr, uint32_t seq) const
Definition: humanPose.h:142


leader_follower
Author(s): Procopio Silveira Stein
autogenerated on Mon Mar 2 2015 01:32:08