00001
00002 #ifndef GAZEBO_PLUGINS_SERVICE_SETMODELSJOINTSSTATES_H
00003 #define GAZEBO_PLUGINS_SERVICE_SETMODELSJOINTSSTATES_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 #include "gazebo_plugins/ModelJointsState.h"
00016
00017
00018
00019 namespace gazebo_plugins
00020 {
00021 template <class ContainerAllocator>
00022 struct SetModelsJointsStatesRequest_ : public ros::Message
00023 {
00024 typedef SetModelsJointsStatesRequest_<ContainerAllocator> Type;
00025
00026 SetModelsJointsStatesRequest_()
00027 : model_names()
00028 , model_joints_states()
00029 {
00030 }
00031
00032 SetModelsJointsStatesRequest_(const ContainerAllocator& _alloc)
00033 : model_names(_alloc)
00034 , model_joints_states(_alloc)
00035 {
00036 }
00037
00038 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 > _model_names_type;
00039 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 > model_names;
00040
00041 typedef std::vector< ::gazebo_plugins::ModelJointsState_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::gazebo_plugins::ModelJointsState_<ContainerAllocator> >::other > _model_joints_states_type;
00042 std::vector< ::gazebo_plugins::ModelJointsState_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::gazebo_plugins::ModelJointsState_<ContainerAllocator> >::other > model_joints_states;
00043
00044
00045 ROS_DEPRECATED uint32_t get_model_names_size() const { return (uint32_t)model_names.size(); }
00046 ROS_DEPRECATED void set_model_names_size(uint32_t size) { model_names.resize((size_t)size); }
00047 ROS_DEPRECATED void get_model_names_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->model_names; }
00048 ROS_DEPRECATED void set_model_names_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->model_names = vec; }
00049 ROS_DEPRECATED uint32_t get_model_joints_states_size() const { return (uint32_t)model_joints_states.size(); }
00050 ROS_DEPRECATED void set_model_joints_states_size(uint32_t size) { model_joints_states.resize((size_t)size); }
00051 ROS_DEPRECATED void get_model_joints_states_vec(std::vector< ::gazebo_plugins::ModelJointsState_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::gazebo_plugins::ModelJointsState_<ContainerAllocator> >::other > & vec) const { vec = this->model_joints_states; }
00052 ROS_DEPRECATED void set_model_joints_states_vec(const std::vector< ::gazebo_plugins::ModelJointsState_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::gazebo_plugins::ModelJointsState_<ContainerAllocator> >::other > & vec) { this->model_joints_states = vec; }
00053 private:
00054 static const char* __s_getDataType_() { return "gazebo_plugins/SetModelsJointsStatesRequest"; }
00055 public:
00056 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00057
00058 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00059
00060 private:
00061 static const char* __s_getMD5Sum_() { return "ecf71b483df7b70447575a8231727200"; }
00062 public:
00063 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00064
00065 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00066
00067 private:
00068 static const char* __s_getServerMD5Sum_() { return "b3f4760ee77e28f605915bcee447b72d"; }
00069 public:
00070 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00071
00072 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00073
00074 private:
00075 static const char* __s_getMessageDefinition_() { return "string[] model_names\n\
00076 gazebo_plugins/ModelJointsState[] model_joints_states\n\
00077 \n\
00078 ================================================================================\n\
00079 MSG: gazebo_plugins/ModelJointsState\n\
00080 geometry_msgs/Pose[] model_pose # set as single element array if user wishes to specify model pose, otherwise, leave empty\n\
00081 string[] joint_names # list of joint names\n\
00082 float64[] joint_positions # list of desired joint positions, should match joint_names\n\
00083 \n\
00084 ================================================================================\n\
00085 MSG: geometry_msgs/Pose\n\
00086 # A representation of pose in free space, composed of postion and orientation. \n\
00087 Point position\n\
00088 Quaternion orientation\n\
00089 \n\
00090 ================================================================================\n\
00091 MSG: geometry_msgs/Point\n\
00092 # This contains the position of a point in free space\n\
00093 float64 x\n\
00094 float64 y\n\
00095 float64 z\n\
00096 \n\
00097 ================================================================================\n\
00098 MSG: geometry_msgs/Quaternion\n\
00099 # This represents an orientation in free space in quaternion form.\n\
00100 \n\
00101 float64 x\n\
00102 float64 y\n\
00103 float64 z\n\
00104 float64 w\n\
00105 \n\
00106 "; }
00107 public:
00108 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00109
00110 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00111
00112 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00113 {
00114 ros::serialization::OStream stream(write_ptr, 1000000000);
00115 ros::serialization::serialize(stream, model_names);
00116 ros::serialization::serialize(stream, model_joints_states);
00117 return stream.getData();
00118 }
00119
00120 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00121 {
00122 ros::serialization::IStream stream(read_ptr, 1000000000);
00123 ros::serialization::deserialize(stream, model_names);
00124 ros::serialization::deserialize(stream, model_joints_states);
00125 return stream.getData();
00126 }
00127
00128 ROS_DEPRECATED virtual uint32_t serializationLength() const
00129 {
00130 uint32_t size = 0;
00131 size += ros::serialization::serializationLength(model_names);
00132 size += ros::serialization::serializationLength(model_joints_states);
00133 return size;
00134 }
00135
00136 typedef boost::shared_ptr< ::gazebo_plugins::SetModelsJointsStatesRequest_<ContainerAllocator> > Ptr;
00137 typedef boost::shared_ptr< ::gazebo_plugins::SetModelsJointsStatesRequest_<ContainerAllocator> const> ConstPtr;
00138 };
00139 typedef ::gazebo_plugins::SetModelsJointsStatesRequest_<std::allocator<void> > SetModelsJointsStatesRequest;
00140
00141 typedef boost::shared_ptr< ::gazebo_plugins::SetModelsJointsStatesRequest> SetModelsJointsStatesRequestPtr;
00142 typedef boost::shared_ptr< ::gazebo_plugins::SetModelsJointsStatesRequest const> SetModelsJointsStatesRequestConstPtr;
00143
00144
00145 template <class ContainerAllocator>
00146 struct SetModelsJointsStatesResponse_ : public ros::Message
00147 {
00148 typedef SetModelsJointsStatesResponse_<ContainerAllocator> Type;
00149
00150 SetModelsJointsStatesResponse_()
00151 : success(false)
00152 , status_message()
00153 {
00154 }
00155
00156 SetModelsJointsStatesResponse_(const ContainerAllocator& _alloc)
00157 : success(false)
00158 , status_message(_alloc)
00159 {
00160 }
00161
00162 typedef uint8_t _success_type;
00163 uint8_t success;
00164
00165 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _status_message_type;
00166 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > status_message;
00167
00168
00169 private:
00170 static const char* __s_getDataType_() { return "gazebo_plugins/SetModelsJointsStatesResponse"; }
00171 public:
00172 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00173
00174 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00175
00176 private:
00177 static const char* __s_getMD5Sum_() { return "2ec6f3eff0161f4257b808b12bc830c2"; }
00178 public:
00179 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00180
00181 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00182
00183 private:
00184 static const char* __s_getServerMD5Sum_() { return "b3f4760ee77e28f605915bcee447b72d"; }
00185 public:
00186 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00187
00188 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00189
00190 private:
00191 static const char* __s_getMessageDefinition_() { return "bool success\n\
00192 string status_message\n\
00193 \n\
00194 \n\
00195 "; }
00196 public:
00197 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00198
00199 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00200
00201 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00202 {
00203 ros::serialization::OStream stream(write_ptr, 1000000000);
00204 ros::serialization::serialize(stream, success);
00205 ros::serialization::serialize(stream, status_message);
00206 return stream.getData();
00207 }
00208
00209 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00210 {
00211 ros::serialization::IStream stream(read_ptr, 1000000000);
00212 ros::serialization::deserialize(stream, success);
00213 ros::serialization::deserialize(stream, status_message);
00214 return stream.getData();
00215 }
00216
00217 ROS_DEPRECATED virtual uint32_t serializationLength() const
00218 {
00219 uint32_t size = 0;
00220 size += ros::serialization::serializationLength(success);
00221 size += ros::serialization::serializationLength(status_message);
00222 return size;
00223 }
00224
00225 typedef boost::shared_ptr< ::gazebo_plugins::SetModelsJointsStatesResponse_<ContainerAllocator> > Ptr;
00226 typedef boost::shared_ptr< ::gazebo_plugins::SetModelsJointsStatesResponse_<ContainerAllocator> const> ConstPtr;
00227 };
00228 typedef ::gazebo_plugins::SetModelsJointsStatesResponse_<std::allocator<void> > SetModelsJointsStatesResponse;
00229
00230 typedef boost::shared_ptr< ::gazebo_plugins::SetModelsJointsStatesResponse> SetModelsJointsStatesResponsePtr;
00231 typedef boost::shared_ptr< ::gazebo_plugins::SetModelsJointsStatesResponse const> SetModelsJointsStatesResponseConstPtr;
00232
00233 struct SetModelsJointsStates
00234 {
00235
00236 typedef SetModelsJointsStatesRequest Request;
00237 typedef SetModelsJointsStatesResponse Response;
00238 Request request;
00239 Response response;
00240
00241 typedef Request RequestType;
00242 typedef Response ResponseType;
00243 };
00244 }
00245
00246 namespace ros
00247 {
00248 namespace message_traits
00249 {
00250 template<class ContainerAllocator>
00251 struct MD5Sum< ::gazebo_plugins::SetModelsJointsStatesRequest_<ContainerAllocator> > {
00252 static const char* value()
00253 {
00254 return "ecf71b483df7b70447575a8231727200";
00255 }
00256
00257 static const char* value(const ::gazebo_plugins::SetModelsJointsStatesRequest_<ContainerAllocator> &) { return value(); }
00258 static const uint64_t static_value1 = 0xecf71b483df7b704ULL;
00259 static const uint64_t static_value2 = 0x47575a8231727200ULL;
00260 };
00261
00262 template<class ContainerAllocator>
00263 struct DataType< ::gazebo_plugins::SetModelsJointsStatesRequest_<ContainerAllocator> > {
00264 static const char* value()
00265 {
00266 return "gazebo_plugins/SetModelsJointsStatesRequest";
00267 }
00268
00269 static const char* value(const ::gazebo_plugins::SetModelsJointsStatesRequest_<ContainerAllocator> &) { return value(); }
00270 };
00271
00272 template<class ContainerAllocator>
00273 struct Definition< ::gazebo_plugins::SetModelsJointsStatesRequest_<ContainerAllocator> > {
00274 static const char* value()
00275 {
00276 return "string[] model_names\n\
00277 gazebo_plugins/ModelJointsState[] model_joints_states\n\
00278 \n\
00279 ================================================================================\n\
00280 MSG: gazebo_plugins/ModelJointsState\n\
00281 geometry_msgs/Pose[] model_pose # set as single element array if user wishes to specify model pose, otherwise, leave empty\n\
00282 string[] joint_names # list of joint names\n\
00283 float64[] joint_positions # list of desired joint positions, should match joint_names\n\
00284 \n\
00285 ================================================================================\n\
00286 MSG: geometry_msgs/Pose\n\
00287 # A representation of pose in free space, composed of postion and orientation. \n\
00288 Point position\n\
00289 Quaternion orientation\n\
00290 \n\
00291 ================================================================================\n\
00292 MSG: geometry_msgs/Point\n\
00293 # This contains the position of a point in free space\n\
00294 float64 x\n\
00295 float64 y\n\
00296 float64 z\n\
00297 \n\
00298 ================================================================================\n\
00299 MSG: geometry_msgs/Quaternion\n\
00300 # This represents an orientation in free space in quaternion form.\n\
00301 \n\
00302 float64 x\n\
00303 float64 y\n\
00304 float64 z\n\
00305 float64 w\n\
00306 \n\
00307 ";
00308 }
00309
00310 static const char* value(const ::gazebo_plugins::SetModelsJointsStatesRequest_<ContainerAllocator> &) { return value(); }
00311 };
00312
00313 }
00314 }
00315
00316
00317 namespace ros
00318 {
00319 namespace message_traits
00320 {
00321 template<class ContainerAllocator>
00322 struct MD5Sum< ::gazebo_plugins::SetModelsJointsStatesResponse_<ContainerAllocator> > {
00323 static const char* value()
00324 {
00325 return "2ec6f3eff0161f4257b808b12bc830c2";
00326 }
00327
00328 static const char* value(const ::gazebo_plugins::SetModelsJointsStatesResponse_<ContainerAllocator> &) { return value(); }
00329 static const uint64_t static_value1 = 0x2ec6f3eff0161f42ULL;
00330 static const uint64_t static_value2 = 0x57b808b12bc830c2ULL;
00331 };
00332
00333 template<class ContainerAllocator>
00334 struct DataType< ::gazebo_plugins::SetModelsJointsStatesResponse_<ContainerAllocator> > {
00335 static const char* value()
00336 {
00337 return "gazebo_plugins/SetModelsJointsStatesResponse";
00338 }
00339
00340 static const char* value(const ::gazebo_plugins::SetModelsJointsStatesResponse_<ContainerAllocator> &) { return value(); }
00341 };
00342
00343 template<class ContainerAllocator>
00344 struct Definition< ::gazebo_plugins::SetModelsJointsStatesResponse_<ContainerAllocator> > {
00345 static const char* value()
00346 {
00347 return "bool success\n\
00348 string status_message\n\
00349 \n\
00350 \n\
00351 ";
00352 }
00353
00354 static const char* value(const ::gazebo_plugins::SetModelsJointsStatesResponse_<ContainerAllocator> &) { return value(); }
00355 };
00356
00357 }
00358 }
00359
00360 namespace ros
00361 {
00362 namespace serialization
00363 {
00364
00365 template<class ContainerAllocator> struct Serializer< ::gazebo_plugins::SetModelsJointsStatesRequest_<ContainerAllocator> >
00366 {
00367 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00368 {
00369 stream.next(m.model_names);
00370 stream.next(m.model_joints_states);
00371 }
00372
00373 ROS_DECLARE_ALLINONE_SERIALIZER;
00374 };
00375 }
00376 }
00377
00378
00379 namespace ros
00380 {
00381 namespace serialization
00382 {
00383
00384 template<class ContainerAllocator> struct Serializer< ::gazebo_plugins::SetModelsJointsStatesResponse_<ContainerAllocator> >
00385 {
00386 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00387 {
00388 stream.next(m.success);
00389 stream.next(m.status_message);
00390 }
00391
00392 ROS_DECLARE_ALLINONE_SERIALIZER;
00393 };
00394 }
00395 }
00396
00397 namespace ros
00398 {
00399 namespace service_traits
00400 {
00401 template<>
00402 struct MD5Sum<gazebo_plugins::SetModelsJointsStates> {
00403 static const char* value()
00404 {
00405 return "b3f4760ee77e28f605915bcee447b72d";
00406 }
00407
00408 static const char* value(const gazebo_plugins::SetModelsJointsStates&) { return value(); }
00409 };
00410
00411 template<>
00412 struct DataType<gazebo_plugins::SetModelsJointsStates> {
00413 static const char* value()
00414 {
00415 return "gazebo_plugins/SetModelsJointsStates";
00416 }
00417
00418 static const char* value(const gazebo_plugins::SetModelsJointsStates&) { return value(); }
00419 };
00420
00421 template<class ContainerAllocator>
00422 struct MD5Sum<gazebo_plugins::SetModelsJointsStatesRequest_<ContainerAllocator> > {
00423 static const char* value()
00424 {
00425 return "b3f4760ee77e28f605915bcee447b72d";
00426 }
00427
00428 static const char* value(const gazebo_plugins::SetModelsJointsStatesRequest_<ContainerAllocator> &) { return value(); }
00429 };
00430
00431 template<class ContainerAllocator>
00432 struct DataType<gazebo_plugins::SetModelsJointsStatesRequest_<ContainerAllocator> > {
00433 static const char* value()
00434 {
00435 return "gazebo_plugins/SetModelsJointsStates";
00436 }
00437
00438 static const char* value(const gazebo_plugins::SetModelsJointsStatesRequest_<ContainerAllocator> &) { return value(); }
00439 };
00440
00441 template<class ContainerAllocator>
00442 struct MD5Sum<gazebo_plugins::SetModelsJointsStatesResponse_<ContainerAllocator> > {
00443 static const char* value()
00444 {
00445 return "b3f4760ee77e28f605915bcee447b72d";
00446 }
00447
00448 static const char* value(const gazebo_plugins::SetModelsJointsStatesResponse_<ContainerAllocator> &) { return value(); }
00449 };
00450
00451 template<class ContainerAllocator>
00452 struct DataType<gazebo_plugins::SetModelsJointsStatesResponse_<ContainerAllocator> > {
00453 static const char* value()
00454 {
00455 return "gazebo_plugins/SetModelsJointsStates";
00456 }
00457
00458 static const char* value(const gazebo_plugins::SetModelsJointsStatesResponse_<ContainerAllocator> &) { return value(); }
00459 };
00460
00461 }
00462 }
00463
00464 #endif // GAZEBO_PLUGINS_SERVICE_SETMODELSJOINTSSTATES_H
00465