$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-motion_analysis_mocap/doc_stacks/2013-03-02_12-45-10.429990/motion_analysis_mocap/evart_bridge/msg/Body.msg */ 00002 #ifndef EVART_BRIDGE_MESSAGE_BODY_H 00003 #define EVART_BRIDGE_MESSAGE_BODY_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 "evart_bridge/Segment.h" 00018 #include "evart_bridge/Dof.h" 00019 00020 namespace evart_bridge 00021 { 00022 template <class ContainerAllocator> 00023 struct Body_ { 00024 typedef Body_<ContainerAllocator> Type; 00025 00026 Body_() 00027 : name() 00028 , segments() 00029 , dofs() 00030 { 00031 } 00032 00033 Body_(const ContainerAllocator& _alloc) 00034 : name(_alloc) 00035 , segments(_alloc) 00036 , dofs(_alloc) 00037 { 00038 } 00039 00040 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _name_type; 00041 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > name; 00042 00043 typedef std::vector< ::evart_bridge::Segment_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::evart_bridge::Segment_<ContainerAllocator> >::other > _segments_type; 00044 std::vector< ::evart_bridge::Segment_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::evart_bridge::Segment_<ContainerAllocator> >::other > segments; 00045 00046 typedef std::vector< ::evart_bridge::Dof_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::evart_bridge::Dof_<ContainerAllocator> >::other > _dofs_type; 00047 std::vector< ::evart_bridge::Dof_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::evart_bridge::Dof_<ContainerAllocator> >::other > dofs; 00048 00049 00050 ROS_DEPRECATED uint32_t get_segments_size() const { return (uint32_t)segments.size(); } 00051 ROS_DEPRECATED void set_segments_size(uint32_t size) { segments.resize((size_t)size); } 00052 ROS_DEPRECATED void get_segments_vec(std::vector< ::evart_bridge::Segment_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::evart_bridge::Segment_<ContainerAllocator> >::other > & vec) const { vec = this->segments; } 00053 ROS_DEPRECATED void set_segments_vec(const std::vector< ::evart_bridge::Segment_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::evart_bridge::Segment_<ContainerAllocator> >::other > & vec) { this->segments = vec; } 00054 ROS_DEPRECATED uint32_t get_dofs_size() const { return (uint32_t)dofs.size(); } 00055 ROS_DEPRECATED void set_dofs_size(uint32_t size) { dofs.resize((size_t)size); } 00056 ROS_DEPRECATED void get_dofs_vec(std::vector< ::evart_bridge::Dof_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::evart_bridge::Dof_<ContainerAllocator> >::other > & vec) const { vec = this->dofs; } 00057 ROS_DEPRECATED void set_dofs_vec(const std::vector< ::evart_bridge::Dof_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::evart_bridge::Dof_<ContainerAllocator> >::other > & vec) { this->dofs = vec; } 00058 private: 00059 static const char* __s_getDataType_() { return "evart_bridge/Body"; } 00060 public: 00061 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00062 00063 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00064 00065 private: 00066 static const char* __s_getMD5Sum_() { return "cfccec9c0da074c0e3351fd3d7badc55"; } 00067 public: 00068 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00069 00070 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00071 00072 private: 00073 static const char* __s_getMessageDefinition_() { return "string name\n\ 00074 Segment[] segments\n\ 00075 Dof[] dofs\n\ 00076 \n\ 00077 ================================================================================\n\ 00078 MSG: evart_bridge/Segment\n\ 00079 string name\n\ 00080 uint32 parent\n\ 00081 \n\ 00082 ================================================================================\n\ 00083 MSG: evart_bridge/Dof\n\ 00084 string name\n\ 00085 \n\ 00086 "; } 00087 public: 00088 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00089 00090 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00091 00092 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00093 { 00094 ros::serialization::OStream stream(write_ptr, 1000000000); 00095 ros::serialization::serialize(stream, name); 00096 ros::serialization::serialize(stream, segments); 00097 ros::serialization::serialize(stream, dofs); 00098 return stream.getData(); 00099 } 00100 00101 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00102 { 00103 ros::serialization::IStream stream(read_ptr, 1000000000); 00104 ros::serialization::deserialize(stream, name); 00105 ros::serialization::deserialize(stream, segments); 00106 ros::serialization::deserialize(stream, dofs); 00107 return stream.getData(); 00108 } 00109 00110 ROS_DEPRECATED virtual uint32_t serializationLength() const 00111 { 00112 uint32_t size = 0; 00113 size += ros::serialization::serializationLength(name); 00114 size += ros::serialization::serializationLength(segments); 00115 size += ros::serialization::serializationLength(dofs); 00116 return size; 00117 } 00118 00119 typedef boost::shared_ptr< ::evart_bridge::Body_<ContainerAllocator> > Ptr; 00120 typedef boost::shared_ptr< ::evart_bridge::Body_<ContainerAllocator> const> ConstPtr; 00121 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00122 }; // struct Body 00123 typedef ::evart_bridge::Body_<std::allocator<void> > Body; 00124 00125 typedef boost::shared_ptr< ::evart_bridge::Body> BodyPtr; 00126 typedef boost::shared_ptr< ::evart_bridge::Body const> BodyConstPtr; 00127 00128 00129 template<typename ContainerAllocator> 00130 std::ostream& operator<<(std::ostream& s, const ::evart_bridge::Body_<ContainerAllocator> & v) 00131 { 00132 ros::message_operations::Printer< ::evart_bridge::Body_<ContainerAllocator> >::stream(s, "", v); 00133 return s;} 00134 00135 } // namespace evart_bridge 00136 00137 namespace ros 00138 { 00139 namespace message_traits 00140 { 00141 template<class ContainerAllocator> struct IsMessage< ::evart_bridge::Body_<ContainerAllocator> > : public TrueType {}; 00142 template<class ContainerAllocator> struct IsMessage< ::evart_bridge::Body_<ContainerAllocator> const> : public TrueType {}; 00143 template<class ContainerAllocator> 00144 struct MD5Sum< ::evart_bridge::Body_<ContainerAllocator> > { 00145 static const char* value() 00146 { 00147 return "cfccec9c0da074c0e3351fd3d7badc55"; 00148 } 00149 00150 static const char* value(const ::evart_bridge::Body_<ContainerAllocator> &) { return value(); } 00151 static const uint64_t static_value1 = 0xcfccec9c0da074c0ULL; 00152 static const uint64_t static_value2 = 0xe3351fd3d7badc55ULL; 00153 }; 00154 00155 template<class ContainerAllocator> 00156 struct DataType< ::evart_bridge::Body_<ContainerAllocator> > { 00157 static const char* value() 00158 { 00159 return "evart_bridge/Body"; 00160 } 00161 00162 static const char* value(const ::evart_bridge::Body_<ContainerAllocator> &) { return value(); } 00163 }; 00164 00165 template<class ContainerAllocator> 00166 struct Definition< ::evart_bridge::Body_<ContainerAllocator> > { 00167 static const char* value() 00168 { 00169 return "string name\n\ 00170 Segment[] segments\n\ 00171 Dof[] dofs\n\ 00172 \n\ 00173 ================================================================================\n\ 00174 MSG: evart_bridge/Segment\n\ 00175 string name\n\ 00176 uint32 parent\n\ 00177 \n\ 00178 ================================================================================\n\ 00179 MSG: evart_bridge/Dof\n\ 00180 string name\n\ 00181 \n\ 00182 "; 00183 } 00184 00185 static const char* value(const ::evart_bridge::Body_<ContainerAllocator> &) { return value(); } 00186 }; 00187 00188 } // namespace message_traits 00189 } // namespace ros 00190 00191 namespace ros 00192 { 00193 namespace serialization 00194 { 00195 00196 template<class ContainerAllocator> struct Serializer< ::evart_bridge::Body_<ContainerAllocator> > 00197 { 00198 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00199 { 00200 stream.next(m.name); 00201 stream.next(m.segments); 00202 stream.next(m.dofs); 00203 } 00204 00205 ROS_DECLARE_ALLINONE_SERIALIZER; 00206 }; // struct Body_ 00207 } // namespace serialization 00208 } // namespace ros 00209 00210 namespace ros 00211 { 00212 namespace message_operations 00213 { 00214 00215 template<class ContainerAllocator> 00216 struct Printer< ::evart_bridge::Body_<ContainerAllocator> > 00217 { 00218 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::evart_bridge::Body_<ContainerAllocator> & v) 00219 { 00220 s << indent << "name: "; 00221 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.name); 00222 s << indent << "segments[]" << std::endl; 00223 for (size_t i = 0; i < v.segments.size(); ++i) 00224 { 00225 s << indent << " segments[" << i << "]: "; 00226 s << std::endl; 00227 s << indent; 00228 Printer< ::evart_bridge::Segment_<ContainerAllocator> >::stream(s, indent + " ", v.segments[i]); 00229 } 00230 s << indent << "dofs[]" << std::endl; 00231 for (size_t i = 0; i < v.dofs.size(); ++i) 00232 { 00233 s << indent << " dofs[" << i << "]: "; 00234 s << std::endl; 00235 s << indent; 00236 Printer< ::evart_bridge::Dof_<ContainerAllocator> >::stream(s, indent + " ", v.dofs[i]); 00237 } 00238 } 00239 }; 00240 00241 00242 } // namespace message_operations 00243 } // namespace ros 00244 00245 #endif // EVART_BRIDGE_MESSAGE_BODY_H 00246