Body.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-motion_analysis_mocap/doc_stacks/2014-01-03_11-29-05.422239/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   typedef boost::shared_ptr< ::evart_bridge::Body_<ContainerAllocator> > Ptr;
00051   typedef boost::shared_ptr< ::evart_bridge::Body_<ContainerAllocator>  const> ConstPtr;
00052   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00053 }; // struct Body
00054 typedef  ::evart_bridge::Body_<std::allocator<void> > Body;
00055 
00056 typedef boost::shared_ptr< ::evart_bridge::Body> BodyPtr;
00057 typedef boost::shared_ptr< ::evart_bridge::Body const> BodyConstPtr;
00058 
00059 
00060 template<typename ContainerAllocator>
00061 std::ostream& operator<<(std::ostream& s, const  ::evart_bridge::Body_<ContainerAllocator> & v)
00062 {
00063   ros::message_operations::Printer< ::evart_bridge::Body_<ContainerAllocator> >::stream(s, "", v);
00064   return s;}
00065 
00066 } // namespace evart_bridge
00067 
00068 namespace ros
00069 {
00070 namespace message_traits
00071 {
00072 template<class ContainerAllocator> struct IsMessage< ::evart_bridge::Body_<ContainerAllocator> > : public TrueType {};
00073 template<class ContainerAllocator> struct IsMessage< ::evart_bridge::Body_<ContainerAllocator>  const> : public TrueType {};
00074 template<class ContainerAllocator>
00075 struct MD5Sum< ::evart_bridge::Body_<ContainerAllocator> > {
00076   static const char* value() 
00077   {
00078     return "cfccec9c0da074c0e3351fd3d7badc55";
00079   }
00080 
00081   static const char* value(const  ::evart_bridge::Body_<ContainerAllocator> &) { return value(); } 
00082   static const uint64_t static_value1 = 0xcfccec9c0da074c0ULL;
00083   static const uint64_t static_value2 = 0xe3351fd3d7badc55ULL;
00084 };
00085 
00086 template<class ContainerAllocator>
00087 struct DataType< ::evart_bridge::Body_<ContainerAllocator> > {
00088   static const char* value() 
00089   {
00090     return "evart_bridge/Body";
00091   }
00092 
00093   static const char* value(const  ::evart_bridge::Body_<ContainerAllocator> &) { return value(); } 
00094 };
00095 
00096 template<class ContainerAllocator>
00097 struct Definition< ::evart_bridge::Body_<ContainerAllocator> > {
00098   static const char* value() 
00099   {
00100     return "string name\n\
00101 Segment[] segments\n\
00102 Dof[] dofs\n\
00103 \n\
00104 ================================================================================\n\
00105 MSG: evart_bridge/Segment\n\
00106 string name\n\
00107 uint32 parent\n\
00108 \n\
00109 ================================================================================\n\
00110 MSG: evart_bridge/Dof\n\
00111 string name\n\
00112 \n\
00113 ";
00114   }
00115 
00116   static const char* value(const  ::evart_bridge::Body_<ContainerAllocator> &) { return value(); } 
00117 };
00118 
00119 } // namespace message_traits
00120 } // namespace ros
00121 
00122 namespace ros
00123 {
00124 namespace serialization
00125 {
00126 
00127 template<class ContainerAllocator> struct Serializer< ::evart_bridge::Body_<ContainerAllocator> >
00128 {
00129   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00130   {
00131     stream.next(m.name);
00132     stream.next(m.segments);
00133     stream.next(m.dofs);
00134   }
00135 
00136   ROS_DECLARE_ALLINONE_SERIALIZER;
00137 }; // struct Body_
00138 } // namespace serialization
00139 } // namespace ros
00140 
00141 namespace ros
00142 {
00143 namespace message_operations
00144 {
00145 
00146 template<class ContainerAllocator>
00147 struct Printer< ::evart_bridge::Body_<ContainerAllocator> >
00148 {
00149   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::evart_bridge::Body_<ContainerAllocator> & v) 
00150   {
00151     s << indent << "name: ";
00152     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.name);
00153     s << indent << "segments[]" << std::endl;
00154     for (size_t i = 0; i < v.segments.size(); ++i)
00155     {
00156       s << indent << "  segments[" << i << "]: ";
00157       s << std::endl;
00158       s << indent;
00159       Printer< ::evart_bridge::Segment_<ContainerAllocator> >::stream(s, indent + "    ", v.segments[i]);
00160     }
00161     s << indent << "dofs[]" << std::endl;
00162     for (size_t i = 0; i < v.dofs.size(); ++i)
00163     {
00164       s << indent << "  dofs[" << i << "]: ";
00165       s << std::endl;
00166       s << indent;
00167       Printer< ::evart_bridge::Dof_<ContainerAllocator> >::stream(s, indent + "    ", v.dofs[i]);
00168     }
00169   }
00170 };
00171 
00172 
00173 } // namespace message_operations
00174 } // namespace ros
00175 
00176 #endif // EVART_BRIDGE_MESSAGE_BODY_H
00177 


evart_bridge
Author(s): Thomas Moulard/thomas.moulard@gmail.com
autogenerated on Fri Jan 3 2014 11:30:22