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