00001
00002 #ifndef PR2_CONTROLLERS_MSGS_MESSAGE_POINTHEADGOAL_H
00003 #define PR2_CONTROLLERS_MSGS_MESSAGE_POINTHEADGOAL_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 "geometry_msgs/PointStamped.h"
00014 #include "geometry_msgs/Vector3.h"
00015
00016 namespace pr2_controllers_msgs
00017 {
00018 template <class ContainerAllocator>
00019 struct PointHeadGoal_ : public ros::Message
00020 {
00021 typedef PointHeadGoal_<ContainerAllocator> Type;
00022
00023 PointHeadGoal_()
00024 : target()
00025 , pointing_axis()
00026 , pointing_frame()
00027 , min_duration()
00028 , max_velocity(0.0)
00029 {
00030 }
00031
00032 PointHeadGoal_(const ContainerAllocator& _alloc)
00033 : target(_alloc)
00034 , pointing_axis(_alloc)
00035 , pointing_frame(_alloc)
00036 , min_duration()
00037 , max_velocity(0.0)
00038 {
00039 }
00040
00041 typedef ::geometry_msgs::PointStamped_<ContainerAllocator> _target_type;
00042 ::geometry_msgs::PointStamped_<ContainerAllocator> target;
00043
00044 typedef ::geometry_msgs::Vector3_<ContainerAllocator> _pointing_axis_type;
00045 ::geometry_msgs::Vector3_<ContainerAllocator> pointing_axis;
00046
00047 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _pointing_frame_type;
00048 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > pointing_frame;
00049
00050 typedef ros::Duration _min_duration_type;
00051 ros::Duration min_duration;
00052
00053 typedef double _max_velocity_type;
00054 double max_velocity;
00055
00056
00057 private:
00058 static const char* __s_getDataType_() { return "pr2_controllers_msgs/PointHeadGoal"; }
00059 public:
00060 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00061
00062 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00063
00064 private:
00065 static const char* __s_getMD5Sum_() { return "8b92b1cd5e06c8a94c917dc3209a4c1d"; }
00066 public:
00067 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00068
00069 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00070
00071 private:
00072 static const char* __s_getMessageDefinition_() { return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00073 geometry_msgs/PointStamped target\n\
00074 geometry_msgs/Vector3 pointing_axis\n\
00075 string pointing_frame\n\
00076 duration min_duration\n\
00077 float64 max_velocity\n\
00078 \n\
00079 ================================================================================\n\
00080 MSG: geometry_msgs/PointStamped\n\
00081 # This represents a Point with reference coordinate frame and timestamp\n\
00082 Header header\n\
00083 Point point\n\
00084 \n\
00085 ================================================================================\n\
00086 MSG: std_msgs/Header\n\
00087 # Standard metadata for higher-level stamped data types.\n\
00088 # This is generally used to communicate timestamped data \n\
00089 # in a particular coordinate frame.\n\
00090 # \n\
00091 # sequence ID: consecutively increasing ID \n\
00092 uint32 seq\n\
00093 #Two-integer timestamp that is expressed as:\n\
00094 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00095 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00096 # time-handling sugar is provided by the client library\n\
00097 time stamp\n\
00098 #Frame this data is associated with\n\
00099 # 0: no frame\n\
00100 # 1: global frame\n\
00101 string frame_id\n\
00102 \n\
00103 ================================================================================\n\
00104 MSG: geometry_msgs/Point\n\
00105 # This contains the position of a point in free space\n\
00106 float64 x\n\
00107 float64 y\n\
00108 float64 z\n\
00109 \n\
00110 ================================================================================\n\
00111 MSG: geometry_msgs/Vector3\n\
00112 # This represents a vector in free space. \n\
00113 \n\
00114 float64 x\n\
00115 float64 y\n\
00116 float64 z\n\
00117 "; }
00118 public:
00119 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00120
00121 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00122
00123 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00124 {
00125 ros::serialization::OStream stream(write_ptr, 1000000000);
00126 ros::serialization::serialize(stream, target);
00127 ros::serialization::serialize(stream, pointing_axis);
00128 ros::serialization::serialize(stream, pointing_frame);
00129 ros::serialization::serialize(stream, min_duration);
00130 ros::serialization::serialize(stream, max_velocity);
00131 return stream.getData();
00132 }
00133
00134 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00135 {
00136 ros::serialization::IStream stream(read_ptr, 1000000000);
00137 ros::serialization::deserialize(stream, target);
00138 ros::serialization::deserialize(stream, pointing_axis);
00139 ros::serialization::deserialize(stream, pointing_frame);
00140 ros::serialization::deserialize(stream, min_duration);
00141 ros::serialization::deserialize(stream, max_velocity);
00142 return stream.getData();
00143 }
00144
00145 ROS_DEPRECATED virtual uint32_t serializationLength() const
00146 {
00147 uint32_t size = 0;
00148 size += ros::serialization::serializationLength(target);
00149 size += ros::serialization::serializationLength(pointing_axis);
00150 size += ros::serialization::serializationLength(pointing_frame);
00151 size += ros::serialization::serializationLength(min_duration);
00152 size += ros::serialization::serializationLength(max_velocity);
00153 return size;
00154 }
00155
00156 typedef boost::shared_ptr< ::pr2_controllers_msgs::PointHeadGoal_<ContainerAllocator> > Ptr;
00157 typedef boost::shared_ptr< ::pr2_controllers_msgs::PointHeadGoal_<ContainerAllocator> const> ConstPtr;
00158 };
00159 typedef ::pr2_controllers_msgs::PointHeadGoal_<std::allocator<void> > PointHeadGoal;
00160
00161 typedef boost::shared_ptr< ::pr2_controllers_msgs::PointHeadGoal> PointHeadGoalPtr;
00162 typedef boost::shared_ptr< ::pr2_controllers_msgs::PointHeadGoal const> PointHeadGoalConstPtr;
00163
00164
00165 template<typename ContainerAllocator>
00166 std::ostream& operator<<(std::ostream& s, const ::pr2_controllers_msgs::PointHeadGoal_<ContainerAllocator> & v)
00167 {
00168 ros::message_operations::Printer< ::pr2_controllers_msgs::PointHeadGoal_<ContainerAllocator> >::stream(s, "", v);
00169 return s;}
00170
00171 }
00172
00173 namespace ros
00174 {
00175 namespace message_traits
00176 {
00177 template<class ContainerAllocator>
00178 struct MD5Sum< ::pr2_controllers_msgs::PointHeadGoal_<ContainerAllocator> > {
00179 static const char* value()
00180 {
00181 return "8b92b1cd5e06c8a94c917dc3209a4c1d";
00182 }
00183
00184 static const char* value(const ::pr2_controllers_msgs::PointHeadGoal_<ContainerAllocator> &) { return value(); }
00185 static const uint64_t static_value1 = 0x8b92b1cd5e06c8a9ULL;
00186 static const uint64_t static_value2 = 0x4c917dc3209a4c1dULL;
00187 };
00188
00189 template<class ContainerAllocator>
00190 struct DataType< ::pr2_controllers_msgs::PointHeadGoal_<ContainerAllocator> > {
00191 static const char* value()
00192 {
00193 return "pr2_controllers_msgs/PointHeadGoal";
00194 }
00195
00196 static const char* value(const ::pr2_controllers_msgs::PointHeadGoal_<ContainerAllocator> &) { return value(); }
00197 };
00198
00199 template<class ContainerAllocator>
00200 struct Definition< ::pr2_controllers_msgs::PointHeadGoal_<ContainerAllocator> > {
00201 static const char* value()
00202 {
00203 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00204 geometry_msgs/PointStamped target\n\
00205 geometry_msgs/Vector3 pointing_axis\n\
00206 string pointing_frame\n\
00207 duration min_duration\n\
00208 float64 max_velocity\n\
00209 \n\
00210 ================================================================================\n\
00211 MSG: geometry_msgs/PointStamped\n\
00212 # This represents a Point with reference coordinate frame and timestamp\n\
00213 Header header\n\
00214 Point point\n\
00215 \n\
00216 ================================================================================\n\
00217 MSG: std_msgs/Header\n\
00218 # Standard metadata for higher-level stamped data types.\n\
00219 # This is generally used to communicate timestamped data \n\
00220 # in a particular coordinate frame.\n\
00221 # \n\
00222 # sequence ID: consecutively increasing ID \n\
00223 uint32 seq\n\
00224 #Two-integer timestamp that is expressed as:\n\
00225 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00226 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00227 # time-handling sugar is provided by the client library\n\
00228 time stamp\n\
00229 #Frame this data is associated with\n\
00230 # 0: no frame\n\
00231 # 1: global frame\n\
00232 string frame_id\n\
00233 \n\
00234 ================================================================================\n\
00235 MSG: geometry_msgs/Point\n\
00236 # This contains the position of a point in free space\n\
00237 float64 x\n\
00238 float64 y\n\
00239 float64 z\n\
00240 \n\
00241 ================================================================================\n\
00242 MSG: geometry_msgs/Vector3\n\
00243 # This represents a vector in free space. \n\
00244 \n\
00245 float64 x\n\
00246 float64 y\n\
00247 float64 z\n\
00248 ";
00249 }
00250
00251 static const char* value(const ::pr2_controllers_msgs::PointHeadGoal_<ContainerAllocator> &) { return value(); }
00252 };
00253
00254 }
00255 }
00256
00257 namespace ros
00258 {
00259 namespace serialization
00260 {
00261
00262 template<class ContainerAllocator> struct Serializer< ::pr2_controllers_msgs::PointHeadGoal_<ContainerAllocator> >
00263 {
00264 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00265 {
00266 stream.next(m.target);
00267 stream.next(m.pointing_axis);
00268 stream.next(m.pointing_frame);
00269 stream.next(m.min_duration);
00270 stream.next(m.max_velocity);
00271 }
00272
00273 ROS_DECLARE_ALLINONE_SERIALIZER;
00274 };
00275 }
00276 }
00277
00278 namespace ros
00279 {
00280 namespace message_operations
00281 {
00282
00283 template<class ContainerAllocator>
00284 struct Printer< ::pr2_controllers_msgs::PointHeadGoal_<ContainerAllocator> >
00285 {
00286 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pr2_controllers_msgs::PointHeadGoal_<ContainerAllocator> & v)
00287 {
00288 s << indent << "target: ";
00289 s << std::endl;
00290 Printer< ::geometry_msgs::PointStamped_<ContainerAllocator> >::stream(s, indent + " ", v.target);
00291 s << indent << "pointing_axis: ";
00292 s << std::endl;
00293 Printer< ::geometry_msgs::Vector3_<ContainerAllocator> >::stream(s, indent + " ", v.pointing_axis);
00294 s << indent << "pointing_frame: ";
00295 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.pointing_frame);
00296 s << indent << "min_duration: ";
00297 Printer<ros::Duration>::stream(s, indent + " ", v.min_duration);
00298 s << indent << "max_velocity: ";
00299 Printer<double>::stream(s, indent + " ", v.max_velocity);
00300 }
00301 };
00302
00303
00304 }
00305 }
00306
00307 #endif // PR2_CONTROLLERS_MSGS_MESSAGE_POINTHEADGOAL_H
00308