Go to the documentation of this file.00001
00002 #ifndef DMP_SERVICE_SETACTIVEDMP_H
00003 #define DMP_SERVICE_SETACTIVEDMP_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 "ros/service_traits.h"
00018
00019 #include "dmp/DMPData.h"
00020
00021
00022
00023 namespace dmp
00024 {
00025 template <class ContainerAllocator>
00026 struct SetActiveDMPRequest_ {
00027 typedef SetActiveDMPRequest_<ContainerAllocator> Type;
00028
00029 SetActiveDMPRequest_()
00030 : dmp_list()
00031 {
00032 }
00033
00034 SetActiveDMPRequest_(const ContainerAllocator& _alloc)
00035 : dmp_list(_alloc)
00036 {
00037 }
00038
00039 typedef std::vector< ::dmp::DMPData_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::dmp::DMPData_<ContainerAllocator> >::other > _dmp_list_type;
00040 std::vector< ::dmp::DMPData_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::dmp::DMPData_<ContainerAllocator> >::other > dmp_list;
00041
00042
00043 typedef boost::shared_ptr< ::dmp::SetActiveDMPRequest_<ContainerAllocator> > Ptr;
00044 typedef boost::shared_ptr< ::dmp::SetActiveDMPRequest_<ContainerAllocator> const> ConstPtr;
00045 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00046 };
00047 typedef ::dmp::SetActiveDMPRequest_<std::allocator<void> > SetActiveDMPRequest;
00048
00049 typedef boost::shared_ptr< ::dmp::SetActiveDMPRequest> SetActiveDMPRequestPtr;
00050 typedef boost::shared_ptr< ::dmp::SetActiveDMPRequest const> SetActiveDMPRequestConstPtr;
00051
00052
00053
00054 template <class ContainerAllocator>
00055 struct SetActiveDMPResponse_ {
00056 typedef SetActiveDMPResponse_<ContainerAllocator> Type;
00057
00058 SetActiveDMPResponse_()
00059 : success(false)
00060 {
00061 }
00062
00063 SetActiveDMPResponse_(const ContainerAllocator& _alloc)
00064 : success(false)
00065 {
00066 }
00067
00068 typedef uint8_t _success_type;
00069 uint8_t success;
00070
00071
00072 typedef boost::shared_ptr< ::dmp::SetActiveDMPResponse_<ContainerAllocator> > Ptr;
00073 typedef boost::shared_ptr< ::dmp::SetActiveDMPResponse_<ContainerAllocator> const> ConstPtr;
00074 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00075 };
00076 typedef ::dmp::SetActiveDMPResponse_<std::allocator<void> > SetActiveDMPResponse;
00077
00078 typedef boost::shared_ptr< ::dmp::SetActiveDMPResponse> SetActiveDMPResponsePtr;
00079 typedef boost::shared_ptr< ::dmp::SetActiveDMPResponse const> SetActiveDMPResponseConstPtr;
00080
00081
00082 struct SetActiveDMP
00083 {
00084
00085 typedef SetActiveDMPRequest Request;
00086 typedef SetActiveDMPResponse Response;
00087 Request request;
00088 Response response;
00089
00090 typedef Request RequestType;
00091 typedef Response ResponseType;
00092 };
00093 }
00094
00095 namespace ros
00096 {
00097 namespace message_traits
00098 {
00099 template<class ContainerAllocator> struct IsMessage< ::dmp::SetActiveDMPRequest_<ContainerAllocator> > : public TrueType {};
00100 template<class ContainerAllocator> struct IsMessage< ::dmp::SetActiveDMPRequest_<ContainerAllocator> const> : public TrueType {};
00101 template<class ContainerAllocator>
00102 struct MD5Sum< ::dmp::SetActiveDMPRequest_<ContainerAllocator> > {
00103 static const char* value()
00104 {
00105 return "ec873fb8fce06b1431bf639280c06e64";
00106 }
00107
00108 static const char* value(const ::dmp::SetActiveDMPRequest_<ContainerAllocator> &) { return value(); }
00109 static const uint64_t static_value1 = 0xec873fb8fce06b14ULL;
00110 static const uint64_t static_value2 = 0x31bf639280c06e64ULL;
00111 };
00112
00113 template<class ContainerAllocator>
00114 struct DataType< ::dmp::SetActiveDMPRequest_<ContainerAllocator> > {
00115 static const char* value()
00116 {
00117 return "dmp/SetActiveDMPRequest";
00118 }
00119
00120 static const char* value(const ::dmp::SetActiveDMPRequest_<ContainerAllocator> &) { return value(); }
00121 };
00122
00123 template<class ContainerAllocator>
00124 struct Definition< ::dmp::SetActiveDMPRequest_<ContainerAllocator> > {
00125 static const char* value()
00126 {
00127 return "\n\
00128 DMPData[] dmp_list\n\
00129 \n\
00130 \n\
00131 ================================================================================\n\
00132 MSG: dmp/DMPData\n\
00133 float64 k_gain\n\
00134 float64 d_gain\n\
00135 float64[] weights\n\
00136 float64[] f_domain\n\
00137 float64[] f_targets\n\
00138 \n\
00139 \n\
00140 ";
00141 }
00142
00143 static const char* value(const ::dmp::SetActiveDMPRequest_<ContainerAllocator> &) { return value(); }
00144 };
00145
00146 }
00147 }
00148
00149
00150 namespace ros
00151 {
00152 namespace message_traits
00153 {
00154 template<class ContainerAllocator> struct IsMessage< ::dmp::SetActiveDMPResponse_<ContainerAllocator> > : public TrueType {};
00155 template<class ContainerAllocator> struct IsMessage< ::dmp::SetActiveDMPResponse_<ContainerAllocator> const> : public TrueType {};
00156 template<class ContainerAllocator>
00157 struct MD5Sum< ::dmp::SetActiveDMPResponse_<ContainerAllocator> > {
00158 static const char* value()
00159 {
00160 return "358e233cde0c8a8bcfea4ce193f8fc15";
00161 }
00162
00163 static const char* value(const ::dmp::SetActiveDMPResponse_<ContainerAllocator> &) { return value(); }
00164 static const uint64_t static_value1 = 0x358e233cde0c8a8bULL;
00165 static const uint64_t static_value2 = 0xcfea4ce193f8fc15ULL;
00166 };
00167
00168 template<class ContainerAllocator>
00169 struct DataType< ::dmp::SetActiveDMPResponse_<ContainerAllocator> > {
00170 static const char* value()
00171 {
00172 return "dmp/SetActiveDMPResponse";
00173 }
00174
00175 static const char* value(const ::dmp::SetActiveDMPResponse_<ContainerAllocator> &) { return value(); }
00176 };
00177
00178 template<class ContainerAllocator>
00179 struct Definition< ::dmp::SetActiveDMPResponse_<ContainerAllocator> > {
00180 static const char* value()
00181 {
00182 return "\n\
00183 \n\
00184 bool success\n\
00185 \n\
00186 \n\
00187 \n\
00188 \n\
00189 \n\
00190 \n\
00191 ";
00192 }
00193
00194 static const char* value(const ::dmp::SetActiveDMPResponse_<ContainerAllocator> &) { return value(); }
00195 };
00196
00197 template<class ContainerAllocator> struct IsFixedSize< ::dmp::SetActiveDMPResponse_<ContainerAllocator> > : public TrueType {};
00198 }
00199 }
00200
00201 namespace ros
00202 {
00203 namespace serialization
00204 {
00205
00206 template<class ContainerAllocator> struct Serializer< ::dmp::SetActiveDMPRequest_<ContainerAllocator> >
00207 {
00208 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00209 {
00210 stream.next(m.dmp_list);
00211 }
00212
00213 ROS_DECLARE_ALLINONE_SERIALIZER;
00214 };
00215 }
00216 }
00217
00218
00219 namespace ros
00220 {
00221 namespace serialization
00222 {
00223
00224 template<class ContainerAllocator> struct Serializer< ::dmp::SetActiveDMPResponse_<ContainerAllocator> >
00225 {
00226 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00227 {
00228 stream.next(m.success);
00229 }
00230
00231 ROS_DECLARE_ALLINONE_SERIALIZER;
00232 };
00233 }
00234 }
00235
00236 namespace ros
00237 {
00238 namespace service_traits
00239 {
00240 template<>
00241 struct MD5Sum<dmp::SetActiveDMP> {
00242 static const char* value()
00243 {
00244 return "10d64adb0a08cbb7afbd425801f828e5";
00245 }
00246
00247 static const char* value(const dmp::SetActiveDMP&) { return value(); }
00248 };
00249
00250 template<>
00251 struct DataType<dmp::SetActiveDMP> {
00252 static const char* value()
00253 {
00254 return "dmp/SetActiveDMP";
00255 }
00256
00257 static const char* value(const dmp::SetActiveDMP&) { return value(); }
00258 };
00259
00260 template<class ContainerAllocator>
00261 struct MD5Sum<dmp::SetActiveDMPRequest_<ContainerAllocator> > {
00262 static const char* value()
00263 {
00264 return "10d64adb0a08cbb7afbd425801f828e5";
00265 }
00266
00267 static const char* value(const dmp::SetActiveDMPRequest_<ContainerAllocator> &) { return value(); }
00268 };
00269
00270 template<class ContainerAllocator>
00271 struct DataType<dmp::SetActiveDMPRequest_<ContainerAllocator> > {
00272 static const char* value()
00273 {
00274 return "dmp/SetActiveDMP";
00275 }
00276
00277 static const char* value(const dmp::SetActiveDMPRequest_<ContainerAllocator> &) { return value(); }
00278 };
00279
00280 template<class ContainerAllocator>
00281 struct MD5Sum<dmp::SetActiveDMPResponse_<ContainerAllocator> > {
00282 static const char* value()
00283 {
00284 return "10d64adb0a08cbb7afbd425801f828e5";
00285 }
00286
00287 static const char* value(const dmp::SetActiveDMPResponse_<ContainerAllocator> &) { return value(); }
00288 };
00289
00290 template<class ContainerAllocator>
00291 struct DataType<dmp::SetActiveDMPResponse_<ContainerAllocator> > {
00292 static const char* value()
00293 {
00294 return "dmp/SetActiveDMP";
00295 }
00296
00297 static const char* value(const dmp::SetActiveDMPResponse_<ContainerAllocator> &) { return value(); }
00298 };
00299
00300 }
00301 }
00302
00303 #endif // DMP_SERVICE_SETACTIVEDMP_H
00304