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