00001
00002 #ifndef CLEARPATH_BASE_MESSAGE_CLEARPATHROBOT_H
00003 #define CLEARPATH_BASE_MESSAGE_CLEARPATHROBOT_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
00014 namespace clearpath_base
00015 {
00016 template <class ContainerAllocator>
00017 struct ClearpathRobot_ : public ros::Message
00018 {
00019 typedef ClearpathRobot_<ContainerAllocator> Type;
00020
00021 ClearpathRobot_()
00022 : name()
00023 , model()
00024 , platform_revision(0)
00025 , serial(0)
00026 , horizon_version()
00027 , firmware_version()
00028 , firmware_revision(0)
00029 , write_date()
00030 {
00031 horizon_version.assign(0);
00032 firmware_version.assign(0);
00033 }
00034
00035 ClearpathRobot_(const ContainerAllocator& _alloc)
00036 : name(_alloc)
00037 , model(_alloc)
00038 , platform_revision(0)
00039 , serial(0)
00040 , horizon_version()
00041 , firmware_version()
00042 , firmware_revision(0)
00043 , write_date(_alloc)
00044 {
00045 horizon_version.assign(0);
00046 firmware_version.assign(0);
00047 }
00048
00049 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _name_type;
00050 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > name;
00051
00052 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _model_type;
00053 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > model;
00054
00055 typedef int32_t _platform_revision_type;
00056 int32_t platform_revision;
00057
00058 typedef uint32_t _serial_type;
00059 uint32_t serial;
00060
00061 typedef boost::array<int32_t, 2> _horizon_version_type;
00062 boost::array<int32_t, 2> horizon_version;
00063
00064 typedef boost::array<int32_t, 2> _firmware_version_type;
00065 boost::array<int32_t, 2> firmware_version;
00066
00067 typedef int32_t _firmware_revision_type;
00068 int32_t firmware_revision;
00069
00070 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _write_date_type;
00071 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > write_date;
00072
00073
00074 ROS_DEPRECATED uint32_t get_horizon_version_size() const { return (uint32_t)horizon_version.size(); }
00075 ROS_DEPRECATED uint32_t get_firmware_version_size() const { return (uint32_t)firmware_version.size(); }
00076 private:
00077 static const char* __s_getDataType_() { return "clearpath_base/ClearpathRobot"; }
00078 public:
00079 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00080
00081 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00082
00083 private:
00084 static const char* __s_getMD5Sum_() { return "1bdab2b789676c1b350ab6739da650c7"; }
00085 public:
00086 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00087
00088 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00089
00090 private:
00091 static const char* __s_getMessageDefinition_() { return "string name\n\
00092 string model\n\
00093 int32 platform_revision\n\
00094 uint32 serial\n\
00095 int32[2] horizon_version\n\
00096 int32[2] firmware_version\n\
00097 int32 firmware_revision\n\
00098 string write_date\n\
00099 \n\
00100 "; }
00101 public:
00102 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00103
00104 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00105
00106 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00107 {
00108 ros::serialization::OStream stream(write_ptr, 1000000000);
00109 ros::serialization::serialize(stream, name);
00110 ros::serialization::serialize(stream, model);
00111 ros::serialization::serialize(stream, platform_revision);
00112 ros::serialization::serialize(stream, serial);
00113 ros::serialization::serialize(stream, horizon_version);
00114 ros::serialization::serialize(stream, firmware_version);
00115 ros::serialization::serialize(stream, firmware_revision);
00116 ros::serialization::serialize(stream, write_date);
00117 return stream.getData();
00118 }
00119
00120 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00121 {
00122 ros::serialization::IStream stream(read_ptr, 1000000000);
00123 ros::serialization::deserialize(stream, name);
00124 ros::serialization::deserialize(stream, model);
00125 ros::serialization::deserialize(stream, platform_revision);
00126 ros::serialization::deserialize(stream, serial);
00127 ros::serialization::deserialize(stream, horizon_version);
00128 ros::serialization::deserialize(stream, firmware_version);
00129 ros::serialization::deserialize(stream, firmware_revision);
00130 ros::serialization::deserialize(stream, write_date);
00131 return stream.getData();
00132 }
00133
00134 ROS_DEPRECATED virtual uint32_t serializationLength() const
00135 {
00136 uint32_t size = 0;
00137 size += ros::serialization::serializationLength(name);
00138 size += ros::serialization::serializationLength(model);
00139 size += ros::serialization::serializationLength(platform_revision);
00140 size += ros::serialization::serializationLength(serial);
00141 size += ros::serialization::serializationLength(horizon_version);
00142 size += ros::serialization::serializationLength(firmware_version);
00143 size += ros::serialization::serializationLength(firmware_revision);
00144 size += ros::serialization::serializationLength(write_date);
00145 return size;
00146 }
00147
00148 typedef boost::shared_ptr< ::clearpath_base::ClearpathRobot_<ContainerAllocator> > Ptr;
00149 typedef boost::shared_ptr< ::clearpath_base::ClearpathRobot_<ContainerAllocator> const> ConstPtr;
00150 };
00151 typedef ::clearpath_base::ClearpathRobot_<std::allocator<void> > ClearpathRobot;
00152
00153 typedef boost::shared_ptr< ::clearpath_base::ClearpathRobot> ClearpathRobotPtr;
00154 typedef boost::shared_ptr< ::clearpath_base::ClearpathRobot const> ClearpathRobotConstPtr;
00155
00156
00157 template<typename ContainerAllocator>
00158 std::ostream& operator<<(std::ostream& s, const ::clearpath_base::ClearpathRobot_<ContainerAllocator> & v)
00159 {
00160 ros::message_operations::Printer< ::clearpath_base::ClearpathRobot_<ContainerAllocator> >::stream(s, "", v);
00161 return s;}
00162
00163 }
00164
00165 namespace ros
00166 {
00167 namespace message_traits
00168 {
00169 template<class ContainerAllocator>
00170 struct MD5Sum< ::clearpath_base::ClearpathRobot_<ContainerAllocator> > {
00171 static const char* value()
00172 {
00173 return "1bdab2b789676c1b350ab6739da650c7";
00174 }
00175
00176 static const char* value(const ::clearpath_base::ClearpathRobot_<ContainerAllocator> &) { return value(); }
00177 static const uint64_t static_value1 = 0x1bdab2b789676c1bULL;
00178 static const uint64_t static_value2 = 0x350ab6739da650c7ULL;
00179 };
00180
00181 template<class ContainerAllocator>
00182 struct DataType< ::clearpath_base::ClearpathRobot_<ContainerAllocator> > {
00183 static const char* value()
00184 {
00185 return "clearpath_base/ClearpathRobot";
00186 }
00187
00188 static const char* value(const ::clearpath_base::ClearpathRobot_<ContainerAllocator> &) { return value(); }
00189 };
00190
00191 template<class ContainerAllocator>
00192 struct Definition< ::clearpath_base::ClearpathRobot_<ContainerAllocator> > {
00193 static const char* value()
00194 {
00195 return "string name\n\
00196 string model\n\
00197 int32 platform_revision\n\
00198 uint32 serial\n\
00199 int32[2] horizon_version\n\
00200 int32[2] firmware_version\n\
00201 int32 firmware_revision\n\
00202 string write_date\n\
00203 \n\
00204 ";
00205 }
00206
00207 static const char* value(const ::clearpath_base::ClearpathRobot_<ContainerAllocator> &) { return value(); }
00208 };
00209
00210 }
00211 }
00212
00213 namespace ros
00214 {
00215 namespace serialization
00216 {
00217
00218 template<class ContainerAllocator> struct Serializer< ::clearpath_base::ClearpathRobot_<ContainerAllocator> >
00219 {
00220 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00221 {
00222 stream.next(m.name);
00223 stream.next(m.model);
00224 stream.next(m.platform_revision);
00225 stream.next(m.serial);
00226 stream.next(m.horizon_version);
00227 stream.next(m.firmware_version);
00228 stream.next(m.firmware_revision);
00229 stream.next(m.write_date);
00230 }
00231
00232 ROS_DECLARE_ALLINONE_SERIALIZER;
00233 };
00234 }
00235 }
00236
00237 namespace ros
00238 {
00239 namespace message_operations
00240 {
00241
00242 template<class ContainerAllocator>
00243 struct Printer< ::clearpath_base::ClearpathRobot_<ContainerAllocator> >
00244 {
00245 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::clearpath_base::ClearpathRobot_<ContainerAllocator> & v)
00246 {
00247 s << indent << "name: ";
00248 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.name);
00249 s << indent << "model: ";
00250 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.model);
00251 s << indent << "platform_revision: ";
00252 Printer<int32_t>::stream(s, indent + " ", v.platform_revision);
00253 s << indent << "serial: ";
00254 Printer<uint32_t>::stream(s, indent + " ", v.serial);
00255 s << indent << "horizon_version[]" << std::endl;
00256 for (size_t i = 0; i < v.horizon_version.size(); ++i)
00257 {
00258 s << indent << " horizon_version[" << i << "]: ";
00259 Printer<int32_t>::stream(s, indent + " ", v.horizon_version[i]);
00260 }
00261 s << indent << "firmware_version[]" << std::endl;
00262 for (size_t i = 0; i < v.firmware_version.size(); ++i)
00263 {
00264 s << indent << " firmware_version[" << i << "]: ";
00265 Printer<int32_t>::stream(s, indent + " ", v.firmware_version[i]);
00266 }
00267 s << indent << "firmware_revision: ";
00268 Printer<int32_t>::stream(s, indent + " ", v.firmware_revision);
00269 s << indent << "write_date: ";
00270 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.write_date);
00271 }
00272 };
00273
00274
00275 }
00276 }
00277
00278 #endif // CLEARPATH_BASE_MESSAGE_CLEARPATHROBOT_H
00279