$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-arm_navigation_experimental/doc_stacks/2013-03-01_14-08-43.137802/arm_navigation_experimental/head_monitor_msgs/msg/HeadMonitorStatus.msg */ 00002 #ifndef HEAD_MONITOR_MSGS_MESSAGE_HEADMONITORSTATUS_H 00003 #define HEAD_MONITOR_MSGS_MESSAGE_HEADMONITORSTATUS_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 00018 namespace head_monitor_msgs 00019 { 00020 template <class ContainerAllocator> 00021 struct HeadMonitorStatus_ { 00022 typedef HeadMonitorStatus_<ContainerAllocator> Type; 00023 00024 HeadMonitorStatus_() 00025 : status(0) 00026 { 00027 } 00028 00029 HeadMonitorStatus_(const ContainerAllocator& _alloc) 00030 : status(0) 00031 { 00032 } 00033 00034 typedef int32_t _status_type; 00035 int32_t status; 00036 00037 enum { IDLE = 1 }; 00038 enum { PREPLAN_SCAN = 2 }; 00039 enum { PAUSED = 3 }; 00040 enum { MONITOR_BEFORE_EXECUTION = 4 }; 00041 enum { EXECUTING = 5 }; 00042 enum { PAUSE_TIMEOUT = 6 }; 00043 enum { COMPLETED = 7 }; 00044 enum { PREEMPTED = 8 }; 00045 00046 private: 00047 static const char* __s_getDataType_() { return "head_monitor_msgs/HeadMonitorStatus"; } 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 "54a93e9786200851b9612cbfdcbbf36b"; } 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 "int32 status\n\ 00062 \n\ 00063 int32 IDLE = 1 \n\ 00064 int32 PREPLAN_SCAN = 2\n\ 00065 int32 PAUSED = 3\n\ 00066 int32 MONITOR_BEFORE_EXECUTION = 4\n\ 00067 int32 EXECUTING = 5\n\ 00068 int32 PAUSE_TIMEOUT = 6\n\ 00069 int32 COMPLETED = 7\n\ 00070 int32 PREEMPTED = 8\n\ 00071 \n\ 00072 "; } 00073 public: 00074 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00075 00076 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00077 00078 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00079 { 00080 ros::serialization::OStream stream(write_ptr, 1000000000); 00081 ros::serialization::serialize(stream, status); 00082 return stream.getData(); 00083 } 00084 00085 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00086 { 00087 ros::serialization::IStream stream(read_ptr, 1000000000); 00088 ros::serialization::deserialize(stream, status); 00089 return stream.getData(); 00090 } 00091 00092 ROS_DEPRECATED virtual uint32_t serializationLength() const 00093 { 00094 uint32_t size = 0; 00095 size += ros::serialization::serializationLength(status); 00096 return size; 00097 } 00098 00099 typedef boost::shared_ptr< ::head_monitor_msgs::HeadMonitorStatus_<ContainerAllocator> > Ptr; 00100 typedef boost::shared_ptr< ::head_monitor_msgs::HeadMonitorStatus_<ContainerAllocator> const> ConstPtr; 00101 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00102 }; // struct HeadMonitorStatus 00103 typedef ::head_monitor_msgs::HeadMonitorStatus_<std::allocator<void> > HeadMonitorStatus; 00104 00105 typedef boost::shared_ptr< ::head_monitor_msgs::HeadMonitorStatus> HeadMonitorStatusPtr; 00106 typedef boost::shared_ptr< ::head_monitor_msgs::HeadMonitorStatus const> HeadMonitorStatusConstPtr; 00107 00108 00109 template<typename ContainerAllocator> 00110 std::ostream& operator<<(std::ostream& s, const ::head_monitor_msgs::HeadMonitorStatus_<ContainerAllocator> & v) 00111 { 00112 ros::message_operations::Printer< ::head_monitor_msgs::HeadMonitorStatus_<ContainerAllocator> >::stream(s, "", v); 00113 return s;} 00114 00115 } // namespace head_monitor_msgs 00116 00117 namespace ros 00118 { 00119 namespace message_traits 00120 { 00121 template<class ContainerAllocator> struct IsMessage< ::head_monitor_msgs::HeadMonitorStatus_<ContainerAllocator> > : public TrueType {}; 00122 template<class ContainerAllocator> struct IsMessage< ::head_monitor_msgs::HeadMonitorStatus_<ContainerAllocator> const> : public TrueType {}; 00123 template<class ContainerAllocator> 00124 struct MD5Sum< ::head_monitor_msgs::HeadMonitorStatus_<ContainerAllocator> > { 00125 static const char* value() 00126 { 00127 return "54a93e9786200851b9612cbfdcbbf36b"; 00128 } 00129 00130 static const char* value(const ::head_monitor_msgs::HeadMonitorStatus_<ContainerAllocator> &) { return value(); } 00131 static const uint64_t static_value1 = 0x54a93e9786200851ULL; 00132 static const uint64_t static_value2 = 0xb9612cbfdcbbf36bULL; 00133 }; 00134 00135 template<class ContainerAllocator> 00136 struct DataType< ::head_monitor_msgs::HeadMonitorStatus_<ContainerAllocator> > { 00137 static const char* value() 00138 { 00139 return "head_monitor_msgs/HeadMonitorStatus"; 00140 } 00141 00142 static const char* value(const ::head_monitor_msgs::HeadMonitorStatus_<ContainerAllocator> &) { return value(); } 00143 }; 00144 00145 template<class ContainerAllocator> 00146 struct Definition< ::head_monitor_msgs::HeadMonitorStatus_<ContainerAllocator> > { 00147 static const char* value() 00148 { 00149 return "int32 status\n\ 00150 \n\ 00151 int32 IDLE = 1 \n\ 00152 int32 PREPLAN_SCAN = 2\n\ 00153 int32 PAUSED = 3\n\ 00154 int32 MONITOR_BEFORE_EXECUTION = 4\n\ 00155 int32 EXECUTING = 5\n\ 00156 int32 PAUSE_TIMEOUT = 6\n\ 00157 int32 COMPLETED = 7\n\ 00158 int32 PREEMPTED = 8\n\ 00159 \n\ 00160 "; 00161 } 00162 00163 static const char* value(const ::head_monitor_msgs::HeadMonitorStatus_<ContainerAllocator> &) { return value(); } 00164 }; 00165 00166 template<class ContainerAllocator> struct IsFixedSize< ::head_monitor_msgs::HeadMonitorStatus_<ContainerAllocator> > : public TrueType {}; 00167 } // namespace message_traits 00168 } // namespace ros 00169 00170 namespace ros 00171 { 00172 namespace serialization 00173 { 00174 00175 template<class ContainerAllocator> struct Serializer< ::head_monitor_msgs::HeadMonitorStatus_<ContainerAllocator> > 00176 { 00177 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00178 { 00179 stream.next(m.status); 00180 } 00181 00182 ROS_DECLARE_ALLINONE_SERIALIZER; 00183 }; // struct HeadMonitorStatus_ 00184 } // namespace serialization 00185 } // namespace ros 00186 00187 namespace ros 00188 { 00189 namespace message_operations 00190 { 00191 00192 template<class ContainerAllocator> 00193 struct Printer< ::head_monitor_msgs::HeadMonitorStatus_<ContainerAllocator> > 00194 { 00195 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::head_monitor_msgs::HeadMonitorStatus_<ContainerAllocator> & v) 00196 { 00197 s << indent << "status: "; 00198 Printer<int32_t>::stream(s, indent + " ", v.status); 00199 } 00200 }; 00201 00202 00203 } // namespace message_operations 00204 } // namespace ros 00205 00206 #endif // HEAD_MONITOR_MSGS_MESSAGE_HEADMONITORSTATUS_H 00207