00001
00002 #ifndef PR2_DREMEL_SERVER_MESSAGE_CARVESEGMENTSGOAL_H
00003 #define PR2_DREMEL_SERVER_MESSAGE_CARVESEGMENTSGOAL_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 "pr2_dremel_server/Segment.h"
00018
00019 namespace pr2_dremel_server
00020 {
00021 template <class ContainerAllocator>
00022 struct CarveSegmentsGoal_ {
00023 typedef CarveSegmentsGoal_<ContainerAllocator> Type;
00024
00025 CarveSegmentsGoal_()
00026 : segments()
00027 {
00028 }
00029
00030 CarveSegmentsGoal_(const ContainerAllocator& _alloc)
00031 : segments(_alloc)
00032 {
00033 }
00034
00035 typedef std::vector< ::pr2_dremel_server::Segment_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::pr2_dremel_server::Segment_<ContainerAllocator> >::other > _segments_type;
00036 std::vector< ::pr2_dremel_server::Segment_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::pr2_dremel_server::Segment_<ContainerAllocator> >::other > segments;
00037
00038
00039 ROS_DEPRECATED uint32_t get_segments_size() const { return (uint32_t)segments.size(); }
00040 ROS_DEPRECATED void set_segments_size(uint32_t size) { segments.resize((size_t)size); }
00041 ROS_DEPRECATED void get_segments_vec(std::vector< ::pr2_dremel_server::Segment_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::pr2_dremel_server::Segment_<ContainerAllocator> >::other > & vec) const { vec = this->segments; }
00042 ROS_DEPRECATED void set_segments_vec(const std::vector< ::pr2_dremel_server::Segment_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::pr2_dremel_server::Segment_<ContainerAllocator> >::other > & vec) { this->segments = vec; }
00043 private:
00044 static const char* __s_getDataType_() { return "pr2_dremel_server/CarveSegmentsGoal"; }
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 "c4d38a36de8f8b2fdfc5725bd3f4f01c"; }
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 "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00059 # Define the goal\n\
00060 pr2_dremel_server/Segment[] segments\n\
00061 \n\
00062 ================================================================================\n\
00063 MSG: pr2_dremel_server/Segment\n\
00064 geometry_msgs/Point[] points\n\
00065 \n\
00066 ================================================================================\n\
00067 MSG: geometry_msgs/Point\n\
00068 # This contains the position of a point in free space\n\
00069 float64 x\n\
00070 float64 y\n\
00071 float64 z\n\
00072 \n\
00073 "; }
00074 public:
00075 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00076
00077 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00078
00079 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00080 {
00081 ros::serialization::OStream stream(write_ptr, 1000000000);
00082 ros::serialization::serialize(stream, segments);
00083 return stream.getData();
00084 }
00085
00086 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00087 {
00088 ros::serialization::IStream stream(read_ptr, 1000000000);
00089 ros::serialization::deserialize(stream, segments);
00090 return stream.getData();
00091 }
00092
00093 ROS_DEPRECATED virtual uint32_t serializationLength() const
00094 {
00095 uint32_t size = 0;
00096 size += ros::serialization::serializationLength(segments);
00097 return size;
00098 }
00099
00100 typedef boost::shared_ptr< ::pr2_dremel_server::CarveSegmentsGoal_<ContainerAllocator> > Ptr;
00101 typedef boost::shared_ptr< ::pr2_dremel_server::CarveSegmentsGoal_<ContainerAllocator> const> ConstPtr;
00102 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00103 };
00104 typedef ::pr2_dremel_server::CarveSegmentsGoal_<std::allocator<void> > CarveSegmentsGoal;
00105
00106 typedef boost::shared_ptr< ::pr2_dremel_server::CarveSegmentsGoal> CarveSegmentsGoalPtr;
00107 typedef boost::shared_ptr< ::pr2_dremel_server::CarveSegmentsGoal const> CarveSegmentsGoalConstPtr;
00108
00109
00110 template<typename ContainerAllocator>
00111 std::ostream& operator<<(std::ostream& s, const ::pr2_dremel_server::CarveSegmentsGoal_<ContainerAllocator> & v)
00112 {
00113 ros::message_operations::Printer< ::pr2_dremel_server::CarveSegmentsGoal_<ContainerAllocator> >::stream(s, "", v);
00114 return s;}
00115
00116 }
00117
00118 namespace ros
00119 {
00120 namespace message_traits
00121 {
00122 template<class ContainerAllocator> struct IsMessage< ::pr2_dremel_server::CarveSegmentsGoal_<ContainerAllocator> > : public TrueType {};
00123 template<class ContainerAllocator> struct IsMessage< ::pr2_dremel_server::CarveSegmentsGoal_<ContainerAllocator> const> : public TrueType {};
00124 template<class ContainerAllocator>
00125 struct MD5Sum< ::pr2_dremel_server::CarveSegmentsGoal_<ContainerAllocator> > {
00126 static const char* value()
00127 {
00128 return "c4d38a36de8f8b2fdfc5725bd3f4f01c";
00129 }
00130
00131 static const char* value(const ::pr2_dremel_server::CarveSegmentsGoal_<ContainerAllocator> &) { return value(); }
00132 static const uint64_t static_value1 = 0xc4d38a36de8f8b2fULL;
00133 static const uint64_t static_value2 = 0xdfc5725bd3f4f01cULL;
00134 };
00135
00136 template<class ContainerAllocator>
00137 struct DataType< ::pr2_dremel_server::CarveSegmentsGoal_<ContainerAllocator> > {
00138 static const char* value()
00139 {
00140 return "pr2_dremel_server/CarveSegmentsGoal";
00141 }
00142
00143 static const char* value(const ::pr2_dremel_server::CarveSegmentsGoal_<ContainerAllocator> &) { return value(); }
00144 };
00145
00146 template<class ContainerAllocator>
00147 struct Definition< ::pr2_dremel_server::CarveSegmentsGoal_<ContainerAllocator> > {
00148 static const char* value()
00149 {
00150 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00151 # Define the goal\n\
00152 pr2_dremel_server/Segment[] segments\n\
00153 \n\
00154 ================================================================================\n\
00155 MSG: pr2_dremel_server/Segment\n\
00156 geometry_msgs/Point[] points\n\
00157 \n\
00158 ================================================================================\n\
00159 MSG: geometry_msgs/Point\n\
00160 # This contains the position of a point in free space\n\
00161 float64 x\n\
00162 float64 y\n\
00163 float64 z\n\
00164 \n\
00165 ";
00166 }
00167
00168 static const char* value(const ::pr2_dremel_server::CarveSegmentsGoal_<ContainerAllocator> &) { return value(); }
00169 };
00170
00171 }
00172 }
00173
00174 namespace ros
00175 {
00176 namespace serialization
00177 {
00178
00179 template<class ContainerAllocator> struct Serializer< ::pr2_dremel_server::CarveSegmentsGoal_<ContainerAllocator> >
00180 {
00181 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00182 {
00183 stream.next(m.segments);
00184 }
00185
00186 ROS_DECLARE_ALLINONE_SERIALIZER;
00187 };
00188 }
00189 }
00190
00191 namespace ros
00192 {
00193 namespace message_operations
00194 {
00195
00196 template<class ContainerAllocator>
00197 struct Printer< ::pr2_dremel_server::CarveSegmentsGoal_<ContainerAllocator> >
00198 {
00199 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pr2_dremel_server::CarveSegmentsGoal_<ContainerAllocator> & v)
00200 {
00201 s << indent << "segments[]" << std::endl;
00202 for (size_t i = 0; i < v.segments.size(); ++i)
00203 {
00204 s << indent << " segments[" << i << "]: ";
00205 s << std::endl;
00206 s << indent;
00207 Printer< ::pr2_dremel_server::Segment_<ContainerAllocator> >::stream(s, indent + " ", v.segments[i]);
00208 }
00209 }
00210 };
00211
00212
00213 }
00214 }
00215
00216 #endif // PR2_DREMEL_SERVER_MESSAGE_CARVESEGMENTSGOAL_H
00217