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