$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-srs_public/doc_stacks/2013-03-05_12-22-34.333426/srs_public/srs_interaction_primitives/msg/ClickablePositionsGoal.msg */ 00002 #ifndef SRS_INTERACTION_PRIMITIVES_MESSAGE_CLICKABLEPOSITIONSGOAL_H 00003 #define SRS_INTERACTION_PRIMITIVES_MESSAGE_CLICKABLEPOSITIONSGOAL_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/ColorRGBA.h" 00018 #include "geometry_msgs/Point.h" 00019 00020 namespace srs_interaction_primitives 00021 { 00022 template <class ContainerAllocator> 00023 struct ClickablePositionsGoal_ { 00024 typedef ClickablePositionsGoal_<ContainerAllocator> Type; 00025 00026 ClickablePositionsGoal_() 00027 : frame_id() 00028 , topic_suffix() 00029 , radius(0.0) 00030 , color() 00031 , positions() 00032 { 00033 } 00034 00035 ClickablePositionsGoal_(const ContainerAllocator& _alloc) 00036 : frame_id(_alloc) 00037 , topic_suffix(_alloc) 00038 , radius(0.0) 00039 , color(_alloc) 00040 , positions(_alloc) 00041 { 00042 } 00043 00044 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _frame_id_type; 00045 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > frame_id; 00046 00047 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _topic_suffix_type; 00048 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > topic_suffix; 00049 00050 typedef double _radius_type; 00051 double radius; 00052 00053 typedef ::std_msgs::ColorRGBA_<ContainerAllocator> _color_type; 00054 ::std_msgs::ColorRGBA_<ContainerAllocator> color; 00055 00056 typedef std::vector< ::geometry_msgs::Point_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Point_<ContainerAllocator> >::other > _positions_type; 00057 std::vector< ::geometry_msgs::Point_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Point_<ContainerAllocator> >::other > positions; 00058 00059 00060 ROS_DEPRECATED uint32_t get_positions_size() const { return (uint32_t)positions.size(); } 00061 ROS_DEPRECATED void set_positions_size(uint32_t size) { positions.resize((size_t)size); } 00062 ROS_DEPRECATED void get_positions_vec(std::vector< ::geometry_msgs::Point_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Point_<ContainerAllocator> >::other > & vec) const { vec = this->positions; } 00063 ROS_DEPRECATED void set_positions_vec(const std::vector< ::geometry_msgs::Point_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Point_<ContainerAllocator> >::other > & vec) { this->positions = vec; } 00064 private: 00065 static const char* __s_getDataType_() { return "srs_interaction_primitives/ClickablePositionsGoal"; } 00066 public: 00067 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00068 00069 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00070 00071 private: 00072 static const char* __s_getMD5Sum_() { return "bd1a185a7c5e5a2f2778b3eb64823d22"; } 00073 public: 00074 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00075 00076 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00077 00078 private: 00079 static const char* __s_getMessageDefinition_() { return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00080 string frame_id\n\ 00081 string topic_suffix\n\ 00082 float64 radius\n\ 00083 std_msgs/ColorRGBA color\n\ 00084 geometry_msgs/Point[] positions\n\ 00085 \n\ 00086 ================================================================================\n\ 00087 MSG: std_msgs/ColorRGBA\n\ 00088 float32 r\n\ 00089 float32 g\n\ 00090 float32 b\n\ 00091 float32 a\n\ 00092 \n\ 00093 ================================================================================\n\ 00094 MSG: geometry_msgs/Point\n\ 00095 # This contains the position of a point in free space\n\ 00096 float64 x\n\ 00097 float64 y\n\ 00098 float64 z\n\ 00099 \n\ 00100 "; } 00101 public: 00102 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00103 00104 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00105 00106 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00107 { 00108 ros::serialization::OStream stream(write_ptr, 1000000000); 00109 ros::serialization::serialize(stream, frame_id); 00110 ros::serialization::serialize(stream, topic_suffix); 00111 ros::serialization::serialize(stream, radius); 00112 ros::serialization::serialize(stream, color); 00113 ros::serialization::serialize(stream, positions); 00114 return stream.getData(); 00115 } 00116 00117 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00118 { 00119 ros::serialization::IStream stream(read_ptr, 1000000000); 00120 ros::serialization::deserialize(stream, frame_id); 00121 ros::serialization::deserialize(stream, topic_suffix); 00122 ros::serialization::deserialize(stream, radius); 00123 ros::serialization::deserialize(stream, color); 00124 ros::serialization::deserialize(stream, positions); 00125 return stream.getData(); 00126 } 00127 00128 ROS_DEPRECATED virtual uint32_t serializationLength() const 00129 { 00130 uint32_t size = 0; 00131 size += ros::serialization::serializationLength(frame_id); 00132 size += ros::serialization::serializationLength(topic_suffix); 00133 size += ros::serialization::serializationLength(radius); 00134 size += ros::serialization::serializationLength(color); 00135 size += ros::serialization::serializationLength(positions); 00136 return size; 00137 } 00138 00139 typedef boost::shared_ptr< ::srs_interaction_primitives::ClickablePositionsGoal_<ContainerAllocator> > Ptr; 00140 typedef boost::shared_ptr< ::srs_interaction_primitives::ClickablePositionsGoal_<ContainerAllocator> const> ConstPtr; 00141 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00142 }; // struct ClickablePositionsGoal 00143 typedef ::srs_interaction_primitives::ClickablePositionsGoal_<std::allocator<void> > ClickablePositionsGoal; 00144 00145 typedef boost::shared_ptr< ::srs_interaction_primitives::ClickablePositionsGoal> ClickablePositionsGoalPtr; 00146 typedef boost::shared_ptr< ::srs_interaction_primitives::ClickablePositionsGoal const> ClickablePositionsGoalConstPtr; 00147 00148 00149 template<typename ContainerAllocator> 00150 std::ostream& operator<<(std::ostream& s, const ::srs_interaction_primitives::ClickablePositionsGoal_<ContainerAllocator> & v) 00151 { 00152 ros::message_operations::Printer< ::srs_interaction_primitives::ClickablePositionsGoal_<ContainerAllocator> >::stream(s, "", v); 00153 return s;} 00154 00155 } // namespace srs_interaction_primitives 00156 00157 namespace ros 00158 { 00159 namespace message_traits 00160 { 00161 template<class ContainerAllocator> struct IsMessage< ::srs_interaction_primitives::ClickablePositionsGoal_<ContainerAllocator> > : public TrueType {}; 00162 template<class ContainerAllocator> struct IsMessage< ::srs_interaction_primitives::ClickablePositionsGoal_<ContainerAllocator> const> : public TrueType {}; 00163 template<class ContainerAllocator> 00164 struct MD5Sum< ::srs_interaction_primitives::ClickablePositionsGoal_<ContainerAllocator> > { 00165 static const char* value() 00166 { 00167 return "bd1a185a7c5e5a2f2778b3eb64823d22"; 00168 } 00169 00170 static const char* value(const ::srs_interaction_primitives::ClickablePositionsGoal_<ContainerAllocator> &) { return value(); } 00171 static const uint64_t static_value1 = 0xbd1a185a7c5e5a2fULL; 00172 static const uint64_t static_value2 = 0x2778b3eb64823d22ULL; 00173 }; 00174 00175 template<class ContainerAllocator> 00176 struct DataType< ::srs_interaction_primitives::ClickablePositionsGoal_<ContainerAllocator> > { 00177 static const char* value() 00178 { 00179 return "srs_interaction_primitives/ClickablePositionsGoal"; 00180 } 00181 00182 static const char* value(const ::srs_interaction_primitives::ClickablePositionsGoal_<ContainerAllocator> &) { return value(); } 00183 }; 00184 00185 template<class ContainerAllocator> 00186 struct Definition< ::srs_interaction_primitives::ClickablePositionsGoal_<ContainerAllocator> > { 00187 static const char* value() 00188 { 00189 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00190 string frame_id\n\ 00191 string topic_suffix\n\ 00192 float64 radius\n\ 00193 std_msgs/ColorRGBA color\n\ 00194 geometry_msgs/Point[] positions\n\ 00195 \n\ 00196 ================================================================================\n\ 00197 MSG: std_msgs/ColorRGBA\n\ 00198 float32 r\n\ 00199 float32 g\n\ 00200 float32 b\n\ 00201 float32 a\n\ 00202 \n\ 00203 ================================================================================\n\ 00204 MSG: geometry_msgs/Point\n\ 00205 # This contains the position of a point in free space\n\ 00206 float64 x\n\ 00207 float64 y\n\ 00208 float64 z\n\ 00209 \n\ 00210 "; 00211 } 00212 00213 static const char* value(const ::srs_interaction_primitives::ClickablePositionsGoal_<ContainerAllocator> &) { return value(); } 00214 }; 00215 00216 } // namespace message_traits 00217 } // namespace ros 00218 00219 namespace ros 00220 { 00221 namespace serialization 00222 { 00223 00224 template<class ContainerAllocator> struct Serializer< ::srs_interaction_primitives::ClickablePositionsGoal_<ContainerAllocator> > 00225 { 00226 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00227 { 00228 stream.next(m.frame_id); 00229 stream.next(m.topic_suffix); 00230 stream.next(m.radius); 00231 stream.next(m.color); 00232 stream.next(m.positions); 00233 } 00234 00235 ROS_DECLARE_ALLINONE_SERIALIZER; 00236 }; // struct ClickablePositionsGoal_ 00237 } // namespace serialization 00238 } // namespace ros 00239 00240 namespace ros 00241 { 00242 namespace message_operations 00243 { 00244 00245 template<class ContainerAllocator> 00246 struct Printer< ::srs_interaction_primitives::ClickablePositionsGoal_<ContainerAllocator> > 00247 { 00248 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::srs_interaction_primitives::ClickablePositionsGoal_<ContainerAllocator> & v) 00249 { 00250 s << indent << "frame_id: "; 00251 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.frame_id); 00252 s << indent << "topic_suffix: "; 00253 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.topic_suffix); 00254 s << indent << "radius: "; 00255 Printer<double>::stream(s, indent + " ", v.radius); 00256 s << indent << "color: "; 00257 s << std::endl; 00258 Printer< ::std_msgs::ColorRGBA_<ContainerAllocator> >::stream(s, indent + " ", v.color); 00259 s << indent << "positions[]" << std::endl; 00260 for (size_t i = 0; i < v.positions.size(); ++i) 00261 { 00262 s << indent << " positions[" << i << "]: "; 00263 s << std::endl; 00264 s << indent; 00265 Printer< ::geometry_msgs::Point_<ContainerAllocator> >::stream(s, indent + " ", v.positions[i]); 00266 } 00267 } 00268 }; 00269 00270 00271 } // namespace message_operations 00272 } // namespace ros 00273 00274 #endif // SRS_INTERACTION_PRIMITIVES_MESSAGE_CLICKABLEPOSITIONSGOAL_H 00275