00001
00002 #ifndef PR2_CONTROLLERS_MSGS_MESSAGE_SINGLEJOINTPOSITIONFEEDBACK_H
00003 #define PR2_CONTROLLERS_MSGS_MESSAGE_SINGLEJOINTPOSITIONFEEDBACK_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 "std_msgs/Header.h"
00018
00019 namespace pr2_controllers_msgs
00020 {
00021 template <class ContainerAllocator>
00022 struct SingleJointPositionFeedback_ {
00023 typedef SingleJointPositionFeedback_<ContainerAllocator> Type;
00024
00025 SingleJointPositionFeedback_()
00026 : header()
00027 , position(0.0)
00028 , velocity(0.0)
00029 , error(0.0)
00030 {
00031 }
00032
00033 SingleJointPositionFeedback_(const ContainerAllocator& _alloc)
00034 : header(_alloc)
00035 , position(0.0)
00036 , velocity(0.0)
00037 , error(0.0)
00038 {
00039 }
00040
00041 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00042 ::std_msgs::Header_<ContainerAllocator> header;
00043
00044 typedef double _position_type;
00045 double position;
00046
00047 typedef double _velocity_type;
00048 double velocity;
00049
00050 typedef double _error_type;
00051 double error;
00052
00053
00054 private:
00055 static const char* __s_getDataType_() { return "pr2_controllers_msgs/SingleJointPositionFeedback"; }
00056 public:
00057 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00058
00059 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00060
00061 private:
00062 static const char* __s_getMD5Sum_() { return "8cee65610a3d08e0a1bded82f146f1fd"; }
00063 public:
00064 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00065
00066 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00067
00068 private:
00069 static const char* __s_getMessageDefinition_() { return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00070 Header header\n\
00071 float64 position\n\
00072 float64 velocity\n\
00073 float64 error\n\
00074 \n\
00075 \n\
00076 ================================================================================\n\
00077 MSG: std_msgs/Header\n\
00078 # Standard metadata for higher-level stamped data types.\n\
00079 # This is generally used to communicate timestamped data \n\
00080 # in a particular coordinate frame.\n\
00081 # \n\
00082 # sequence ID: consecutively increasing ID \n\
00083 uint32 seq\n\
00084 #Two-integer timestamp that is expressed as:\n\
00085 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00086 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00087 # time-handling sugar is provided by the client library\n\
00088 time stamp\n\
00089 #Frame this data is associated with\n\
00090 # 0: no frame\n\
00091 # 1: global frame\n\
00092 string frame_id\n\
00093 \n\
00094 "; }
00095 public:
00096 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00097
00098 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00099
00100 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00101 {
00102 ros::serialization::OStream stream(write_ptr, 1000000000);
00103 ros::serialization::serialize(stream, header);
00104 ros::serialization::serialize(stream, position);
00105 ros::serialization::serialize(stream, velocity);
00106 ros::serialization::serialize(stream, error);
00107 return stream.getData();
00108 }
00109
00110 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00111 {
00112 ros::serialization::IStream stream(read_ptr, 1000000000);
00113 ros::serialization::deserialize(stream, header);
00114 ros::serialization::deserialize(stream, position);
00115 ros::serialization::deserialize(stream, velocity);
00116 ros::serialization::deserialize(stream, error);
00117 return stream.getData();
00118 }
00119
00120 ROS_DEPRECATED virtual uint32_t serializationLength() const
00121 {
00122 uint32_t size = 0;
00123 size += ros::serialization::serializationLength(header);
00124 size += ros::serialization::serializationLength(position);
00125 size += ros::serialization::serializationLength(velocity);
00126 size += ros::serialization::serializationLength(error);
00127 return size;
00128 }
00129
00130 typedef boost::shared_ptr< ::pr2_controllers_msgs::SingleJointPositionFeedback_<ContainerAllocator> > Ptr;
00131 typedef boost::shared_ptr< ::pr2_controllers_msgs::SingleJointPositionFeedback_<ContainerAllocator> const> ConstPtr;
00132 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00133 };
00134 typedef ::pr2_controllers_msgs::SingleJointPositionFeedback_<std::allocator<void> > SingleJointPositionFeedback;
00135
00136 typedef boost::shared_ptr< ::pr2_controllers_msgs::SingleJointPositionFeedback> SingleJointPositionFeedbackPtr;
00137 typedef boost::shared_ptr< ::pr2_controllers_msgs::SingleJointPositionFeedback const> SingleJointPositionFeedbackConstPtr;
00138
00139
00140 template<typename ContainerAllocator>
00141 std::ostream& operator<<(std::ostream& s, const ::pr2_controllers_msgs::SingleJointPositionFeedback_<ContainerAllocator> & v)
00142 {
00143 ros::message_operations::Printer< ::pr2_controllers_msgs::SingleJointPositionFeedback_<ContainerAllocator> >::stream(s, "", v);
00144 return s;}
00145
00146 }
00147
00148 namespace ros
00149 {
00150 namespace message_traits
00151 {
00152 template<class ContainerAllocator> struct IsMessage< ::pr2_controllers_msgs::SingleJointPositionFeedback_<ContainerAllocator> > : public TrueType {};
00153 template<class ContainerAllocator> struct IsMessage< ::pr2_controllers_msgs::SingleJointPositionFeedback_<ContainerAllocator> const> : public TrueType {};
00154 template<class ContainerAllocator>
00155 struct MD5Sum< ::pr2_controllers_msgs::SingleJointPositionFeedback_<ContainerAllocator> > {
00156 static const char* value()
00157 {
00158 return "8cee65610a3d08e0a1bded82f146f1fd";
00159 }
00160
00161 static const char* value(const ::pr2_controllers_msgs::SingleJointPositionFeedback_<ContainerAllocator> &) { return value(); }
00162 static const uint64_t static_value1 = 0x8cee65610a3d08e0ULL;
00163 static const uint64_t static_value2 = 0xa1bded82f146f1fdULL;
00164 };
00165
00166 template<class ContainerAllocator>
00167 struct DataType< ::pr2_controllers_msgs::SingleJointPositionFeedback_<ContainerAllocator> > {
00168 static const char* value()
00169 {
00170 return "pr2_controllers_msgs/SingleJointPositionFeedback";
00171 }
00172
00173 static const char* value(const ::pr2_controllers_msgs::SingleJointPositionFeedback_<ContainerAllocator> &) { return value(); }
00174 };
00175
00176 template<class ContainerAllocator>
00177 struct Definition< ::pr2_controllers_msgs::SingleJointPositionFeedback_<ContainerAllocator> > {
00178 static const char* value()
00179 {
00180 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00181 Header header\n\
00182 float64 position\n\
00183 float64 velocity\n\
00184 float64 error\n\
00185 \n\
00186 \n\
00187 ================================================================================\n\
00188 MSG: std_msgs/Header\n\
00189 # Standard metadata for higher-level stamped data types.\n\
00190 # This is generally used to communicate timestamped data \n\
00191 # in a particular coordinate frame.\n\
00192 # \n\
00193 # sequence ID: consecutively increasing ID \n\
00194 uint32 seq\n\
00195 #Two-integer timestamp that is expressed as:\n\
00196 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00197 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00198 # time-handling sugar is provided by the client library\n\
00199 time stamp\n\
00200 #Frame this data is associated with\n\
00201 # 0: no frame\n\
00202 # 1: global frame\n\
00203 string frame_id\n\
00204 \n\
00205 ";
00206 }
00207
00208 static const char* value(const ::pr2_controllers_msgs::SingleJointPositionFeedback_<ContainerAllocator> &) { return value(); }
00209 };
00210
00211 template<class ContainerAllocator> struct HasHeader< ::pr2_controllers_msgs::SingleJointPositionFeedback_<ContainerAllocator> > : public TrueType {};
00212 template<class ContainerAllocator> struct HasHeader< const ::pr2_controllers_msgs::SingleJointPositionFeedback_<ContainerAllocator> > : public TrueType {};
00213 }
00214 }
00215
00216 namespace ros
00217 {
00218 namespace serialization
00219 {
00220
00221 template<class ContainerAllocator> struct Serializer< ::pr2_controllers_msgs::SingleJointPositionFeedback_<ContainerAllocator> >
00222 {
00223 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00224 {
00225 stream.next(m.header);
00226 stream.next(m.position);
00227 stream.next(m.velocity);
00228 stream.next(m.error);
00229 }
00230
00231 ROS_DECLARE_ALLINONE_SERIALIZER;
00232 };
00233 }
00234 }
00235
00236 namespace ros
00237 {
00238 namespace message_operations
00239 {
00240
00241 template<class ContainerAllocator>
00242 struct Printer< ::pr2_controllers_msgs::SingleJointPositionFeedback_<ContainerAllocator> >
00243 {
00244 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pr2_controllers_msgs::SingleJointPositionFeedback_<ContainerAllocator> & v)
00245 {
00246 s << indent << "header: ";
00247 s << std::endl;
00248 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00249 s << indent << "position: ";
00250 Printer<double>::stream(s, indent + " ", v.position);
00251 s << indent << "velocity: ";
00252 Printer<double>::stream(s, indent + " ", v.velocity);
00253 s << indent << "error: ";
00254 Printer<double>::stream(s, indent + " ", v.error);
00255 }
00256 };
00257
00258
00259 }
00260 }
00261
00262 #endif // PR2_CONTROLLERS_MSGS_MESSAGE_SINGLEJOINTPOSITIONFEEDBACK_H
00263