$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-turtlebot_apps/doc_stacks/2013-03-02_13-58-38.768531/turtlebot_apps/turtlebot_actions/msg/FindFiducialGoal.msg */ 00002 #ifndef TURTLEBOT_ACTIONS_MESSAGE_FINDFIDUCIALGOAL_H 00003 #define TURTLEBOT_ACTIONS_MESSAGE_FINDFIDUCIALGOAL_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 00018 namespace turtlebot_actions 00019 { 00020 template <class ContainerAllocator> 00021 struct FindFiducialGoal_ { 00022 typedef FindFiducialGoal_<ContainerAllocator> Type; 00023 00024 FindFiducialGoal_() 00025 : camera_name() 00026 , pattern_width(0) 00027 , pattern_height(0) 00028 , pattern_size(0.0) 00029 , pattern_type(0) 00030 { 00031 } 00032 00033 FindFiducialGoal_(const ContainerAllocator& _alloc) 00034 : camera_name(_alloc) 00035 , pattern_width(0) 00036 , pattern_height(0) 00037 , pattern_size(0.0) 00038 , pattern_type(0) 00039 { 00040 } 00041 00042 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _camera_name_type; 00043 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > camera_name; 00044 00045 typedef uint8_t _pattern_width_type; 00046 uint8_t pattern_width; 00047 00048 typedef uint8_t _pattern_height_type; 00049 uint8_t pattern_height; 00050 00051 typedef float _pattern_size_type; 00052 float pattern_size; 00053 00054 typedef uint8_t _pattern_type_type; 00055 uint8_t pattern_type; 00056 00057 enum { CHESSBOARD = 1 }; 00058 enum { CIRCLES_GRID = 2 }; 00059 enum { ASYMMETRIC_CIRCLES_GRID = 3 }; 00060 00061 private: 00062 static const char* __s_getDataType_() { return "turtlebot_actions/FindFiducialGoal"; } 00063 public: 00064 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00065 00066 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00067 00068 private: 00069 static const char* __s_getMD5Sum_() { return "8906385fe785bb5733551eb61968fe5b"; } 00070 public: 00071 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00072 00073 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00074 00075 private: 00076 static const char* __s_getMessageDefinition_() { return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00077 #goal definition\n\ 00078 uint8 CHESSBOARD = 1\n\ 00079 uint8 CIRCLES_GRID = 2\n\ 00080 uint8 ASYMMETRIC_CIRCLES_GRID =3\n\ 00081 \n\ 00082 string camera_name # name of the camera \n\ 00083 uint8 pattern_width # number of objects across\n\ 00084 uint8 pattern_height # number of objects down\n\ 00085 float32 pattern_size # size the object pattern (square size or circle size)\n\ 00086 uint8 pattern_type # type of pattern (CHESSBOARD, CIRCLES_GRID, ASYMMETRIC_CIRCLES_GRID)\n\ 00087 \n\ 00088 "; } 00089 public: 00090 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00091 00092 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00093 00094 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00095 { 00096 ros::serialization::OStream stream(write_ptr, 1000000000); 00097 ros::serialization::serialize(stream, camera_name); 00098 ros::serialization::serialize(stream, pattern_width); 00099 ros::serialization::serialize(stream, pattern_height); 00100 ros::serialization::serialize(stream, pattern_size); 00101 ros::serialization::serialize(stream, pattern_type); 00102 return stream.getData(); 00103 } 00104 00105 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00106 { 00107 ros::serialization::IStream stream(read_ptr, 1000000000); 00108 ros::serialization::deserialize(stream, camera_name); 00109 ros::serialization::deserialize(stream, pattern_width); 00110 ros::serialization::deserialize(stream, pattern_height); 00111 ros::serialization::deserialize(stream, pattern_size); 00112 ros::serialization::deserialize(stream, pattern_type); 00113 return stream.getData(); 00114 } 00115 00116 ROS_DEPRECATED virtual uint32_t serializationLength() const 00117 { 00118 uint32_t size = 0; 00119 size += ros::serialization::serializationLength(camera_name); 00120 size += ros::serialization::serializationLength(pattern_width); 00121 size += ros::serialization::serializationLength(pattern_height); 00122 size += ros::serialization::serializationLength(pattern_size); 00123 size += ros::serialization::serializationLength(pattern_type); 00124 return size; 00125 } 00126 00127 typedef boost::shared_ptr< ::turtlebot_actions::FindFiducialGoal_<ContainerAllocator> > Ptr; 00128 typedef boost::shared_ptr< ::turtlebot_actions::FindFiducialGoal_<ContainerAllocator> const> ConstPtr; 00129 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00130 }; // struct FindFiducialGoal 00131 typedef ::turtlebot_actions::FindFiducialGoal_<std::allocator<void> > FindFiducialGoal; 00132 00133 typedef boost::shared_ptr< ::turtlebot_actions::FindFiducialGoal> FindFiducialGoalPtr; 00134 typedef boost::shared_ptr< ::turtlebot_actions::FindFiducialGoal const> FindFiducialGoalConstPtr; 00135 00136 00137 template<typename ContainerAllocator> 00138 std::ostream& operator<<(std::ostream& s, const ::turtlebot_actions::FindFiducialGoal_<ContainerAllocator> & v) 00139 { 00140 ros::message_operations::Printer< ::turtlebot_actions::FindFiducialGoal_<ContainerAllocator> >::stream(s, "", v); 00141 return s;} 00142 00143 } // namespace turtlebot_actions 00144 00145 namespace ros 00146 { 00147 namespace message_traits 00148 { 00149 template<class ContainerAllocator> struct IsMessage< ::turtlebot_actions::FindFiducialGoal_<ContainerAllocator> > : public TrueType {}; 00150 template<class ContainerAllocator> struct IsMessage< ::turtlebot_actions::FindFiducialGoal_<ContainerAllocator> const> : public TrueType {}; 00151 template<class ContainerAllocator> 00152 struct MD5Sum< ::turtlebot_actions::FindFiducialGoal_<ContainerAllocator> > { 00153 static const char* value() 00154 { 00155 return "8906385fe785bb5733551eb61968fe5b"; 00156 } 00157 00158 static const char* value(const ::turtlebot_actions::FindFiducialGoal_<ContainerAllocator> &) { return value(); } 00159 static const uint64_t static_value1 = 0x8906385fe785bb57ULL; 00160 static const uint64_t static_value2 = 0x33551eb61968fe5bULL; 00161 }; 00162 00163 template<class ContainerAllocator> 00164 struct DataType< ::turtlebot_actions::FindFiducialGoal_<ContainerAllocator> > { 00165 static const char* value() 00166 { 00167 return "turtlebot_actions/FindFiducialGoal"; 00168 } 00169 00170 static const char* value(const ::turtlebot_actions::FindFiducialGoal_<ContainerAllocator> &) { return value(); } 00171 }; 00172 00173 template<class ContainerAllocator> 00174 struct Definition< ::turtlebot_actions::FindFiducialGoal_<ContainerAllocator> > { 00175 static const char* value() 00176 { 00177 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00178 #goal definition\n\ 00179 uint8 CHESSBOARD = 1\n\ 00180 uint8 CIRCLES_GRID = 2\n\ 00181 uint8 ASYMMETRIC_CIRCLES_GRID =3\n\ 00182 \n\ 00183 string camera_name # name of the camera \n\ 00184 uint8 pattern_width # number of objects across\n\ 00185 uint8 pattern_height # number of objects down\n\ 00186 float32 pattern_size # size the object pattern (square size or circle size)\n\ 00187 uint8 pattern_type # type of pattern (CHESSBOARD, CIRCLES_GRID, ASYMMETRIC_CIRCLES_GRID)\n\ 00188 \n\ 00189 "; 00190 } 00191 00192 static const char* value(const ::turtlebot_actions::FindFiducialGoal_<ContainerAllocator> &) { return value(); } 00193 }; 00194 00195 } // namespace message_traits 00196 } // namespace ros 00197 00198 namespace ros 00199 { 00200 namespace serialization 00201 { 00202 00203 template<class ContainerAllocator> struct Serializer< ::turtlebot_actions::FindFiducialGoal_<ContainerAllocator> > 00204 { 00205 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00206 { 00207 stream.next(m.camera_name); 00208 stream.next(m.pattern_width); 00209 stream.next(m.pattern_height); 00210 stream.next(m.pattern_size); 00211 stream.next(m.pattern_type); 00212 } 00213 00214 ROS_DECLARE_ALLINONE_SERIALIZER; 00215 }; // struct FindFiducialGoal_ 00216 } // namespace serialization 00217 } // namespace ros 00218 00219 namespace ros 00220 { 00221 namespace message_operations 00222 { 00223 00224 template<class ContainerAllocator> 00225 struct Printer< ::turtlebot_actions::FindFiducialGoal_<ContainerAllocator> > 00226 { 00227 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::turtlebot_actions::FindFiducialGoal_<ContainerAllocator> & v) 00228 { 00229 s << indent << "camera_name: "; 00230 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.camera_name); 00231 s << indent << "pattern_width: "; 00232 Printer<uint8_t>::stream(s, indent + " ", v.pattern_width); 00233 s << indent << "pattern_height: "; 00234 Printer<uint8_t>::stream(s, indent + " ", v.pattern_height); 00235 s << indent << "pattern_size: "; 00236 Printer<float>::stream(s, indent + " ", v.pattern_size); 00237 s << indent << "pattern_type: "; 00238 Printer<uint8_t>::stream(s, indent + " ", v.pattern_type); 00239 } 00240 }; 00241 00242 00243 } // namespace message_operations 00244 } // namespace ros 00245 00246 #endif // TURTLEBOT_ACTIONS_MESSAGE_FINDFIDUCIALGOAL_H 00247