00001
00002 #ifndef DYNAMIC_OBS_MSGS_MESSAGE_DYNAMICOBSTACLE_H
00003 #define DYNAMIC_OBS_MSGS_MESSAGE_DYNAMICOBSTACLE_H
00004 #include <string>
00005 #include <vector>
00006 #include <ostream>
00007 #include "ros/serialization.h"
00008 #include "ros/builtin_message_traits.h"
00009 #include "ros/message_operations.h"
00010 #include "ros/message.h"
00011 #include "ros/time.h"
00012
00013 #include "dynamic_obs_msgs/DynObsTrajectory.h"
00014
00015 namespace dynamic_obs_msgs
00016 {
00017 template <class ContainerAllocator>
00018 struct DynamicObstacle_ : public ros::Message
00019 {
00020 typedef DynamicObstacle_<ContainerAllocator> Type;
00021
00022 DynamicObstacle_()
00023 : radius(0.0)
00024 , trajectories()
00025 {
00026 }
00027
00028 DynamicObstacle_(const ContainerAllocator& _alloc)
00029 : radius(0.0)
00030 , trajectories(_alloc)
00031 {
00032 }
00033
00034 typedef double _radius_type;
00035 double radius;
00036
00037 typedef std::vector< ::dynamic_obs_msgs::DynObsTrajectory_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::dynamic_obs_msgs::DynObsTrajectory_<ContainerAllocator> >::other > _trajectories_type;
00038 std::vector< ::dynamic_obs_msgs::DynObsTrajectory_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::dynamic_obs_msgs::DynObsTrajectory_<ContainerAllocator> >::other > trajectories;
00039
00040
00041 ROS_DEPRECATED uint32_t get_trajectories_size() const { return (uint32_t)trajectories.size(); }
00042 ROS_DEPRECATED void set_trajectories_size(uint32_t size) { trajectories.resize((size_t)size); }
00043 ROS_DEPRECATED void get_trajectories_vec(std::vector< ::dynamic_obs_msgs::DynObsTrajectory_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::dynamic_obs_msgs::DynObsTrajectory_<ContainerAllocator> >::other > & vec) const { vec = this->trajectories; }
00044 ROS_DEPRECATED void set_trajectories_vec(const std::vector< ::dynamic_obs_msgs::DynObsTrajectory_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::dynamic_obs_msgs::DynObsTrajectory_<ContainerAllocator> >::other > & vec) { this->trajectories = vec; }
00045 private:
00046 static const char* __s_getDataType_() { return "dynamic_obs_msgs/DynamicObstacle"; }
00047 public:
00048 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00049
00050 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00051
00052 private:
00053 static const char* __s_getMD5Sum_() { return "e54c01ba99bdd49728083a910750888c"; }
00054 public:
00055 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00056
00057 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00058
00059 private:
00060 static const char* __s_getMessageDefinition_() { return "#the radius of the dynamic obstacle\n\
00061 float64 radius\n\
00062 \n\
00063 #a list of possible trajectories it may follow (with probabilities summing to 1)\n\
00064 DynObsTrajectory[] trajectories\n\
00065 \n\
00066 ================================================================================\n\
00067 MSG: dynamic_obs_msgs/DynObsTrajectory\n\
00068 #a dynamic obstacle trajectory\n\
00069 \n\
00070 #the probability of the obstacle following this trajectory\n\
00071 float64 probability\n\
00072 \n\
00073 #whether this obstacle should be treated like a static obstacle at the end of its trajectory (true) \n\
00074 #or the obstacle is ignored after the end of its trajectory (false)\n\
00075 bool exists_after\n\
00076 \n\
00077 #the time parameterized path\n\
00078 geometry_msgs/PoseWithCovarianceStamped[] points\n\
00079 \n\
00080 ================================================================================\n\
00081 MSG: geometry_msgs/PoseWithCovarianceStamped\n\
00082 # This expresses an estimated pose with a reference coordinate frame and timestamp\n\
00083 \n\
00084 Header header\n\
00085 PoseWithCovariance pose\n\
00086 \n\
00087 ================================================================================\n\
00088 MSG: std_msgs/Header\n\
00089 # Standard metadata for higher-level stamped data types.\n\
00090 # This is generally used to communicate timestamped data \n\
00091 # in a particular coordinate frame.\n\
00092 # \n\
00093 # sequence ID: consecutively increasing ID \n\
00094 uint32 seq\n\
00095 #Two-integer timestamp that is expressed as:\n\
00096 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00097 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00098 # time-handling sugar is provided by the client library\n\
00099 time stamp\n\
00100 #Frame this data is associated with\n\
00101 # 0: no frame\n\
00102 # 1: global frame\n\
00103 string frame_id\n\
00104 \n\
00105 ================================================================================\n\
00106 MSG: geometry_msgs/PoseWithCovariance\n\
00107 # This represents a pose in free space with uncertainty.\n\
00108 \n\
00109 Pose pose\n\
00110 \n\
00111 # Row-major representation of the 6x6 covariance matrix\n\
00112 # The orientation parameters use a fixed-axis representation.\n\
00113 # In order, the parameters are:\n\
00114 # (x, y, z, rotation about X axis, rotation about Y axis, rotation about Z axis)\n\
00115 float64[36] covariance\n\
00116 \n\
00117 ================================================================================\n\
00118 MSG: geometry_msgs/Pose\n\
00119 # A representation of pose in free space, composed of postion and orientation. \n\
00120 Point position\n\
00121 Quaternion orientation\n\
00122 \n\
00123 ================================================================================\n\
00124 MSG: geometry_msgs/Point\n\
00125 # This contains the position of a point in free space\n\
00126 float64 x\n\
00127 float64 y\n\
00128 float64 z\n\
00129 \n\
00130 ================================================================================\n\
00131 MSG: geometry_msgs/Quaternion\n\
00132 # This represents an orientation in free space in quaternion form.\n\
00133 \n\
00134 float64 x\n\
00135 float64 y\n\
00136 float64 z\n\
00137 float64 w\n\
00138 \n\
00139 "; }
00140 public:
00141 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00142
00143 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00144
00145 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00146 {
00147 ros::serialization::OStream stream(write_ptr, 1000000000);
00148 ros::serialization::serialize(stream, radius);
00149 ros::serialization::serialize(stream, trajectories);
00150 return stream.getData();
00151 }
00152
00153 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00154 {
00155 ros::serialization::IStream stream(read_ptr, 1000000000);
00156 ros::serialization::deserialize(stream, radius);
00157 ros::serialization::deserialize(stream, trajectories);
00158 return stream.getData();
00159 }
00160
00161 ROS_DEPRECATED virtual uint32_t serializationLength() const
00162 {
00163 uint32_t size = 0;
00164 size += ros::serialization::serializationLength(radius);
00165 size += ros::serialization::serializationLength(trajectories);
00166 return size;
00167 }
00168
00169 typedef boost::shared_ptr< ::dynamic_obs_msgs::DynamicObstacle_<ContainerAllocator> > Ptr;
00170 typedef boost::shared_ptr< ::dynamic_obs_msgs::DynamicObstacle_<ContainerAllocator> const> ConstPtr;
00171 };
00172 typedef ::dynamic_obs_msgs::DynamicObstacle_<std::allocator<void> > DynamicObstacle;
00173
00174 typedef boost::shared_ptr< ::dynamic_obs_msgs::DynamicObstacle> DynamicObstaclePtr;
00175 typedef boost::shared_ptr< ::dynamic_obs_msgs::DynamicObstacle const> DynamicObstacleConstPtr;
00176
00177
00178 template<typename ContainerAllocator>
00179 std::ostream& operator<<(std::ostream& s, const ::dynamic_obs_msgs::DynamicObstacle_<ContainerAllocator> & v)
00180 {
00181 ros::message_operations::Printer< ::dynamic_obs_msgs::DynamicObstacle_<ContainerAllocator> >::stream(s, "", v);
00182 return s;}
00183
00184 }
00185
00186 namespace ros
00187 {
00188 namespace message_traits
00189 {
00190 template<class ContainerAllocator>
00191 struct MD5Sum< ::dynamic_obs_msgs::DynamicObstacle_<ContainerAllocator> > {
00192 static const char* value()
00193 {
00194 return "e54c01ba99bdd49728083a910750888c";
00195 }
00196
00197 static const char* value(const ::dynamic_obs_msgs::DynamicObstacle_<ContainerAllocator> &) { return value(); }
00198 static const uint64_t static_value1 = 0xe54c01ba99bdd497ULL;
00199 static const uint64_t static_value2 = 0x28083a910750888cULL;
00200 };
00201
00202 template<class ContainerAllocator>
00203 struct DataType< ::dynamic_obs_msgs::DynamicObstacle_<ContainerAllocator> > {
00204 static const char* value()
00205 {
00206 return "dynamic_obs_msgs/DynamicObstacle";
00207 }
00208
00209 static const char* value(const ::dynamic_obs_msgs::DynamicObstacle_<ContainerAllocator> &) { return value(); }
00210 };
00211
00212 template<class ContainerAllocator>
00213 struct Definition< ::dynamic_obs_msgs::DynamicObstacle_<ContainerAllocator> > {
00214 static const char* value()
00215 {
00216 return "#the radius of the dynamic obstacle\n\
00217 float64 radius\n\
00218 \n\
00219 #a list of possible trajectories it may follow (with probabilities summing to 1)\n\
00220 DynObsTrajectory[] trajectories\n\
00221 \n\
00222 ================================================================================\n\
00223 MSG: dynamic_obs_msgs/DynObsTrajectory\n\
00224 #a dynamic obstacle trajectory\n\
00225 \n\
00226 #the probability of the obstacle following this trajectory\n\
00227 float64 probability\n\
00228 \n\
00229 #whether this obstacle should be treated like a static obstacle at the end of its trajectory (true) \n\
00230 #or the obstacle is ignored after the end of its trajectory (false)\n\
00231 bool exists_after\n\
00232 \n\
00233 #the time parameterized path\n\
00234 geometry_msgs/PoseWithCovarianceStamped[] points\n\
00235 \n\
00236 ================================================================================\n\
00237 MSG: geometry_msgs/PoseWithCovarianceStamped\n\
00238 # This expresses an estimated pose with a reference coordinate frame and timestamp\n\
00239 \n\
00240 Header header\n\
00241 PoseWithCovariance pose\n\
00242 \n\
00243 ================================================================================\n\
00244 MSG: std_msgs/Header\n\
00245 # Standard metadata for higher-level stamped data types.\n\
00246 # This is generally used to communicate timestamped data \n\
00247 # in a particular coordinate frame.\n\
00248 # \n\
00249 # sequence ID: consecutively increasing ID \n\
00250 uint32 seq\n\
00251 #Two-integer timestamp that is expressed as:\n\
00252 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00253 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00254 # time-handling sugar is provided by the client library\n\
00255 time stamp\n\
00256 #Frame this data is associated with\n\
00257 # 0: no frame\n\
00258 # 1: global frame\n\
00259 string frame_id\n\
00260 \n\
00261 ================================================================================\n\
00262 MSG: geometry_msgs/PoseWithCovariance\n\
00263 # This represents a pose in free space with uncertainty.\n\
00264 \n\
00265 Pose pose\n\
00266 \n\
00267 # Row-major representation of the 6x6 covariance matrix\n\
00268 # The orientation parameters use a fixed-axis representation.\n\
00269 # In order, the parameters are:\n\
00270 # (x, y, z, rotation about X axis, rotation about Y axis, rotation about Z axis)\n\
00271 float64[36] covariance\n\
00272 \n\
00273 ================================================================================\n\
00274 MSG: geometry_msgs/Pose\n\
00275 # A representation of pose in free space, composed of postion and orientation. \n\
00276 Point position\n\
00277 Quaternion orientation\n\
00278 \n\
00279 ================================================================================\n\
00280 MSG: geometry_msgs/Point\n\
00281 # This contains the position of a point in free space\n\
00282 float64 x\n\
00283 float64 y\n\
00284 float64 z\n\
00285 \n\
00286 ================================================================================\n\
00287 MSG: geometry_msgs/Quaternion\n\
00288 # This represents an orientation in free space in quaternion form.\n\
00289 \n\
00290 float64 x\n\
00291 float64 y\n\
00292 float64 z\n\
00293 float64 w\n\
00294 \n\
00295 ";
00296 }
00297
00298 static const char* value(const ::dynamic_obs_msgs::DynamicObstacle_<ContainerAllocator> &) { return value(); }
00299 };
00300
00301 }
00302 }
00303
00304 namespace ros
00305 {
00306 namespace serialization
00307 {
00308
00309 template<class ContainerAllocator> struct Serializer< ::dynamic_obs_msgs::DynamicObstacle_<ContainerAllocator> >
00310 {
00311 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00312 {
00313 stream.next(m.radius);
00314 stream.next(m.trajectories);
00315 }
00316
00317 ROS_DECLARE_ALLINONE_SERIALIZER;
00318 };
00319 }
00320 }
00321
00322 namespace ros
00323 {
00324 namespace message_operations
00325 {
00326
00327 template<class ContainerAllocator>
00328 struct Printer< ::dynamic_obs_msgs::DynamicObstacle_<ContainerAllocator> >
00329 {
00330 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::dynamic_obs_msgs::DynamicObstacle_<ContainerAllocator> & v)
00331 {
00332 s << indent << "radius: ";
00333 Printer<double>::stream(s, indent + " ", v.radius);
00334 s << indent << "trajectories[]" << std::endl;
00335 for (size_t i = 0; i < v.trajectories.size(); ++i)
00336 {
00337 s << indent << " trajectories[" << i << "]: ";
00338 s << std::endl;
00339 s << indent;
00340 Printer< ::dynamic_obs_msgs::DynObsTrajectory_<ContainerAllocator> >::stream(s, indent + " ", v.trajectories[i]);
00341 }
00342 }
00343 };
00344
00345
00346 }
00347 }
00348
00349 #endif // DYNAMIC_OBS_MSGS_MESSAGE_DYNAMICOBSTACLE_H
00350