00001
00002 #ifndef NAVP_ACTION_MESSAGE_NAV_ACTIONFEEDBACK_H
00003 #define NAVP_ACTION_MESSAGE_NAV_ACTIONFEEDBACK_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 "std_msgs/Float32.h"
00014 #include "std_msgs/Float32.h"
00015
00016 namespace navp_action
00017 {
00018 template <class ContainerAllocator>
00019 struct nav_actionFeedback_ : public ros::Message
00020 {
00021 typedef nav_actionFeedback_<ContainerAllocator> Type;
00022
00023 nav_actionFeedback_()
00024 : speed()
00025 , distance()
00026 {
00027 }
00028
00029 nav_actionFeedback_(const ContainerAllocator& _alloc)
00030 : speed(_alloc)
00031 , distance(_alloc)
00032 {
00033 }
00034
00035 typedef ::std_msgs::Float32_<ContainerAllocator> _speed_type;
00036 ::std_msgs::Float32_<ContainerAllocator> speed;
00037
00038 typedef ::std_msgs::Float32_<ContainerAllocator> _distance_type;
00039 ::std_msgs::Float32_<ContainerAllocator> distance;
00040
00041
00042 private:
00043 static const char* __s_getDataType_() { return "navp_action/nav_actionFeedback"; }
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 "e3a506f00b86d89645273f384ec10fb9"; }
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_getMessageDefinition_() { return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00058 #feedback\n\
00059 std_msgs/Float32 speed\n\
00060 std_msgs/Float32 distance\n\
00061 \n\
00062 \n\
00063 ================================================================================\n\
00064 MSG: std_msgs/Float32\n\
00065 float32 data\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, speed);
00076 ros::serialization::serialize(stream, distance);
00077 return stream.getData();
00078 }
00079
00080 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00081 {
00082 ros::serialization::IStream stream(read_ptr, 1000000000);
00083 ros::serialization::deserialize(stream, speed);
00084 ros::serialization::deserialize(stream, distance);
00085 return stream.getData();
00086 }
00087
00088 ROS_DEPRECATED virtual uint32_t serializationLength() const
00089 {
00090 uint32_t size = 0;
00091 size += ros::serialization::serializationLength(speed);
00092 size += ros::serialization::serializationLength(distance);
00093 return size;
00094 }
00095
00096 typedef boost::shared_ptr< ::navp_action::nav_actionFeedback_<ContainerAllocator> > Ptr;
00097 typedef boost::shared_ptr< ::navp_action::nav_actionFeedback_<ContainerAllocator> const> ConstPtr;
00098 };
00099 typedef ::navp_action::nav_actionFeedback_<std::allocator<void> > nav_actionFeedback;
00100
00101 typedef boost::shared_ptr< ::navp_action::nav_actionFeedback> nav_actionFeedbackPtr;
00102 typedef boost::shared_ptr< ::navp_action::nav_actionFeedback const> nav_actionFeedbackConstPtr;
00103
00104
00105 template<typename ContainerAllocator>
00106 std::ostream& operator<<(std::ostream& s, const ::navp_action::nav_actionFeedback_<ContainerAllocator> & v)
00107 {
00108 ros::message_operations::Printer< ::navp_action::nav_actionFeedback_<ContainerAllocator> >::stream(s, "", v);
00109 return s;}
00110
00111 }
00112
00113 namespace ros
00114 {
00115 namespace message_traits
00116 {
00117 template<class ContainerAllocator>
00118 struct MD5Sum< ::navp_action::nav_actionFeedback_<ContainerAllocator> > {
00119 static const char* value()
00120 {
00121 return "e3a506f00b86d89645273f384ec10fb9";
00122 }
00123
00124 static const char* value(const ::navp_action::nav_actionFeedback_<ContainerAllocator> &) { return value(); }
00125 static const uint64_t static_value1 = 0xe3a506f00b86d896ULL;
00126 static const uint64_t static_value2 = 0x45273f384ec10fb9ULL;
00127 };
00128
00129 template<class ContainerAllocator>
00130 struct DataType< ::navp_action::nav_actionFeedback_<ContainerAllocator> > {
00131 static const char* value()
00132 {
00133 return "navp_action/nav_actionFeedback";
00134 }
00135
00136 static const char* value(const ::navp_action::nav_actionFeedback_<ContainerAllocator> &) { return value(); }
00137 };
00138
00139 template<class ContainerAllocator>
00140 struct Definition< ::navp_action::nav_actionFeedback_<ContainerAllocator> > {
00141 static const char* value()
00142 {
00143 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00144 #feedback\n\
00145 std_msgs/Float32 speed\n\
00146 std_msgs/Float32 distance\n\
00147 \n\
00148 \n\
00149 ================================================================================\n\
00150 MSG: std_msgs/Float32\n\
00151 float32 data\n\
00152 ";
00153 }
00154
00155 static const char* value(const ::navp_action::nav_actionFeedback_<ContainerAllocator> &) { return value(); }
00156 };
00157
00158 template<class ContainerAllocator> struct IsFixedSize< ::navp_action::nav_actionFeedback_<ContainerAllocator> > : public TrueType {};
00159 }
00160 }
00161
00162 namespace ros
00163 {
00164 namespace serialization
00165 {
00166
00167 template<class ContainerAllocator> struct Serializer< ::navp_action::nav_actionFeedback_<ContainerAllocator> >
00168 {
00169 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00170 {
00171 stream.next(m.speed);
00172 stream.next(m.distance);
00173 }
00174
00175 ROS_DECLARE_ALLINONE_SERIALIZER;
00176 };
00177 }
00178 }
00179
00180 namespace ros
00181 {
00182 namespace message_operations
00183 {
00184
00185 template<class ContainerAllocator>
00186 struct Printer< ::navp_action::nav_actionFeedback_<ContainerAllocator> >
00187 {
00188 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::navp_action::nav_actionFeedback_<ContainerAllocator> & v)
00189 {
00190 s << indent << "speed: ";
00191 s << std::endl;
00192 Printer< ::std_msgs::Float32_<ContainerAllocator> >::stream(s, indent + " ", v.speed);
00193 s << indent << "distance: ";
00194 s << std::endl;
00195 Printer< ::std_msgs::Float32_<ContainerAllocator> >::stream(s, indent + " ", v.distance);
00196 }
00197 };
00198
00199
00200 }
00201 }
00202
00203 #endif // NAVP_ACTION_MESSAGE_NAV_ACTIONFEEDBACK_H
00204