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