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