00001
00002 #ifndef CLEARPATH_BASE_MESSAGE_DISTANCETIMING_H
00003 #define CLEARPATH_BASE_MESSAGE_DISTANCETIMING_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 "std_msgs/Header.h"
00014
00015 namespace clearpath_base
00016 {
00017 template <class ContainerAllocator>
00018 struct DistanceTiming_ : public ros::Message
00019 {
00020 typedef DistanceTiming_<ContainerAllocator> Type;
00021
00022 DistanceTiming_()
00023 : header()
00024 , distances()
00025 {
00026 }
00027
00028 DistanceTiming_(const ContainerAllocator& _alloc)
00029 : header(_alloc)
00030 , distances(_alloc)
00031 {
00032 }
00033
00034 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00035 ::std_msgs::Header_<ContainerAllocator> header;
00036
00037 typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other > _distances_type;
00038 std::vector<double, typename ContainerAllocator::template rebind<double>::other > distances;
00039
00040
00041 ROS_DEPRECATED uint32_t get_distances_size() const { return (uint32_t)distances.size(); }
00042 ROS_DEPRECATED void set_distances_size(uint32_t size) { distances.resize((size_t)size); }
00043 ROS_DEPRECATED void get_distances_vec(std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) const { vec = this->distances; }
00044 ROS_DEPRECATED void set_distances_vec(const std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) { this->distances = vec; }
00045 private:
00046 static const char* __s_getDataType_() { return "clearpath_base/DistanceTiming"; }
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 "5cd97954696edc5d59dd80cb0218765a"; }
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 "Header header\n\
00061 float64[] distances\n\
00062 ================================================================================\n\
00063 MSG: std_msgs/Header\n\
00064 # Standard metadata for higher-level stamped data types.\n\
00065 # This is generally used to communicate timestamped data \n\
00066 # in a particular coordinate frame.\n\
00067 # \n\
00068 # sequence ID: consecutively increasing ID \n\
00069 uint32 seq\n\
00070 #Two-integer timestamp that is expressed as:\n\
00071 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00072 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00073 # time-handling sugar is provided by the client library\n\
00074 time stamp\n\
00075 #Frame this data is associated with\n\
00076 # 0: no frame\n\
00077 # 1: global frame\n\
00078 string frame_id\n\
00079 \n\
00080 "; }
00081 public:
00082 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00083
00084 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00085
00086 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00087 {
00088 ros::serialization::OStream stream(write_ptr, 1000000000);
00089 ros::serialization::serialize(stream, header);
00090 ros::serialization::serialize(stream, distances);
00091 return stream.getData();
00092 }
00093
00094 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00095 {
00096 ros::serialization::IStream stream(read_ptr, 1000000000);
00097 ros::serialization::deserialize(stream, header);
00098 ros::serialization::deserialize(stream, distances);
00099 return stream.getData();
00100 }
00101
00102 ROS_DEPRECATED virtual uint32_t serializationLength() const
00103 {
00104 uint32_t size = 0;
00105 size += ros::serialization::serializationLength(header);
00106 size += ros::serialization::serializationLength(distances);
00107 return size;
00108 }
00109
00110 typedef boost::shared_ptr< ::clearpath_base::DistanceTiming_<ContainerAllocator> > Ptr;
00111 typedef boost::shared_ptr< ::clearpath_base::DistanceTiming_<ContainerAllocator> const> ConstPtr;
00112 };
00113 typedef ::clearpath_base::DistanceTiming_<std::allocator<void> > DistanceTiming;
00114
00115 typedef boost::shared_ptr< ::clearpath_base::DistanceTiming> DistanceTimingPtr;
00116 typedef boost::shared_ptr< ::clearpath_base::DistanceTiming const> DistanceTimingConstPtr;
00117
00118
00119 template<typename ContainerAllocator>
00120 std::ostream& operator<<(std::ostream& s, const ::clearpath_base::DistanceTiming_<ContainerAllocator> & v)
00121 {
00122 ros::message_operations::Printer< ::clearpath_base::DistanceTiming_<ContainerAllocator> >::stream(s, "", v);
00123 return s;}
00124
00125 }
00126
00127 namespace ros
00128 {
00129 namespace message_traits
00130 {
00131 template<class ContainerAllocator>
00132 struct MD5Sum< ::clearpath_base::DistanceTiming_<ContainerAllocator> > {
00133 static const char* value()
00134 {
00135 return "5cd97954696edc5d59dd80cb0218765a";
00136 }
00137
00138 static const char* value(const ::clearpath_base::DistanceTiming_<ContainerAllocator> &) { return value(); }
00139 static const uint64_t static_value1 = 0x5cd97954696edc5dULL;
00140 static const uint64_t static_value2 = 0x59dd80cb0218765aULL;
00141 };
00142
00143 template<class ContainerAllocator>
00144 struct DataType< ::clearpath_base::DistanceTiming_<ContainerAllocator> > {
00145 static const char* value()
00146 {
00147 return "clearpath_base/DistanceTiming";
00148 }
00149
00150 static const char* value(const ::clearpath_base::DistanceTiming_<ContainerAllocator> &) { return value(); }
00151 };
00152
00153 template<class ContainerAllocator>
00154 struct Definition< ::clearpath_base::DistanceTiming_<ContainerAllocator> > {
00155 static const char* value()
00156 {
00157 return "Header header\n\
00158 float64[] distances\n\
00159 ================================================================================\n\
00160 MSG: std_msgs/Header\n\
00161 # Standard metadata for higher-level stamped data types.\n\
00162 # This is generally used to communicate timestamped data \n\
00163 # in a particular coordinate frame.\n\
00164 # \n\
00165 # sequence ID: consecutively increasing ID \n\
00166 uint32 seq\n\
00167 #Two-integer timestamp that is expressed as:\n\
00168 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00169 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00170 # time-handling sugar is provided by the client library\n\
00171 time stamp\n\
00172 #Frame this data is associated with\n\
00173 # 0: no frame\n\
00174 # 1: global frame\n\
00175 string frame_id\n\
00176 \n\
00177 ";
00178 }
00179
00180 static const char* value(const ::clearpath_base::DistanceTiming_<ContainerAllocator> &) { return value(); }
00181 };
00182
00183 template<class ContainerAllocator> struct HasHeader< ::clearpath_base::DistanceTiming_<ContainerAllocator> > : public TrueType {};
00184 template<class ContainerAllocator> struct HasHeader< const ::clearpath_base::DistanceTiming_<ContainerAllocator> > : public TrueType {};
00185 }
00186 }
00187
00188 namespace ros
00189 {
00190 namespace serialization
00191 {
00192
00193 template<class ContainerAllocator> struct Serializer< ::clearpath_base::DistanceTiming_<ContainerAllocator> >
00194 {
00195 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00196 {
00197 stream.next(m.header);
00198 stream.next(m.distances);
00199 }
00200
00201 ROS_DECLARE_ALLINONE_SERIALIZER;
00202 };
00203 }
00204 }
00205
00206 namespace ros
00207 {
00208 namespace message_operations
00209 {
00210
00211 template<class ContainerAllocator>
00212 struct Printer< ::clearpath_base::DistanceTiming_<ContainerAllocator> >
00213 {
00214 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::clearpath_base::DistanceTiming_<ContainerAllocator> & v)
00215 {
00216 s << indent << "header: ";
00217 s << std::endl;
00218 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00219 s << indent << "distances[]" << std::endl;
00220 for (size_t i = 0; i < v.distances.size(); ++i)
00221 {
00222 s << indent << " distances[" << i << "]: ";
00223 Printer<double>::stream(s, indent + " ", v.distances[i]);
00224 }
00225 }
00226 };
00227
00228
00229 }
00230 }
00231
00232 #endif // CLEARPATH_BASE_MESSAGE_DISTANCETIMING_H
00233