00001
00002 #ifndef SIMPLE_ROBOT_CONTROL_SERVICE_RETURNJOINTSTATES_H
00003 #define SIMPLE_ROBOT_CONTROL_SERVICE_RETURNJOINTSTATES_H
00004 #include <string>
00005 #include <vector>
00006 #include <ostream>
00007 #include "ros/serialization.h"
00008 #include "ros/builtin_message_traits.h"
00009 #include "ros/message_operations.h"
00010 #include "ros/message.h"
00011 #include "ros/time.h"
00012
00013 #include "ros/service_traits.h"
00014
00015
00016
00017
00018 namespace simple_robot_control
00019 {
00020 template <class ContainerAllocator>
00021 struct ReturnJointStatesRequest_ : public ros::Message
00022 {
00023 typedef ReturnJointStatesRequest_<ContainerAllocator> Type;
00024
00025 ReturnJointStatesRequest_()
00026 : name()
00027 {
00028 }
00029
00030 ReturnJointStatesRequest_(const ContainerAllocator& _alloc)
00031 : name(_alloc)
00032 {
00033 }
00034
00035 typedef std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > _name_type;
00036 std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > name;
00037
00038
00039 ROS_DEPRECATED uint32_t get_name_size() const { return (uint32_t)name.size(); }
00040 ROS_DEPRECATED void set_name_size(uint32_t size) { name.resize((size_t)size); }
00041 ROS_DEPRECATED void get_name_vec(std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > & vec) const { vec = this->name; }
00042 ROS_DEPRECATED void set_name_vec(const std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > & vec) { this->name = vec; }
00043 private:
00044 static const char* __s_getDataType_() { return "simple_robot_control/ReturnJointStatesRequest"; }
00045 public:
00046 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00047
00048 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00049
00050 private:
00051 static const char* __s_getMD5Sum_() { return "3f2d21c30868b92dc41a0431bacd47b2"; }
00052 public:
00053 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00054
00055 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00056
00057 private:
00058 static const char* __s_getServerMD5Sum_() { return "ce9bd2b56c904b190a782a08482fb4e9"; }
00059 public:
00060 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00061
00062 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00063
00064 private:
00065 static const char* __s_getMessageDefinition_() { return "string[] name\n\
00066 \n\
00067 "; }
00068 public:
00069 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00070
00071 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00072
00073 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00074 {
00075 ros::serialization::OStream stream(write_ptr, 1000000000);
00076 ros::serialization::serialize(stream, name);
00077 return stream.getData();
00078 }
00079
00080 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00081 {
00082 ros::serialization::IStream stream(read_ptr, 1000000000);
00083 ros::serialization::deserialize(stream, name);
00084 return stream.getData();
00085 }
00086
00087 ROS_DEPRECATED virtual uint32_t serializationLength() const
00088 {
00089 uint32_t size = 0;
00090 size += ros::serialization::serializationLength(name);
00091 return size;
00092 }
00093
00094 typedef boost::shared_ptr< ::simple_robot_control::ReturnJointStatesRequest_<ContainerAllocator> > Ptr;
00095 typedef boost::shared_ptr< ::simple_robot_control::ReturnJointStatesRequest_<ContainerAllocator> const> ConstPtr;
00096 };
00097 typedef ::simple_robot_control::ReturnJointStatesRequest_<std::allocator<void> > ReturnJointStatesRequest;
00098
00099 typedef boost::shared_ptr< ::simple_robot_control::ReturnJointStatesRequest> ReturnJointStatesRequestPtr;
00100 typedef boost::shared_ptr< ::simple_robot_control::ReturnJointStatesRequest const> ReturnJointStatesRequestConstPtr;
00101
00102
00103 template <class ContainerAllocator>
00104 struct ReturnJointStatesResponse_ : public ros::Message
00105 {
00106 typedef ReturnJointStatesResponse_<ContainerAllocator> Type;
00107
00108 ReturnJointStatesResponse_()
00109 : found()
00110 , position()
00111 , velocity()
00112 , effort()
00113 {
00114 }
00115
00116 ReturnJointStatesResponse_(const ContainerAllocator& _alloc)
00117 : found(_alloc)
00118 , position(_alloc)
00119 , velocity(_alloc)
00120 , effort(_alloc)
00121 {
00122 }
00123
00124 typedef std::vector<uint32_t, typename ContainerAllocator::template rebind<uint32_t>::other > _found_type;
00125 std::vector<uint32_t, typename ContainerAllocator::template rebind<uint32_t>::other > found;
00126
00127 typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other > _position_type;
00128 std::vector<double, typename ContainerAllocator::template rebind<double>::other > position;
00129
00130 typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other > _velocity_type;
00131 std::vector<double, typename ContainerAllocator::template rebind<double>::other > velocity;
00132
00133 typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other > _effort_type;
00134 std::vector<double, typename ContainerAllocator::template rebind<double>::other > effort;
00135
00136
00137 ROS_DEPRECATED uint32_t get_found_size() const { return (uint32_t)found.size(); }
00138 ROS_DEPRECATED void set_found_size(uint32_t size) { found.resize((size_t)size); }
00139 ROS_DEPRECATED void get_found_vec(std::vector<uint32_t, typename ContainerAllocator::template rebind<uint32_t>::other > & vec) const { vec = this->found; }
00140 ROS_DEPRECATED void set_found_vec(const std::vector<uint32_t, typename ContainerAllocator::template rebind<uint32_t>::other > & vec) { this->found = vec; }
00141 ROS_DEPRECATED uint32_t get_position_size() const { return (uint32_t)position.size(); }
00142 ROS_DEPRECATED void set_position_size(uint32_t size) { position.resize((size_t)size); }
00143 ROS_DEPRECATED void get_position_vec(std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) const { vec = this->position; }
00144 ROS_DEPRECATED void set_position_vec(const std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) { this->position = vec; }
00145 ROS_DEPRECATED uint32_t get_velocity_size() const { return (uint32_t)velocity.size(); }
00146 ROS_DEPRECATED void set_velocity_size(uint32_t size) { velocity.resize((size_t)size); }
00147 ROS_DEPRECATED void get_velocity_vec(std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) const { vec = this->velocity; }
00148 ROS_DEPRECATED void set_velocity_vec(const std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) { this->velocity = vec; }
00149 ROS_DEPRECATED uint32_t get_effort_size() const { return (uint32_t)effort.size(); }
00150 ROS_DEPRECATED void set_effort_size(uint32_t size) { effort.resize((size_t)size); }
00151 ROS_DEPRECATED void get_effort_vec(std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) const { vec = this->effort; }
00152 ROS_DEPRECATED void set_effort_vec(const std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) { this->effort = vec; }
00153 private:
00154 static const char* __s_getDataType_() { return "simple_robot_control/ReturnJointStatesResponse"; }
00155 public:
00156 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00157
00158 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00159
00160 private:
00161 static const char* __s_getMD5Sum_() { return "3a36649f5b1439b638a41d18af93e9a4"; }
00162 public:
00163 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00164
00165 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00166
00167 private:
00168 static const char* __s_getServerMD5Sum_() { return "ce9bd2b56c904b190a782a08482fb4e9"; }
00169 public:
00170 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00171
00172 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00173
00174 private:
00175 static const char* __s_getMessageDefinition_() { return "uint32[] found\n\
00176 float64[] position\n\
00177 float64[] velocity\n\
00178 float64[] effort\n\
00179 \n\
00180 \n\
00181 "; }
00182 public:
00183 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00184
00185 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00186
00187 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00188 {
00189 ros::serialization::OStream stream(write_ptr, 1000000000);
00190 ros::serialization::serialize(stream, found);
00191 ros::serialization::serialize(stream, position);
00192 ros::serialization::serialize(stream, velocity);
00193 ros::serialization::serialize(stream, effort);
00194 return stream.getData();
00195 }
00196
00197 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00198 {
00199 ros::serialization::IStream stream(read_ptr, 1000000000);
00200 ros::serialization::deserialize(stream, found);
00201 ros::serialization::deserialize(stream, position);
00202 ros::serialization::deserialize(stream, velocity);
00203 ros::serialization::deserialize(stream, effort);
00204 return stream.getData();
00205 }
00206
00207 ROS_DEPRECATED virtual uint32_t serializationLength() const
00208 {
00209 uint32_t size = 0;
00210 size += ros::serialization::serializationLength(found);
00211 size += ros::serialization::serializationLength(position);
00212 size += ros::serialization::serializationLength(velocity);
00213 size += ros::serialization::serializationLength(effort);
00214 return size;
00215 }
00216
00217 typedef boost::shared_ptr< ::simple_robot_control::ReturnJointStatesResponse_<ContainerAllocator> > Ptr;
00218 typedef boost::shared_ptr< ::simple_robot_control::ReturnJointStatesResponse_<ContainerAllocator> const> ConstPtr;
00219 };
00220 typedef ::simple_robot_control::ReturnJointStatesResponse_<std::allocator<void> > ReturnJointStatesResponse;
00221
00222 typedef boost::shared_ptr< ::simple_robot_control::ReturnJointStatesResponse> ReturnJointStatesResponsePtr;
00223 typedef boost::shared_ptr< ::simple_robot_control::ReturnJointStatesResponse const> ReturnJointStatesResponseConstPtr;
00224
00225 struct ReturnJointStates
00226 {
00227
00228 typedef ReturnJointStatesRequest Request;
00229 typedef ReturnJointStatesResponse Response;
00230 Request request;
00231 Response response;
00232
00233 typedef Request RequestType;
00234 typedef Response ResponseType;
00235 };
00236 }
00237
00238 namespace ros
00239 {
00240 namespace message_traits
00241 {
00242 template<class ContainerAllocator>
00243 struct MD5Sum< ::simple_robot_control::ReturnJointStatesRequest_<ContainerAllocator> > {
00244 static const char* value()
00245 {
00246 return "3f2d21c30868b92dc41a0431bacd47b2";
00247 }
00248
00249 static const char* value(const ::simple_robot_control::ReturnJointStatesRequest_<ContainerAllocator> &) { return value(); }
00250 static const uint64_t static_value1 = 0x3f2d21c30868b92dULL;
00251 static const uint64_t static_value2 = 0xc41a0431bacd47b2ULL;
00252 };
00253
00254 template<class ContainerAllocator>
00255 struct DataType< ::simple_robot_control::ReturnJointStatesRequest_<ContainerAllocator> > {
00256 static const char* value()
00257 {
00258 return "simple_robot_control/ReturnJointStatesRequest";
00259 }
00260
00261 static const char* value(const ::simple_robot_control::ReturnJointStatesRequest_<ContainerAllocator> &) { return value(); }
00262 };
00263
00264 template<class ContainerAllocator>
00265 struct Definition< ::simple_robot_control::ReturnJointStatesRequest_<ContainerAllocator> > {
00266 static const char* value()
00267 {
00268 return "string[] name\n\
00269 \n\
00270 ";
00271 }
00272
00273 static const char* value(const ::simple_robot_control::ReturnJointStatesRequest_<ContainerAllocator> &) { return value(); }
00274 };
00275
00276 }
00277 }
00278
00279
00280 namespace ros
00281 {
00282 namespace message_traits
00283 {
00284 template<class ContainerAllocator>
00285 struct MD5Sum< ::simple_robot_control::ReturnJointStatesResponse_<ContainerAllocator> > {
00286 static const char* value()
00287 {
00288 return "3a36649f5b1439b638a41d18af93e9a4";
00289 }
00290
00291 static const char* value(const ::simple_robot_control::ReturnJointStatesResponse_<ContainerAllocator> &) { return value(); }
00292 static const uint64_t static_value1 = 0x3a36649f5b1439b6ULL;
00293 static const uint64_t static_value2 = 0x38a41d18af93e9a4ULL;
00294 };
00295
00296 template<class ContainerAllocator>
00297 struct DataType< ::simple_robot_control::ReturnJointStatesResponse_<ContainerAllocator> > {
00298 static const char* value()
00299 {
00300 return "simple_robot_control/ReturnJointStatesResponse";
00301 }
00302
00303 static const char* value(const ::simple_robot_control::ReturnJointStatesResponse_<ContainerAllocator> &) { return value(); }
00304 };
00305
00306 template<class ContainerAllocator>
00307 struct Definition< ::simple_robot_control::ReturnJointStatesResponse_<ContainerAllocator> > {
00308 static const char* value()
00309 {
00310 return "uint32[] found\n\
00311 float64[] position\n\
00312 float64[] velocity\n\
00313 float64[] effort\n\
00314 \n\
00315 \n\
00316 ";
00317 }
00318
00319 static const char* value(const ::simple_robot_control::ReturnJointStatesResponse_<ContainerAllocator> &) { return value(); }
00320 };
00321
00322 }
00323 }
00324
00325 namespace ros
00326 {
00327 namespace serialization
00328 {
00329
00330 template<class ContainerAllocator> struct Serializer< ::simple_robot_control::ReturnJointStatesRequest_<ContainerAllocator> >
00331 {
00332 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00333 {
00334 stream.next(m.name);
00335 }
00336
00337 ROS_DECLARE_ALLINONE_SERIALIZER;
00338 };
00339 }
00340 }
00341
00342
00343 namespace ros
00344 {
00345 namespace serialization
00346 {
00347
00348 template<class ContainerAllocator> struct Serializer< ::simple_robot_control::ReturnJointStatesResponse_<ContainerAllocator> >
00349 {
00350 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00351 {
00352 stream.next(m.found);
00353 stream.next(m.position);
00354 stream.next(m.velocity);
00355 stream.next(m.effort);
00356 }
00357
00358 ROS_DECLARE_ALLINONE_SERIALIZER;
00359 };
00360 }
00361 }
00362
00363 namespace ros
00364 {
00365 namespace service_traits
00366 {
00367 template<>
00368 struct MD5Sum<simple_robot_control::ReturnJointStates> {
00369 static const char* value()
00370 {
00371 return "ce9bd2b56c904b190a782a08482fb4e9";
00372 }
00373
00374 static const char* value(const simple_robot_control::ReturnJointStates&) { return value(); }
00375 };
00376
00377 template<>
00378 struct DataType<simple_robot_control::ReturnJointStates> {
00379 static const char* value()
00380 {
00381 return "simple_robot_control/ReturnJointStates";
00382 }
00383
00384 static const char* value(const simple_robot_control::ReturnJointStates&) { return value(); }
00385 };
00386
00387 template<class ContainerAllocator>
00388 struct MD5Sum<simple_robot_control::ReturnJointStatesRequest_<ContainerAllocator> > {
00389 static const char* value()
00390 {
00391 return "ce9bd2b56c904b190a782a08482fb4e9";
00392 }
00393
00394 static const char* value(const simple_robot_control::ReturnJointStatesRequest_<ContainerAllocator> &) { return value(); }
00395 };
00396
00397 template<class ContainerAllocator>
00398 struct DataType<simple_robot_control::ReturnJointStatesRequest_<ContainerAllocator> > {
00399 static const char* value()
00400 {
00401 return "simple_robot_control/ReturnJointStates";
00402 }
00403
00404 static const char* value(const simple_robot_control::ReturnJointStatesRequest_<ContainerAllocator> &) { return value(); }
00405 };
00406
00407 template<class ContainerAllocator>
00408 struct MD5Sum<simple_robot_control::ReturnJointStatesResponse_<ContainerAllocator> > {
00409 static const char* value()
00410 {
00411 return "ce9bd2b56c904b190a782a08482fb4e9";
00412 }
00413
00414 static const char* value(const simple_robot_control::ReturnJointStatesResponse_<ContainerAllocator> &) { return value(); }
00415 };
00416
00417 template<class ContainerAllocator>
00418 struct DataType<simple_robot_control::ReturnJointStatesResponse_<ContainerAllocator> > {
00419 static const char* value()
00420 {
00421 return "simple_robot_control/ReturnJointStates";
00422 }
00423
00424 static const char* value(const simple_robot_control::ReturnJointStatesResponse_<ContainerAllocator> &) { return value(); }
00425 };
00426
00427 }
00428 }
00429
00430 #endif // SIMPLE_ROBOT_CONTROL_SERVICE_RETURNJOINTSTATES_H
00431