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