$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-pr2_dremel/doc_stacks/2013-03-03_11-45-44.341273/pr2_dremel/pr2_dremel_server/msg/Segment.msg */ 00002 #ifndef PR2_DREMEL_SERVER_MESSAGE_SEGMENT_H 00003 #define PR2_DREMEL_SERVER_MESSAGE_SEGMENT_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 "geometry_msgs/Point.h" 00018 00019 namespace pr2_dremel_server 00020 { 00021 template <class ContainerAllocator> 00022 struct Segment_ { 00023 typedef Segment_<ContainerAllocator> Type; 00024 00025 Segment_() 00026 : points() 00027 { 00028 } 00029 00030 Segment_(const ContainerAllocator& _alloc) 00031 : points(_alloc) 00032 { 00033 } 00034 00035 typedef std::vector< ::geometry_msgs::Point_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Point_<ContainerAllocator> >::other > _points_type; 00036 std::vector< ::geometry_msgs::Point_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Point_<ContainerAllocator> >::other > points; 00037 00038 00039 ROS_DEPRECATED uint32_t get_points_size() const { return (uint32_t)points.size(); } 00040 ROS_DEPRECATED void set_points_size(uint32_t size) { points.resize((size_t)size); } 00041 ROS_DEPRECATED void get_points_vec(std::vector< ::geometry_msgs::Point_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Point_<ContainerAllocator> >::other > & vec) const { vec = this->points; } 00042 ROS_DEPRECATED void set_points_vec(const std::vector< ::geometry_msgs::Point_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Point_<ContainerAllocator> >::other > & vec) { this->points = vec; } 00043 private: 00044 static const char* __s_getDataType_() { return "pr2_dremel_server/Segment"; } 00045 public: 00046 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00047 00048 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00049 00050 private: 00051 static const char* __s_getMD5Sum_() { return "3fb3f9dacc279b964c4c8341122c34df"; } 00052 public: 00053 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00054 00055 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00056 00057 private: 00058 static const char* __s_getMessageDefinition_() { return "geometry_msgs/Point[] points\n\ 00059 \n\ 00060 ================================================================================\n\ 00061 MSG: geometry_msgs/Point\n\ 00062 # This contains the position of a point in free space\n\ 00063 float64 x\n\ 00064 float64 y\n\ 00065 float64 z\n\ 00066 \n\ 00067 "; } 00068 public: 00069 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00070 00071 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00072 00073 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00074 { 00075 ros::serialization::OStream stream(write_ptr, 1000000000); 00076 ros::serialization::serialize(stream, points); 00077 return stream.getData(); 00078 } 00079 00080 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00081 { 00082 ros::serialization::IStream stream(read_ptr, 1000000000); 00083 ros::serialization::deserialize(stream, points); 00084 return stream.getData(); 00085 } 00086 00087 ROS_DEPRECATED virtual uint32_t serializationLength() const 00088 { 00089 uint32_t size = 0; 00090 size += ros::serialization::serializationLength(points); 00091 return size; 00092 } 00093 00094 typedef boost::shared_ptr< ::pr2_dremel_server::Segment_<ContainerAllocator> > Ptr; 00095 typedef boost::shared_ptr< ::pr2_dremel_server::Segment_<ContainerAllocator> const> ConstPtr; 00096 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00097 }; // struct Segment 00098 typedef ::pr2_dremel_server::Segment_<std::allocator<void> > Segment; 00099 00100 typedef boost::shared_ptr< ::pr2_dremel_server::Segment> SegmentPtr; 00101 typedef boost::shared_ptr< ::pr2_dremel_server::Segment const> SegmentConstPtr; 00102 00103 00104 template<typename ContainerAllocator> 00105 std::ostream& operator<<(std::ostream& s, const ::pr2_dremel_server::Segment_<ContainerAllocator> & v) 00106 { 00107 ros::message_operations::Printer< ::pr2_dremel_server::Segment_<ContainerAllocator> >::stream(s, "", v); 00108 return s;} 00109 00110 } // namespace pr2_dremel_server 00111 00112 namespace ros 00113 { 00114 namespace message_traits 00115 { 00116 template<class ContainerAllocator> struct IsMessage< ::pr2_dremel_server::Segment_<ContainerAllocator> > : public TrueType {}; 00117 template<class ContainerAllocator> struct IsMessage< ::pr2_dremel_server::Segment_<ContainerAllocator> const> : public TrueType {}; 00118 template<class ContainerAllocator> 00119 struct MD5Sum< ::pr2_dremel_server::Segment_<ContainerAllocator> > { 00120 static const char* value() 00121 { 00122 return "3fb3f9dacc279b964c4c8341122c34df"; 00123 } 00124 00125 static const char* value(const ::pr2_dremel_server::Segment_<ContainerAllocator> &) { return value(); } 00126 static const uint64_t static_value1 = 0x3fb3f9dacc279b96ULL; 00127 static const uint64_t static_value2 = 0x4c4c8341122c34dfULL; 00128 }; 00129 00130 template<class ContainerAllocator> 00131 struct DataType< ::pr2_dremel_server::Segment_<ContainerAllocator> > { 00132 static const char* value() 00133 { 00134 return "pr2_dremel_server/Segment"; 00135 } 00136 00137 static const char* value(const ::pr2_dremel_server::Segment_<ContainerAllocator> &) { return value(); } 00138 }; 00139 00140 template<class ContainerAllocator> 00141 struct Definition< ::pr2_dremel_server::Segment_<ContainerAllocator> > { 00142 static const char* value() 00143 { 00144 return "geometry_msgs/Point[] points\n\ 00145 \n\ 00146 ================================================================================\n\ 00147 MSG: geometry_msgs/Point\n\ 00148 # This contains the position of a point in free space\n\ 00149 float64 x\n\ 00150 float64 y\n\ 00151 float64 z\n\ 00152 \n\ 00153 "; 00154 } 00155 00156 static const char* value(const ::pr2_dremel_server::Segment_<ContainerAllocator> &) { return value(); } 00157 }; 00158 00159 } // namespace message_traits 00160 } // namespace ros 00161 00162 namespace ros 00163 { 00164 namespace serialization 00165 { 00166 00167 template<class ContainerAllocator> struct Serializer< ::pr2_dremel_server::Segment_<ContainerAllocator> > 00168 { 00169 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00170 { 00171 stream.next(m.points); 00172 } 00173 00174 ROS_DECLARE_ALLINONE_SERIALIZER; 00175 }; // struct Segment_ 00176 } // namespace serialization 00177 } // namespace ros 00178 00179 namespace ros 00180 { 00181 namespace message_operations 00182 { 00183 00184 template<class ContainerAllocator> 00185 struct Printer< ::pr2_dremel_server::Segment_<ContainerAllocator> > 00186 { 00187 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pr2_dremel_server::Segment_<ContainerAllocator> & v) 00188 { 00189 s << indent << "points[]" << std::endl; 00190 for (size_t i = 0; i < v.points.size(); ++i) 00191 { 00192 s << indent << " points[" << i << "]: "; 00193 s << std::endl; 00194 s << indent; 00195 Printer< ::geometry_msgs::Point_<ContainerAllocator> >::stream(s, indent + " ", v.points[i]); 00196 } 00197 } 00198 }; 00199 00200 00201 } // namespace message_operations 00202 } // namespace ros 00203 00204 #endif // PR2_DREMEL_SERVER_MESSAGE_SEGMENT_H 00205