$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-srs_public/doc_stacks/2013-03-05_12-22-34.333426/srs_public/srs_msgs/msg/UI_DMresp.msg */ 00002 #ifndef SRS_MSGS_MESSAGE_UI_DMRESP_H 00003 #define SRS_MSGS_MESSAGE_UI_DMRESP_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 srs_msgs 00019 { 00020 template <class ContainerAllocator> 00021 struct UI_DMresp_ { 00022 typedef UI_DMresp_<ContainerAllocator> Type; 00023 00024 UI_DMresp_() 00025 : solution() 00026 , parameter() 00027 , responseID(0) 00028 { 00029 } 00030 00031 UI_DMresp_(const ContainerAllocator& _alloc) 00032 : solution(_alloc) 00033 , parameter(_alloc) 00034 , responseID(0) 00035 { 00036 } 00037 00038 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _solution_type; 00039 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > solution; 00040 00041 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _parameter_type; 00042 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > parameter; 00043 00044 typedef uint32_t _responseID_type; 00045 uint32_t responseID; 00046 00047 00048 private: 00049 static const char* __s_getDataType_() { return "srs_msgs/UI_DMresp"; } 00050 public: 00051 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00052 00053 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00054 00055 private: 00056 static const char* __s_getMD5Sum_() { return "8a6185ebbeac9cd1ebbaa1b88e853b6f"; } 00057 public: 00058 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00059 00060 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00061 00062 private: 00063 static const char* __s_getMessageDefinition_() { return "# this message contains information to define the comunication between the Decision making (DM) and UI_Pri when an unexpected error has occured in the execution of an previously issued command\n\ 00064 \n\ 00065 string solution # currently supported comands from the user are: continue,give_up,move \n\ 00066 string parameter # used when the command is move to carry the position. Possible vaues are:kitchen, home, order, [1.2, 3.4, 0.8] which are the coordinates from user click on the map\n\ 00067 uint32 responseID # the uniqie ID used by DM to distinguish which responce corresponds to which command. Note: the responceID MUST be the same as the requestID of the corresponding command\n\ 00068 \n\ 00069 "; } 00070 public: 00071 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00072 00073 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00074 00075 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00076 { 00077 ros::serialization::OStream stream(write_ptr, 1000000000); 00078 ros::serialization::serialize(stream, solution); 00079 ros::serialization::serialize(stream, parameter); 00080 ros::serialization::serialize(stream, responseID); 00081 return stream.getData(); 00082 } 00083 00084 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00085 { 00086 ros::serialization::IStream stream(read_ptr, 1000000000); 00087 ros::serialization::deserialize(stream, solution); 00088 ros::serialization::deserialize(stream, parameter); 00089 ros::serialization::deserialize(stream, responseID); 00090 return stream.getData(); 00091 } 00092 00093 ROS_DEPRECATED virtual uint32_t serializationLength() const 00094 { 00095 uint32_t size = 0; 00096 size += ros::serialization::serializationLength(solution); 00097 size += ros::serialization::serializationLength(parameter); 00098 size += ros::serialization::serializationLength(responseID); 00099 return size; 00100 } 00101 00102 typedef boost::shared_ptr< ::srs_msgs::UI_DMresp_<ContainerAllocator> > Ptr; 00103 typedef boost::shared_ptr< ::srs_msgs::UI_DMresp_<ContainerAllocator> const> ConstPtr; 00104 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00105 }; // struct UI_DMresp 00106 typedef ::srs_msgs::UI_DMresp_<std::allocator<void> > UI_DMresp; 00107 00108 typedef boost::shared_ptr< ::srs_msgs::UI_DMresp> UI_DMrespPtr; 00109 typedef boost::shared_ptr< ::srs_msgs::UI_DMresp const> UI_DMrespConstPtr; 00110 00111 00112 template<typename ContainerAllocator> 00113 std::ostream& operator<<(std::ostream& s, const ::srs_msgs::UI_DMresp_<ContainerAllocator> & v) 00114 { 00115 ros::message_operations::Printer< ::srs_msgs::UI_DMresp_<ContainerAllocator> >::stream(s, "", v); 00116 return s;} 00117 00118 } // namespace srs_msgs 00119 00120 namespace ros 00121 { 00122 namespace message_traits 00123 { 00124 template<class ContainerAllocator> struct IsMessage< ::srs_msgs::UI_DMresp_<ContainerAllocator> > : public TrueType {}; 00125 template<class ContainerAllocator> struct IsMessage< ::srs_msgs::UI_DMresp_<ContainerAllocator> const> : public TrueType {}; 00126 template<class ContainerAllocator> 00127 struct MD5Sum< ::srs_msgs::UI_DMresp_<ContainerAllocator> > { 00128 static const char* value() 00129 { 00130 return "8a6185ebbeac9cd1ebbaa1b88e853b6f"; 00131 } 00132 00133 static const char* value(const ::srs_msgs::UI_DMresp_<ContainerAllocator> &) { return value(); } 00134 static const uint64_t static_value1 = 0x8a6185ebbeac9cd1ULL; 00135 static const uint64_t static_value2 = 0xebbaa1b88e853b6fULL; 00136 }; 00137 00138 template<class ContainerAllocator> 00139 struct DataType< ::srs_msgs::UI_DMresp_<ContainerAllocator> > { 00140 static const char* value() 00141 { 00142 return "srs_msgs/UI_DMresp"; 00143 } 00144 00145 static const char* value(const ::srs_msgs::UI_DMresp_<ContainerAllocator> &) { return value(); } 00146 }; 00147 00148 template<class ContainerAllocator> 00149 struct Definition< ::srs_msgs::UI_DMresp_<ContainerAllocator> > { 00150 static const char* value() 00151 { 00152 return "# this message contains information to define the comunication between the Decision making (DM) and UI_Pri when an unexpected error has occured in the execution of an previously issued command\n\ 00153 \n\ 00154 string solution # currently supported comands from the user are: continue,give_up,move \n\ 00155 string parameter # used when the command is move to carry the position. Possible vaues are:kitchen, home, order, [1.2, 3.4, 0.8] which are the coordinates from user click on the map\n\ 00156 uint32 responseID # the uniqie ID used by DM to distinguish which responce corresponds to which command. Note: the responceID MUST be the same as the requestID of the corresponding command\n\ 00157 \n\ 00158 "; 00159 } 00160 00161 static const char* value(const ::srs_msgs::UI_DMresp_<ContainerAllocator> &) { return value(); } 00162 }; 00163 00164 } // namespace message_traits 00165 } // namespace ros 00166 00167 namespace ros 00168 { 00169 namespace serialization 00170 { 00171 00172 template<class ContainerAllocator> struct Serializer< ::srs_msgs::UI_DMresp_<ContainerAllocator> > 00173 { 00174 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00175 { 00176 stream.next(m.solution); 00177 stream.next(m.parameter); 00178 stream.next(m.responseID); 00179 } 00180 00181 ROS_DECLARE_ALLINONE_SERIALIZER; 00182 }; // struct UI_DMresp_ 00183 } // namespace serialization 00184 } // namespace ros 00185 00186 namespace ros 00187 { 00188 namespace message_operations 00189 { 00190 00191 template<class ContainerAllocator> 00192 struct Printer< ::srs_msgs::UI_DMresp_<ContainerAllocator> > 00193 { 00194 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::srs_msgs::UI_DMresp_<ContainerAllocator> & v) 00195 { 00196 s << indent << "solution: "; 00197 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.solution); 00198 s << indent << "parameter: "; 00199 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.parameter); 00200 s << indent << "responseID: "; 00201 Printer<uint32_t>::stream(s, indent + " ", v.responseID); 00202 } 00203 }; 00204 00205 00206 } // namespace message_operations 00207 } // namespace ros 00208 00209 #endif // SRS_MSGS_MESSAGE_UI_DMRESP_H 00210