humanPoses.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/humanPoses.msg */
28 #ifndef SOCIAL_FILTER_MESSAGE_HUMANPOSES_H
29 #define SOCIAL_FILTER_MESSAGE_HUMANPOSES_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 "humanPose.h"
44 
45 namespace social_filter
46 {
47 template <class ContainerAllocator>
48 struct humanPoses_ {
50 
52  : humans()
53  {
54  }
55 
56  humanPoses_(const ContainerAllocator& _alloc)
57  : humans(_alloc)
58  {
59  }
60 
61  typedef std::vector< ::social_filter::humanPose_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::social_filter::humanPose_<ContainerAllocator> >::other > _humans_type;
62  std::vector< ::social_filter::humanPose_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::social_filter::humanPose_<ContainerAllocator> >::other > humans;
63 
64 
65  ROS_DEPRECATED uint32_t get_humans_size() const { return (uint32_t)humans.size(); }
66  ROS_DEPRECATED void set_humans_size(uint32_t size) { humans.resize((size_t)size); }
67  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; }
68  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; }
69 private:
70  static const char* __s_getDataType_() { return "social_filter/humanPoses"; }
71 public:
72  ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
73 
74  ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
75 
76 private:
77  static const char* __s_getMD5Sum_() { return "3e3887214c20e063a19ab3e7d9f3fb4c"; }
78 public:
79  ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
80 
81  ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
82 
83 private:
84  static const char* __s_getMessageDefinition_() { return "humanPose[] humans\n\
85 ================================================================================\n\
86 MSG: social_filter/humanPose\n\
87 Header header\n\
88 \n\
89 int8 id\n\
90 float32 x\n\
91 float32 y\n\
92 float32 theta\n\
93 float32 linear_velocity\n\
94 float32 angular_velocity\n\
95 ================================================================================\n\
96 MSG: std_msgs/Header\n\
97 # Standard metadata for higher-level stamped data types.\n\
98 # This is generally used to communicate timestamped data \n\
99 # in a particular coordinate frame.\n\
100 # \n\
101 # sequence ID: consecutively increasing ID \n\
102 uint32 seq\n\
103 #Two-integer timestamp that is expressed as:\n\
104 # * stamp.secs: seconds (stamp_secs) since epoch\n\
105 # * stamp.nsecs: nanoseconds since stamp_secs\n\
106 # time-handling sugar is provided by the client library\n\
107 time stamp\n\
108 #Frame this data is associated with\n\
109 # 0: no frame\n\
110 # 1: global frame\n\
111 string frame_id\n\
112 \n\
113 "; }
114 public:
115  ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
116 
117  ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
118 
119  ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
120  {
121  ros::serialization::OStream stream(write_ptr, 1000000000);
122  ros::serialization::serialize(stream, humans);
123  return stream.getData();
124  }
125 
126  ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
127  {
128  ros::serialization::IStream stream(read_ptr, 1000000000);
129  ros::serialization::deserialize(stream, humans);
130  return stream.getData();
131  }
132 
133  ROS_DEPRECATED virtual uint32_t serializationLength() const
134  {
135  uint32_t size = 0;
136  size += ros::serialization::serializationLength(humans);
137  return size;
138  }
139 
140  typedef boost::shared_ptr< ::social_filter::humanPoses_<ContainerAllocator> > Ptr;
141  typedef boost::shared_ptr< ::social_filter::humanPoses_<ContainerAllocator> const> ConstPtr;
142  boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
143 }; // struct humanPoses
144 typedef ::social_filter::humanPoses_<std::allocator<void> > humanPoses;
145 
146 typedef boost::shared_ptr< ::social_filter::humanPoses> humanPosesPtr;
147 typedef boost::shared_ptr< ::social_filter::humanPoses const> humanPosesConstPtr;
148 
149 
150 template<typename ContainerAllocator>
151 std::ostream& operator<<(std::ostream& s, const ::social_filter::humanPoses_<ContainerAllocator> & v)
152 {
153  ros::message_operations::Printer< ::social_filter::humanPoses_<ContainerAllocator> >::stream(s, "", v);
154  return s;}
155 
156 } // namespace social_filter
157 
158 namespace ros
159 {
160 namespace message_traits
161 {
162 template<class ContainerAllocator> struct IsMessage< ::social_filter::humanPoses_<ContainerAllocator> > : public TrueType {};
163 template<class ContainerAllocator> struct IsMessage< ::social_filter::humanPoses_<ContainerAllocator> const> : public TrueType {};
164 template<class ContainerAllocator>
165 struct MD5Sum< ::social_filter::humanPoses_<ContainerAllocator> > {
166  static const char* value()
167  {
168  return "3e3887214c20e063a19ab3e7d9f3fb4c";
169  }
170 
171  static const char* value(const ::social_filter::humanPoses_<ContainerAllocator> &) { return value(); }
172  static const uint64_t static_value1 = 0x3e3887214c20e063ULL;
173  static const uint64_t static_value2 = 0xa19ab3e7d9f3fb4cULL;
174 };
175 
176 template<class ContainerAllocator>
177 struct DataType< ::social_filter::humanPoses_<ContainerAllocator> > {
178  static const char* value()
179  {
180  return "social_filter/humanPoses";
181  }
182 
183  static const char* value(const ::social_filter::humanPoses_<ContainerAllocator> &) { return value(); }
184 };
185 
186 template<class ContainerAllocator>
187 struct Definition< ::social_filter::humanPoses_<ContainerAllocator> > {
188  static const char* value()
189  {
190  return "humanPose[] humans\n\
191 ================================================================================\n\
192 MSG: social_filter/humanPose\n\
193 Header header\n\
194 \n\
195 int8 id\n\
196 float32 x\n\
197 float32 y\n\
198 float32 theta\n\
199 float32 linear_velocity\n\
200 float32 angular_velocity\n\
201 ================================================================================\n\
202 MSG: std_msgs/Header\n\
203 # Standard metadata for higher-level stamped data types.\n\
204 # This is generally used to communicate timestamped data \n\
205 # in a particular coordinate frame.\n\
206 # \n\
207 # sequence ID: consecutively increasing ID \n\
208 uint32 seq\n\
209 #Two-integer timestamp that is expressed as:\n\
210 # * stamp.secs: seconds (stamp_secs) since epoch\n\
211 # * stamp.nsecs: nanoseconds since stamp_secs\n\
212 # time-handling sugar is provided by the client library\n\
213 time stamp\n\
214 #Frame this data is associated with\n\
215 # 0: no frame\n\
216 # 1: global frame\n\
217 string frame_id\n\
218 \n\
219 ";
220  }
221 
222  static const char* value(const ::social_filter::humanPoses_<ContainerAllocator> &) { return value(); }
223 };
224 
225 } // namespace message_traits
226 } // namespace ros
227 
228 namespace ros
229 {
230 namespace serialization
231 {
232 
233 template<class ContainerAllocator> struct Serializer< ::social_filter::humanPoses_<ContainerAllocator> >
234 {
235  template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
236  {
237  stream.next(m.humans);
238  }
239 
241 }; // struct humanPoses_
242 } // namespace serialization
243 } // namespace ros
244 
245 namespace ros
246 {
247 namespace message_operations
248 {
249 
250 template<class ContainerAllocator>
251 struct Printer< ::social_filter::humanPoses_<ContainerAllocator> >
252 {
253  template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::social_filter::humanPoses_<ContainerAllocator> & v)
254  {
255  s << indent << "humans[]" << std::endl;
256  for (size_t i = 0; i < v.humans.size(); ++i)
257  {
258  s << indent << " humans[" << i << "]: ";
259  s << std::endl;
260  s << indent;
261  Printer< ::social_filter::humanPose_<ContainerAllocator> >::stream(s, indent + " ", v.humans[i]);
262  }
263  }
264 };
265 
266 
267 } // namespace message_operations
268 } // namespace ros
269 
270 #endif // SOCIAL_FILTER_MESSAGE_HUMANPOSES_H
271 
ROS_DEPRECATED void set_humans_vec(const std::vector< ::social_filter::humanPose_< ContainerAllocator >, typename ContainerAllocator::template rebind< ::social_filter::humanPose_< ContainerAllocator > >::other > &vec)
Definition: humanPoses.h:68
static const char * __s_getMD5Sum_()
Definition: humanPoses.h:77
ROS_DEPRECATED const std::string __getDataType() const
Definition: humanPoses.h:74
ROS_DEPRECATED const std::string __getMD5Sum() const
Definition: humanPoses.h:81
static const char * value(const ::social_filter::humanPoses_< ContainerAllocator > &)
Definition: humanPoses.h:183
ROS_DEPRECATED void get_humans_vec(std::vector< ::social_filter::humanPose_< ContainerAllocator >, typename ContainerAllocator::template rebind< ::social_filter::humanPose_< ContainerAllocator > >::other > &vec) const
Definition: humanPoses.h:67
ROS_DEPRECATED uint32_t get_humans_size() const
Definition: humanPoses.h:65
static void stream(Stream &s, const std::string &indent, const ::social_filter::humanPoses_< ContainerAllocator > &v)
Definition: humanPoses.h:253
static const char * value(const ::social_filter::humanPoses_< ContainerAllocator > &)
Definition: humanPoses.h:222
virtual ROS_DEPRECATED uint8_t * deserialize(uint8_t *read_ptr)
Definition: humanPoses.h:126
static const char * __s_getDataType_()
Definition: humanPoses.h:70
humanPoses_< ContainerAllocator > Type
Definition: humanPoses.h:49
std::vector< ::social_filter::humanPose_< ContainerAllocator >, typename ContainerAllocator::template rebind< ::social_filter::humanPose_< ContainerAllocator > >::other > _humans_type
Definition: humanPoses.h:61
std::vector< ::social_filter::humanPose_< ContainerAllocator >, typename ContainerAllocator::template rebind< ::social_filter::humanPose_< ContainerAllocator > >::other > humans
Definition: humanPoses.h:62
boost::shared_ptr< ::social_filter::humanPoses_< ContainerAllocator > > Ptr
Definition: humanPoses.h:140
static ROS_DEPRECATED const std::string __s_getDataType()
Definition: humanPoses.h:72
static ROS_DEPRECATED const std::string __s_getMessageDefinition()
Definition: humanPoses.h:115
ROS_DEPRECATED void set_humans_size(uint32_t size)
Definition: humanPoses.h:66
static ROS_DEPRECATED const std::string __s_getMD5Sum()
Definition: humanPoses.h:79
boost::shared_ptr< ::social_filter::humanPoses const > humanPosesConstPtr
Definition: humanPoses.h:147
boost::shared_ptr< std::map< std::string, std::string > > __connection_header
Definition: humanPoses.h:142
boost::shared_ptr< ::social_filter::humanPoses > humanPosesPtr
Definition: humanPoses.h:146
ROS_DEPRECATED const std::string __getMessageDefinition() const
Definition: humanPoses.h:117
static const char * value(const ::social_filter::humanPoses_< ContainerAllocator > &)
Definition: humanPoses.h:171
humanPoses_(const ContainerAllocator &_alloc)
Definition: humanPoses.h:56
virtual ROS_DEPRECATED uint32_t serializationLength() const
Definition: humanPoses.h:133
boost::shared_ptr< ::social_filter::humanPoses_< ContainerAllocator > const > ConstPtr
Definition: humanPoses.h:141
virtual ROS_DEPRECATED uint8_t * serialize(uint8_t *write_ptr, uint32_t seq) const
Definition: humanPoses.h:119
::social_filter::humanPoses_< std::allocator< void > > humanPoses
Definition: humanPoses.h:144
static const char * __s_getMessageDefinition_()
Definition: humanPoses.h:84


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