Go to the documentation of this file.00001
00002 #ifndef WORLDMODEL_MSGS_SERVICE_SETOBJECTSTATE_H
00003 #define WORLDMODEL_MSGS_SERVICE_SETOBJECTSTATE_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 "worldmodel_msgs/ObjectState.h"
00020
00021
00022
00023 namespace worldmodel_msgs
00024 {
00025 template <class ContainerAllocator>
00026 struct SetObjectStateRequest_ {
00027 typedef SetObjectStateRequest_<ContainerAllocator> Type;
00028
00029 SetObjectStateRequest_()
00030 : object_id()
00031 , new_state()
00032 {
00033 }
00034
00035 SetObjectStateRequest_(const ContainerAllocator& _alloc)
00036 : object_id(_alloc)
00037 , new_state(_alloc)
00038 {
00039 }
00040
00041 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _object_id_type;
00042 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > object_id;
00043
00044 typedef ::worldmodel_msgs::ObjectState_<ContainerAllocator> _new_state_type;
00045 ::worldmodel_msgs::ObjectState_<ContainerAllocator> new_state;
00046
00047
00048 typedef boost::shared_ptr< ::worldmodel_msgs::SetObjectStateRequest_<ContainerAllocator> > Ptr;
00049 typedef boost::shared_ptr< ::worldmodel_msgs::SetObjectStateRequest_<ContainerAllocator> const> ConstPtr;
00050 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00051 };
00052 typedef ::worldmodel_msgs::SetObjectStateRequest_<std::allocator<void> > SetObjectStateRequest;
00053
00054 typedef boost::shared_ptr< ::worldmodel_msgs::SetObjectStateRequest> SetObjectStateRequestPtr;
00055 typedef boost::shared_ptr< ::worldmodel_msgs::SetObjectStateRequest const> SetObjectStateRequestConstPtr;
00056
00057
00058 template <class ContainerAllocator>
00059 struct SetObjectStateResponse_ {
00060 typedef SetObjectStateResponse_<ContainerAllocator> Type;
00061
00062 SetObjectStateResponse_()
00063 {
00064 }
00065
00066 SetObjectStateResponse_(const ContainerAllocator& _alloc)
00067 {
00068 }
00069
00070
00071 typedef boost::shared_ptr< ::worldmodel_msgs::SetObjectStateResponse_<ContainerAllocator> > Ptr;
00072 typedef boost::shared_ptr< ::worldmodel_msgs::SetObjectStateResponse_<ContainerAllocator> const> ConstPtr;
00073 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00074 };
00075 typedef ::worldmodel_msgs::SetObjectStateResponse_<std::allocator<void> > SetObjectStateResponse;
00076
00077 typedef boost::shared_ptr< ::worldmodel_msgs::SetObjectStateResponse> SetObjectStateResponsePtr;
00078 typedef boost::shared_ptr< ::worldmodel_msgs::SetObjectStateResponse const> SetObjectStateResponseConstPtr;
00079
00080 struct SetObjectState
00081 {
00082
00083 typedef SetObjectStateRequest Request;
00084 typedef SetObjectStateResponse Response;
00085 Request request;
00086 Response response;
00087
00088 typedef Request RequestType;
00089 typedef Response ResponseType;
00090 };
00091 }
00092
00093 namespace ros
00094 {
00095 namespace message_traits
00096 {
00097 template<class ContainerAllocator> struct IsMessage< ::worldmodel_msgs::SetObjectStateRequest_<ContainerAllocator> > : public TrueType {};
00098 template<class ContainerAllocator> struct IsMessage< ::worldmodel_msgs::SetObjectStateRequest_<ContainerAllocator> const> : public TrueType {};
00099 template<class ContainerAllocator>
00100 struct MD5Sum< ::worldmodel_msgs::SetObjectStateRequest_<ContainerAllocator> > {
00101 static const char* value()
00102 {
00103 return "f1ca4bb9d91ddc88e48d16dceb6ab0e5";
00104 }
00105
00106 static const char* value(const ::worldmodel_msgs::SetObjectStateRequest_<ContainerAllocator> &) { return value(); }
00107 static const uint64_t static_value1 = 0xf1ca4bb9d91ddc88ULL;
00108 static const uint64_t static_value2 = 0xe48d16dceb6ab0e5ULL;
00109 };
00110
00111 template<class ContainerAllocator>
00112 struct DataType< ::worldmodel_msgs::SetObjectStateRequest_<ContainerAllocator> > {
00113 static const char* value()
00114 {
00115 return "worldmodel_msgs/SetObjectStateRequest";
00116 }
00117
00118 static const char* value(const ::worldmodel_msgs::SetObjectStateRequest_<ContainerAllocator> &) { return value(); }
00119 };
00120
00121 template<class ContainerAllocator>
00122 struct Definition< ::worldmodel_msgs::SetObjectStateRequest_<ContainerAllocator> > {
00123 static const char* value()
00124 {
00125 return "\n\
00126 \n\
00127 string object_id\n\
00128 ObjectState new_state\n\
00129 \n\
00130 ================================================================================\n\
00131 MSG: worldmodel_msgs/ObjectState\n\
00132 # The state of an object estimate used to track\n\
00133 # states smaller than 0 disable all updates\n\
00134 \n\
00135 # Predefined states. Use states smaller than 0 or bigger than 63 for user defined states.\n\
00136 int8 UNKNOWN = 0\n\
00137 int8 PENDING = 1\n\
00138 int8 ACTIVE = 2\n\
00139 int8 INACTIVE = 3\n\
00140 int8 CONFIRMED = -1\n\
00141 int8 DISCARDED = -2\n\
00142 int8 APPROACHING = -3\n\
00143 \n\
00144 int8 state\n\
00145 \n\
00146 ";
00147 }
00148
00149 static const char* value(const ::worldmodel_msgs::SetObjectStateRequest_<ContainerAllocator> &) { return value(); }
00150 };
00151
00152 }
00153 }
00154
00155
00156 namespace ros
00157 {
00158 namespace message_traits
00159 {
00160 template<class ContainerAllocator> struct IsMessage< ::worldmodel_msgs::SetObjectStateResponse_<ContainerAllocator> > : public TrueType {};
00161 template<class ContainerAllocator> struct IsMessage< ::worldmodel_msgs::SetObjectStateResponse_<ContainerAllocator> const> : public TrueType {};
00162 template<class ContainerAllocator>
00163 struct MD5Sum< ::worldmodel_msgs::SetObjectStateResponse_<ContainerAllocator> > {
00164 static const char* value()
00165 {
00166 return "d41d8cd98f00b204e9800998ecf8427e";
00167 }
00168
00169 static const char* value(const ::worldmodel_msgs::SetObjectStateResponse_<ContainerAllocator> &) { return value(); }
00170 static const uint64_t static_value1 = 0xd41d8cd98f00b204ULL;
00171 static const uint64_t static_value2 = 0xe9800998ecf8427eULL;
00172 };
00173
00174 template<class ContainerAllocator>
00175 struct DataType< ::worldmodel_msgs::SetObjectStateResponse_<ContainerAllocator> > {
00176 static const char* value()
00177 {
00178 return "worldmodel_msgs/SetObjectStateResponse";
00179 }
00180
00181 static const char* value(const ::worldmodel_msgs::SetObjectStateResponse_<ContainerAllocator> &) { return value(); }
00182 };
00183
00184 template<class ContainerAllocator>
00185 struct Definition< ::worldmodel_msgs::SetObjectStateResponse_<ContainerAllocator> > {
00186 static const char* value()
00187 {
00188 return "\n\
00189 \n\
00190 ";
00191 }
00192
00193 static const char* value(const ::worldmodel_msgs::SetObjectStateResponse_<ContainerAllocator> &) { return value(); }
00194 };
00195
00196 template<class ContainerAllocator> struct IsFixedSize< ::worldmodel_msgs::SetObjectStateResponse_<ContainerAllocator> > : public TrueType {};
00197 }
00198 }
00199
00200 namespace ros
00201 {
00202 namespace serialization
00203 {
00204
00205 template<class ContainerAllocator> struct Serializer< ::worldmodel_msgs::SetObjectStateRequest_<ContainerAllocator> >
00206 {
00207 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00208 {
00209 stream.next(m.object_id);
00210 stream.next(m.new_state);
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< ::worldmodel_msgs::SetObjectStateResponse_<ContainerAllocator> >
00225 {
00226 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00227 {
00228 }
00229
00230 ROS_DECLARE_ALLINONE_SERIALIZER;
00231 };
00232 }
00233 }
00234
00235 namespace ros
00236 {
00237 namespace service_traits
00238 {
00239 template<>
00240 struct MD5Sum<worldmodel_msgs::SetObjectState> {
00241 static const char* value()
00242 {
00243 return "f1ca4bb9d91ddc88e48d16dceb6ab0e5";
00244 }
00245
00246 static const char* value(const worldmodel_msgs::SetObjectState&) { return value(); }
00247 };
00248
00249 template<>
00250 struct DataType<worldmodel_msgs::SetObjectState> {
00251 static const char* value()
00252 {
00253 return "worldmodel_msgs/SetObjectState";
00254 }
00255
00256 static const char* value(const worldmodel_msgs::SetObjectState&) { return value(); }
00257 };
00258
00259 template<class ContainerAllocator>
00260 struct MD5Sum<worldmodel_msgs::SetObjectStateRequest_<ContainerAllocator> > {
00261 static const char* value()
00262 {
00263 return "f1ca4bb9d91ddc88e48d16dceb6ab0e5";
00264 }
00265
00266 static const char* value(const worldmodel_msgs::SetObjectStateRequest_<ContainerAllocator> &) { return value(); }
00267 };
00268
00269 template<class ContainerAllocator>
00270 struct DataType<worldmodel_msgs::SetObjectStateRequest_<ContainerAllocator> > {
00271 static const char* value()
00272 {
00273 return "worldmodel_msgs/SetObjectState";
00274 }
00275
00276 static const char* value(const worldmodel_msgs::SetObjectStateRequest_<ContainerAllocator> &) { return value(); }
00277 };
00278
00279 template<class ContainerAllocator>
00280 struct MD5Sum<worldmodel_msgs::SetObjectStateResponse_<ContainerAllocator> > {
00281 static const char* value()
00282 {
00283 return "f1ca4bb9d91ddc88e48d16dceb6ab0e5";
00284 }
00285
00286 static const char* value(const worldmodel_msgs::SetObjectStateResponse_<ContainerAllocator> &) { return value(); }
00287 };
00288
00289 template<class ContainerAllocator>
00290 struct DataType<worldmodel_msgs::SetObjectStateResponse_<ContainerAllocator> > {
00291 static const char* value()
00292 {
00293 return "worldmodel_msgs/SetObjectState";
00294 }
00295
00296 static const char* value(const worldmodel_msgs::SetObjectStateResponse_<ContainerAllocator> &) { return value(); }
00297 };
00298
00299 }
00300 }
00301
00302 #endif // WORLDMODEL_MSGS_SERVICE_SETOBJECTSTATE_H
00303