00001
00002 #ifndef COGMAN_MSGS_MESSAGE_PTUGOAL_H
00003 #define COGMAN_MSGS_MESSAGE_PTUGOAL_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
00014 namespace cogman_msgs
00015 {
00016 template <class ContainerAllocator>
00017 struct PtuGoal_ : public ros::Message
00018 {
00019 typedef PtuGoal_<ContainerAllocator> Type;
00020
00021 PtuGoal_()
00022 : lo_id(0)
00023 , mode(0)
00024 {
00025 }
00026
00027 PtuGoal_(const ContainerAllocator& _alloc)
00028 : lo_id(0)
00029 , mode(0)
00030 {
00031 }
00032
00033 typedef uint32_t _lo_id_type;
00034 uint32_t lo_id;
00035
00036 typedef uint32_t _mode_type;
00037 uint32_t mode;
00038
00039
00040 private:
00041 static const char* __s_getDataType_() { return "cogman_msgs/PtuGoal"; }
00042 public:
00043 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00044
00045 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00046
00047 private:
00048 static const char* __s_getMD5Sum_() { return "37afcd8aded68aa25e9a036c82810402"; }
00049 public:
00050 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00051
00052 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00053
00054 private:
00055 static const char* __s_getMessageDefinition_() { return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00056 #goal\n\
00057 uint32 lo_id\n\
00058 uint32 mode # 0 = look at it once , 1 = follow the object\n\
00059 \n\
00060 "; }
00061 public:
00062 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00063
00064 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00065
00066 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00067 {
00068 ros::serialization::OStream stream(write_ptr, 1000000000);
00069 ros::serialization::serialize(stream, lo_id);
00070 ros::serialization::serialize(stream, mode);
00071 return stream.getData();
00072 }
00073
00074 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00075 {
00076 ros::serialization::IStream stream(read_ptr, 1000000000);
00077 ros::serialization::deserialize(stream, lo_id);
00078 ros::serialization::deserialize(stream, mode);
00079 return stream.getData();
00080 }
00081
00082 ROS_DEPRECATED virtual uint32_t serializationLength() const
00083 {
00084 uint32_t size = 0;
00085 size += ros::serialization::serializationLength(lo_id);
00086 size += ros::serialization::serializationLength(mode);
00087 return size;
00088 }
00089
00090 typedef boost::shared_ptr< ::cogman_msgs::PtuGoal_<ContainerAllocator> > Ptr;
00091 typedef boost::shared_ptr< ::cogman_msgs::PtuGoal_<ContainerAllocator> const> ConstPtr;
00092 };
00093 typedef ::cogman_msgs::PtuGoal_<std::allocator<void> > PtuGoal;
00094
00095 typedef boost::shared_ptr< ::cogman_msgs::PtuGoal> PtuGoalPtr;
00096 typedef boost::shared_ptr< ::cogman_msgs::PtuGoal const> PtuGoalConstPtr;
00097
00098
00099 template<typename ContainerAllocator>
00100 std::ostream& operator<<(std::ostream& s, const ::cogman_msgs::PtuGoal_<ContainerAllocator> & v)
00101 {
00102 ros::message_operations::Printer< ::cogman_msgs::PtuGoal_<ContainerAllocator> >::stream(s, "", v);
00103 return s;}
00104
00105 }
00106
00107 namespace ros
00108 {
00109 namespace message_traits
00110 {
00111 template<class ContainerAllocator>
00112 struct MD5Sum< ::cogman_msgs::PtuGoal_<ContainerAllocator> > {
00113 static const char* value()
00114 {
00115 return "37afcd8aded68aa25e9a036c82810402";
00116 }
00117
00118 static const char* value(const ::cogman_msgs::PtuGoal_<ContainerAllocator> &) { return value(); }
00119 static const uint64_t static_value1 = 0x37afcd8aded68aa2ULL;
00120 static const uint64_t static_value2 = 0x5e9a036c82810402ULL;
00121 };
00122
00123 template<class ContainerAllocator>
00124 struct DataType< ::cogman_msgs::PtuGoal_<ContainerAllocator> > {
00125 static const char* value()
00126 {
00127 return "cogman_msgs/PtuGoal";
00128 }
00129
00130 static const char* value(const ::cogman_msgs::PtuGoal_<ContainerAllocator> &) { return value(); }
00131 };
00132
00133 template<class ContainerAllocator>
00134 struct Definition< ::cogman_msgs::PtuGoal_<ContainerAllocator> > {
00135 static const char* value()
00136 {
00137 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00138 #goal\n\
00139 uint32 lo_id\n\
00140 uint32 mode # 0 = look at it once , 1 = follow the object\n\
00141 \n\
00142 ";
00143 }
00144
00145 static const char* value(const ::cogman_msgs::PtuGoal_<ContainerAllocator> &) { return value(); }
00146 };
00147
00148 template<class ContainerAllocator> struct IsFixedSize< ::cogman_msgs::PtuGoal_<ContainerAllocator> > : public TrueType {};
00149 }
00150 }
00151
00152 namespace ros
00153 {
00154 namespace serialization
00155 {
00156
00157 template<class ContainerAllocator> struct Serializer< ::cogman_msgs::PtuGoal_<ContainerAllocator> >
00158 {
00159 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00160 {
00161 stream.next(m.lo_id);
00162 stream.next(m.mode);
00163 }
00164
00165 ROS_DECLARE_ALLINONE_SERIALIZER;
00166 };
00167 }
00168 }
00169
00170 namespace ros
00171 {
00172 namespace message_operations
00173 {
00174
00175 template<class ContainerAllocator>
00176 struct Printer< ::cogman_msgs::PtuGoal_<ContainerAllocator> >
00177 {
00178 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::cogman_msgs::PtuGoal_<ContainerAllocator> & v)
00179 {
00180 s << indent << "lo_id: ";
00181 Printer<uint32_t>::stream(s, indent + " ", v.lo_id);
00182 s << indent << "mode: ";
00183 Printer<uint32_t>::stream(s, indent + " ", v.mode);
00184 }
00185 };
00186
00187
00188 }
00189 }
00190
00191 #endif // COGMAN_MSGS_MESSAGE_PTUGOAL_H
00192