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