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