TrajectoryObservation.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/trajectory_simulator/msg/TrajectoryObservation.msg */
28 #ifndef TRAJECTORY_SIMULATOR_MESSAGE_TRAJECTORYOBSERVATION_H
29 #define TRAJECTORY_SIMULATOR_MESSAGE_TRAJECTORYOBSERVATION_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 #include "geometry_msgs/Pose2D.h"
45 #include "geometry_msgs/Pose2D.h"
46 
47 namespace trajectory_simulator
48 {
49 template <class ContainerAllocator>
52 
54  : header()
55  , object_id(0)
56  , type(0)
57  , pose()
58  , velocity()
59  {
60  }
61 
62  TrajectoryObservation_(const ContainerAllocator& _alloc)
63  : header(_alloc)
64  , object_id(0)
65  , type(0)
66  , pose(_alloc)
67  , velocity(_alloc)
68  {
69  }
70 
71  typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
72  ::std_msgs::Header_<ContainerAllocator> header;
73 
74  typedef uint32_t _object_id_type;
75  uint32_t object_id;
76 
77  typedef uint8_t _type_type;
78  uint8_t type;
79 
80  typedef ::geometry_msgs::Pose2D_<ContainerAllocator> _pose_type;
81  ::geometry_msgs::Pose2D_<ContainerAllocator> pose;
82 
83  typedef ::geometry_msgs::Pose2D_<ContainerAllocator> _velocity_type;
84  ::geometry_msgs::Pose2D_<ContainerAllocator> velocity;
85 
86  enum { FIRST = 1 };
87  enum { LAST = 2 };
88 
89 private:
90  static const char* __s_getDataType_() { return "trajectory_simulator/TrajectoryObservation"; }
91 public:
92  ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
93 
94  ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
95 
96 private:
97  static const char* __s_getMD5Sum_() { return "9a527b2825637f568c9382ecb8750bba"; }
98 public:
99  ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
100 
101  ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
102 
103 private:
104  static const char* __s_getMessageDefinition_() { return "uint8 FIRST = 1\n\
105 uint8 LAST = 2\n\
106 Header header\n\
107 uint32 object_id\n\
108 uint8 type\n\
109 geometry_msgs/Pose2D pose\n\
110 geometry_msgs/Pose2D velocity\n\
111 \n\
112 ================================================================================\n\
113 MSG: std_msgs/Header\n\
114 # Standard metadata for higher-level stamped data types.\n\
115 # This is generally used to communicate timestamped data \n\
116 # in a particular coordinate frame.\n\
117 # \n\
118 # sequence ID: consecutively increasing ID \n\
119 uint32 seq\n\
120 #Two-integer timestamp that is expressed as:\n\
121 # * stamp.secs: seconds (stamp_secs) since epoch\n\
122 # * stamp.nsecs: nanoseconds since stamp_secs\n\
123 # time-handling sugar is provided by the client library\n\
124 time stamp\n\
125 #Frame this data is associated with\n\
126 # 0: no frame\n\
127 # 1: global frame\n\
128 string frame_id\n\
129 \n\
130 ================================================================================\n\
131 MSG: geometry_msgs/Pose2D\n\
132 # This expresses a position and orientation on a 2D manifold.\n\
133 \n\
134 float64 x\n\
135 float64 y\n\
136 float64 theta\n\
137 "; }
138 public:
139  ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
140 
141  ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
142 
143  ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
144  {
145  ros::serialization::OStream stream(write_ptr, 1000000000);
146  ros::serialization::serialize(stream, header);
147  ros::serialization::serialize(stream, object_id);
148  ros::serialization::serialize(stream, type);
149  ros::serialization::serialize(stream, pose);
150  ros::serialization::serialize(stream, velocity);
151  return stream.getData();
152  }
153 
154  ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
155  {
156  ros::serialization::IStream stream(read_ptr, 1000000000);
157  ros::serialization::deserialize(stream, header);
158  ros::serialization::deserialize(stream, object_id);
159  ros::serialization::deserialize(stream, type);
160  ros::serialization::deserialize(stream, pose);
161  ros::serialization::deserialize(stream, velocity);
162  return stream.getData();
163  }
164 
165  ROS_DEPRECATED virtual uint32_t serializationLength() const
166  {
167  uint32_t size = 0;
168  size += ros::serialization::serializationLength(header);
169  size += ros::serialization::serializationLength(object_id);
170  size += ros::serialization::serializationLength(type);
171  size += ros::serialization::serializationLength(pose);
172  size += ros::serialization::serializationLength(velocity);
173  return size;
174  }
175 
176  typedef boost::shared_ptr< ::trajectory_simulator::TrajectoryObservation_<ContainerAllocator> > Ptr;
177  typedef boost::shared_ptr< ::trajectory_simulator::TrajectoryObservation_<ContainerAllocator> const> ConstPtr;
178  boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
179 }; // struct TrajectoryObservation
180 typedef ::trajectory_simulator::TrajectoryObservation_<std::allocator<void> > TrajectoryObservation;
181 
182 typedef boost::shared_ptr< ::trajectory_simulator::TrajectoryObservation> TrajectoryObservationPtr;
183 typedef boost::shared_ptr< ::trajectory_simulator::TrajectoryObservation const> TrajectoryObservationConstPtr;
184 
185 
186 template<typename ContainerAllocator>
187 std::ostream& operator<<(std::ostream& s, const ::trajectory_simulator::TrajectoryObservation_<ContainerAllocator> & v)
188 {
189  ros::message_operations::Printer< ::trajectory_simulator::TrajectoryObservation_<ContainerAllocator> >::stream(s, "", v);
190  return s;}
191 
192 } // namespace trajectory_simulator
193 
194 namespace ros
195 {
196 namespace message_traits
197 {
198 template<class ContainerAllocator> struct IsMessage< ::trajectory_simulator::TrajectoryObservation_<ContainerAllocator> > : public TrueType {};
199 template<class ContainerAllocator> struct IsMessage< ::trajectory_simulator::TrajectoryObservation_<ContainerAllocator> const> : public TrueType {};
200 template<class ContainerAllocator>
201 struct MD5Sum< ::trajectory_simulator::TrajectoryObservation_<ContainerAllocator> > {
202  static const char* value()
203  {
204  return "9a527b2825637f568c9382ecb8750bba";
205  }
206 
207  static const char* value(const ::trajectory_simulator::TrajectoryObservation_<ContainerAllocator> &) { return value(); }
208  static const uint64_t static_value1 = 0x9a527b2825637f56ULL;
209  static const uint64_t static_value2 = 0x8c9382ecb8750bbaULL;
210 };
211 
212 template<class ContainerAllocator>
213 struct DataType< ::trajectory_simulator::TrajectoryObservation_<ContainerAllocator> > {
214  static const char* value()
215  {
216  return "trajectory_simulator/TrajectoryObservation";
217  }
218 
219  static const char* value(const ::trajectory_simulator::TrajectoryObservation_<ContainerAllocator> &) { return value(); }
220 };
221 
222 template<class ContainerAllocator>
223 struct Definition< ::trajectory_simulator::TrajectoryObservation_<ContainerAllocator> > {
224  static const char* value()
225  {
226  return "uint8 FIRST = 1\n\
227 uint8 LAST = 2\n\
228 Header header\n\
229 uint32 object_id\n\
230 uint8 type\n\
231 geometry_msgs/Pose2D pose\n\
232 geometry_msgs/Pose2D velocity\n\
233 \n\
234 ================================================================================\n\
235 MSG: std_msgs/Header\n\
236 # Standard metadata for higher-level stamped data types.\n\
237 # This is generally used to communicate timestamped data \n\
238 # in a particular coordinate frame.\n\
239 # \n\
240 # sequence ID: consecutively increasing ID \n\
241 uint32 seq\n\
242 #Two-integer timestamp that is expressed as:\n\
243 # * stamp.secs: seconds (stamp_secs) since epoch\n\
244 # * stamp.nsecs: nanoseconds since stamp_secs\n\
245 # time-handling sugar is provided by the client library\n\
246 time stamp\n\
247 #Frame this data is associated with\n\
248 # 0: no frame\n\
249 # 1: global frame\n\
250 string frame_id\n\
251 \n\
252 ================================================================================\n\
253 MSG: geometry_msgs/Pose2D\n\
254 # This expresses a position and orientation on a 2D manifold.\n\
255 \n\
256 float64 x\n\
257 float64 y\n\
258 float64 theta\n\
259 ";
260  }
261 
262  static const char* value(const ::trajectory_simulator::TrajectoryObservation_<ContainerAllocator> &) { return value(); }
263 };
264 
265 template<class ContainerAllocator> struct HasHeader< ::trajectory_simulator::TrajectoryObservation_<ContainerAllocator> > : public TrueType {};
266 template<class ContainerAllocator> struct HasHeader< const ::trajectory_simulator::TrajectoryObservation_<ContainerAllocator> > : public TrueType {};
267 } // namespace message_traits
268 } // namespace ros
269 
270 namespace ros
271 {
272 namespace serialization
273 {
274 
275 template<class ContainerAllocator> struct Serializer< ::trajectory_simulator::TrajectoryObservation_<ContainerAllocator> >
276 {
277  template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
278  {
279  stream.next(m.header);
280  stream.next(m.object_id);
281  stream.next(m.type);
282  stream.next(m.pose);
283  stream.next(m.velocity);
284  }
285 
287 }; // struct TrajectoryObservation_
288 } // namespace serialization
289 } // namespace ros
290 
291 namespace ros
292 {
293 namespace message_operations
294 {
295 
296 template<class ContainerAllocator>
297 struct Printer< ::trajectory_simulator::TrajectoryObservation_<ContainerAllocator> >
298 {
299  template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::trajectory_simulator::TrajectoryObservation_<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 << "object_id: ";
305  Printer<uint32_t>::stream(s, indent + " ", v.object_id);
306  s << indent << "type: ";
307  Printer<uint8_t>::stream(s, indent + " ", v.type);
308  s << indent << "pose: ";
309 s << std::endl;
310  Printer< ::geometry_msgs::Pose2D_<ContainerAllocator> >::stream(s, indent + " ", v.pose);
311  s << indent << "velocity: ";
312 s << std::endl;
313  Printer< ::geometry_msgs::Pose2D_<ContainerAllocator> >::stream(s, indent + " ", v.velocity);
314  }
315 };
316 
317 
318 } // namespace message_operations
319 } // namespace ros
320 
321 #endif // TRAJECTORY_SIMULATOR_MESSAGE_TRAJECTORYOBSERVATION_H
322 
::geometry_msgs::Pose2D_< ContainerAllocator > _pose_type
virtual ROS_DEPRECATED uint8_t * deserialize(uint8_t *read_ptr)
static const char * value(const ::trajectory_simulator::TrajectoryObservation_< ContainerAllocator > &)
static ROS_DEPRECATED const std::string __s_getDataType()
virtual ROS_DEPRECATED uint8_t * serialize(uint8_t *write_ptr, uint32_t seq) const
static const char * value(const ::trajectory_simulator::TrajectoryObservation_< ContainerAllocator > &)
boost::shared_ptr< std::map< std::string, std::string > > __connection_header
static const char * value(const ::trajectory_simulator::TrajectoryObservation_< ContainerAllocator > &)
boost::shared_ptr< ::trajectory_simulator::TrajectoryObservation_< ContainerAllocator > > Ptr
TrajectoryObservation_(const ContainerAllocator &_alloc)
::std_msgs::Header_< ContainerAllocator > _header_type
::geometry_msgs::Pose2D_< ContainerAllocator > velocity
static ROS_DEPRECATED const std::string __s_getMessageDefinition()
TrajectoryObservation_< ContainerAllocator > Type
::geometry_msgs::Pose2D_< ContainerAllocator > _velocity_type
boost::shared_ptr< ::trajectory_simulator::TrajectoryObservation const > TrajectoryObservationConstPtr
boost::shared_ptr< ::trajectory_simulator::TrajectoryObservation_< ContainerAllocator > const > ConstPtr
ROS_DEPRECATED const std::string __getMD5Sum() const
static ROS_DEPRECATED const std::string __s_getMD5Sum()
ROS_DEPRECATED const std::string __getMessageDefinition() const
static void stream(Stream &s, const std::string &indent, const ::trajectory_simulator::TrajectoryObservation_< ContainerAllocator > &v)
::geometry_msgs::Pose2D_< ContainerAllocator > pose
::std_msgs::Header_< ContainerAllocator > header
virtual ROS_DEPRECATED uint32_t serializationLength() const
ROS_DEPRECATED const std::string __getDataType() const
::trajectory_simulator::TrajectoryObservation_< std::allocator< void > > TrajectoryObservation
boost::shared_ptr< ::trajectory_simulator::TrajectoryObservation > TrajectoryObservationPtr


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