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