$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-cob_command_tools/doc_stacks/2013-03-01_14-37-44.555747/cob_command_tools/cob_script_server/msg/ScriptGoal.msg */ 00002 #ifndef COB_SCRIPT_SERVER_MESSAGE_SCRIPTGOAL_H 00003 #define COB_SCRIPT_SERVER_MESSAGE_SCRIPTGOAL_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 cob_script_server 00019 { 00020 template <class ContainerAllocator> 00021 struct ScriptGoal_ { 00022 typedef ScriptGoal_<ContainerAllocator> Type; 00023 00024 ScriptGoal_() 00025 : function_name() 00026 , component_name() 00027 , parameter_name() 00028 , mode() 00029 , service_name() 00030 , duration(0.0) 00031 , planning(false) 00032 { 00033 } 00034 00035 ScriptGoal_(const ContainerAllocator& _alloc) 00036 : function_name(_alloc) 00037 , component_name(_alloc) 00038 , parameter_name(_alloc) 00039 , mode(_alloc) 00040 , service_name(_alloc) 00041 , duration(0.0) 00042 , planning(false) 00043 { 00044 } 00045 00046 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _function_name_type; 00047 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > function_name; 00048 00049 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _component_name_type; 00050 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > component_name; 00051 00052 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _parameter_name_type; 00053 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > parameter_name; 00054 00055 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _mode_type; 00056 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > mode; 00057 00058 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _service_name_type; 00059 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > service_name; 00060 00061 typedef float _duration_type; 00062 float duration; 00063 00064 typedef uint8_t _planning_type; 00065 uint8_t planning; 00066 00067 00068 private: 00069 static const char* __s_getDataType_() { return "cob_script_server/ScriptGoal"; } 00070 public: 00071 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00072 00073 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00074 00075 private: 00076 static const char* __s_getMD5Sum_() { return "0a40a194b72e6783b1b8bec8d1c28c7f"; } 00077 public: 00078 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00079 00080 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00081 00082 private: 00083 static const char* __s_getMessageDefinition_() { return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00084 #goal definition\n\ 00085 string function_name\n\ 00086 string component_name\n\ 00087 string parameter_name\n\ 00088 string mode\n\ 00089 string service_name\n\ 00090 float32 duration\n\ 00091 bool planning\n\ 00092 \n\ 00093 "; } 00094 public: 00095 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00096 00097 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00098 00099 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00100 { 00101 ros::serialization::OStream stream(write_ptr, 1000000000); 00102 ros::serialization::serialize(stream, function_name); 00103 ros::serialization::serialize(stream, component_name); 00104 ros::serialization::serialize(stream, parameter_name); 00105 ros::serialization::serialize(stream, mode); 00106 ros::serialization::serialize(stream, service_name); 00107 ros::serialization::serialize(stream, duration); 00108 ros::serialization::serialize(stream, planning); 00109 return stream.getData(); 00110 } 00111 00112 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00113 { 00114 ros::serialization::IStream stream(read_ptr, 1000000000); 00115 ros::serialization::deserialize(stream, function_name); 00116 ros::serialization::deserialize(stream, component_name); 00117 ros::serialization::deserialize(stream, parameter_name); 00118 ros::serialization::deserialize(stream, mode); 00119 ros::serialization::deserialize(stream, service_name); 00120 ros::serialization::deserialize(stream, duration); 00121 ros::serialization::deserialize(stream, planning); 00122 return stream.getData(); 00123 } 00124 00125 ROS_DEPRECATED virtual uint32_t serializationLength() const 00126 { 00127 uint32_t size = 0; 00128 size += ros::serialization::serializationLength(function_name); 00129 size += ros::serialization::serializationLength(component_name); 00130 size += ros::serialization::serializationLength(parameter_name); 00131 size += ros::serialization::serializationLength(mode); 00132 size += ros::serialization::serializationLength(service_name); 00133 size += ros::serialization::serializationLength(duration); 00134 size += ros::serialization::serializationLength(planning); 00135 return size; 00136 } 00137 00138 typedef boost::shared_ptr< ::cob_script_server::ScriptGoal_<ContainerAllocator> > Ptr; 00139 typedef boost::shared_ptr< ::cob_script_server::ScriptGoal_<ContainerAllocator> const> ConstPtr; 00140 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00141 }; // struct ScriptGoal 00142 typedef ::cob_script_server::ScriptGoal_<std::allocator<void> > ScriptGoal; 00143 00144 typedef boost::shared_ptr< ::cob_script_server::ScriptGoal> ScriptGoalPtr; 00145 typedef boost::shared_ptr< ::cob_script_server::ScriptGoal const> ScriptGoalConstPtr; 00146 00147 00148 template<typename ContainerAllocator> 00149 std::ostream& operator<<(std::ostream& s, const ::cob_script_server::ScriptGoal_<ContainerAllocator> & v) 00150 { 00151 ros::message_operations::Printer< ::cob_script_server::ScriptGoal_<ContainerAllocator> >::stream(s, "", v); 00152 return s;} 00153 00154 } // namespace cob_script_server 00155 00156 namespace ros 00157 { 00158 namespace message_traits 00159 { 00160 template<class ContainerAllocator> struct IsMessage< ::cob_script_server::ScriptGoal_<ContainerAllocator> > : public TrueType {}; 00161 template<class ContainerAllocator> struct IsMessage< ::cob_script_server::ScriptGoal_<ContainerAllocator> const> : public TrueType {}; 00162 template<class ContainerAllocator> 00163 struct MD5Sum< ::cob_script_server::ScriptGoal_<ContainerAllocator> > { 00164 static const char* value() 00165 { 00166 return "0a40a194b72e6783b1b8bec8d1c28c7f"; 00167 } 00168 00169 static const char* value(const ::cob_script_server::ScriptGoal_<ContainerAllocator> &) { return value(); } 00170 static const uint64_t static_value1 = 0x0a40a194b72e6783ULL; 00171 static const uint64_t static_value2 = 0xb1b8bec8d1c28c7fULL; 00172 }; 00173 00174 template<class ContainerAllocator> 00175 struct DataType< ::cob_script_server::ScriptGoal_<ContainerAllocator> > { 00176 static const char* value() 00177 { 00178 return "cob_script_server/ScriptGoal"; 00179 } 00180 00181 static const char* value(const ::cob_script_server::ScriptGoal_<ContainerAllocator> &) { return value(); } 00182 }; 00183 00184 template<class ContainerAllocator> 00185 struct Definition< ::cob_script_server::ScriptGoal_<ContainerAllocator> > { 00186 static const char* value() 00187 { 00188 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00189 #goal definition\n\ 00190 string function_name\n\ 00191 string component_name\n\ 00192 string parameter_name\n\ 00193 string mode\n\ 00194 string service_name\n\ 00195 float32 duration\n\ 00196 bool planning\n\ 00197 \n\ 00198 "; 00199 } 00200 00201 static const char* value(const ::cob_script_server::ScriptGoal_<ContainerAllocator> &) { return value(); } 00202 }; 00203 00204 } // namespace message_traits 00205 } // namespace ros 00206 00207 namespace ros 00208 { 00209 namespace serialization 00210 { 00211 00212 template<class ContainerAllocator> struct Serializer< ::cob_script_server::ScriptGoal_<ContainerAllocator> > 00213 { 00214 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00215 { 00216 stream.next(m.function_name); 00217 stream.next(m.component_name); 00218 stream.next(m.parameter_name); 00219 stream.next(m.mode); 00220 stream.next(m.service_name); 00221 stream.next(m.duration); 00222 stream.next(m.planning); 00223 } 00224 00225 ROS_DECLARE_ALLINONE_SERIALIZER; 00226 }; // struct ScriptGoal_ 00227 } // namespace serialization 00228 } // namespace ros 00229 00230 namespace ros 00231 { 00232 namespace message_operations 00233 { 00234 00235 template<class ContainerAllocator> 00236 struct Printer< ::cob_script_server::ScriptGoal_<ContainerAllocator> > 00237 { 00238 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::cob_script_server::ScriptGoal_<ContainerAllocator> & v) 00239 { 00240 s << indent << "function_name: "; 00241 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.function_name); 00242 s << indent << "component_name: "; 00243 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.component_name); 00244 s << indent << "parameter_name: "; 00245 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.parameter_name); 00246 s << indent << "mode: "; 00247 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.mode); 00248 s << indent << "service_name: "; 00249 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.service_name); 00250 s << indent << "duration: "; 00251 Printer<float>::stream(s, indent + " ", v.duration); 00252 s << indent << "planning: "; 00253 Printer<uint8_t>::stream(s, indent + " ", v.planning); 00254 } 00255 }; 00256 00257 00258 } // namespace message_operations 00259 } // namespace ros 00260 00261 #endif // COB_SCRIPT_SERVER_MESSAGE_SCRIPTGOAL_H 00262