AccelerometerState.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-groovy-pr2_common/doc_stacks/2014-10-06_03-28-41.757574/pr2_common/pr2_msgs/msg/AccelerometerState.msg */
00002 #ifndef PR2_MSGS_MESSAGE_ACCELEROMETERSTATE_H
00003 #define PR2_MSGS_MESSAGE_ACCELEROMETERSTATE_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/Header.h"
00018 #include "geometry_msgs/Vector3.h"
00019 
00020 namespace pr2_msgs
00021 {
00022 template <class ContainerAllocator>
00023 struct AccelerometerState_ {
00024   typedef AccelerometerState_<ContainerAllocator> Type;
00025 
00026   AccelerometerState_()
00027   : header()
00028   , samples()
00029   {
00030   }
00031 
00032   AccelerometerState_(const ContainerAllocator& _alloc)
00033   : header(_alloc)
00034   , samples(_alloc)
00035   {
00036   }
00037 
00038   typedef  ::std_msgs::Header_<ContainerAllocator>  _header_type;
00039    ::std_msgs::Header_<ContainerAllocator>  header;
00040 
00041   typedef std::vector< ::geometry_msgs::Vector3_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Vector3_<ContainerAllocator> >::other >  _samples_type;
00042   std::vector< ::geometry_msgs::Vector3_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Vector3_<ContainerAllocator> >::other >  samples;
00043 
00044 
00045   typedef boost::shared_ptr< ::pr2_msgs::AccelerometerState_<ContainerAllocator> > Ptr;
00046   typedef boost::shared_ptr< ::pr2_msgs::AccelerometerState_<ContainerAllocator>  const> ConstPtr;
00047   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00048 }; // struct AccelerometerState
00049 typedef  ::pr2_msgs::AccelerometerState_<std::allocator<void> > AccelerometerState;
00050 
00051 typedef boost::shared_ptr< ::pr2_msgs::AccelerometerState> AccelerometerStatePtr;
00052 typedef boost::shared_ptr< ::pr2_msgs::AccelerometerState const> AccelerometerStateConstPtr;
00053 
00054 
00055 template<typename ContainerAllocator>
00056 std::ostream& operator<<(std::ostream& s, const  ::pr2_msgs::AccelerometerState_<ContainerAllocator> & v)
00057 {
00058   ros::message_operations::Printer< ::pr2_msgs::AccelerometerState_<ContainerAllocator> >::stream(s, "", v);
00059   return s;}
00060 
00061 } // namespace pr2_msgs
00062 
00063 namespace ros
00064 {
00065 namespace message_traits
00066 {
00067 template<class ContainerAllocator> struct IsMessage< ::pr2_msgs::AccelerometerState_<ContainerAllocator> > : public TrueType {};
00068 template<class ContainerAllocator> struct IsMessage< ::pr2_msgs::AccelerometerState_<ContainerAllocator>  const> : public TrueType {};
00069 template<class ContainerAllocator>
00070 struct MD5Sum< ::pr2_msgs::AccelerometerState_<ContainerAllocator> > {
00071   static const char* value() 
00072   {
00073     return "26492e97ed8c13252c4a85592d3e93fd";
00074   }
00075 
00076   static const char* value(const  ::pr2_msgs::AccelerometerState_<ContainerAllocator> &) { return value(); } 
00077   static const uint64_t static_value1 = 0x26492e97ed8c1325ULL;
00078   static const uint64_t static_value2 = 0x2c4a85592d3e93fdULL;
00079 };
00080 
00081 template<class ContainerAllocator>
00082 struct DataType< ::pr2_msgs::AccelerometerState_<ContainerAllocator> > {
00083   static const char* value() 
00084   {
00085     return "pr2_msgs/AccelerometerState";
00086   }
00087 
00088   static const char* value(const  ::pr2_msgs::AccelerometerState_<ContainerAllocator> &) { return value(); } 
00089 };
00090 
00091 template<class ContainerAllocator>
00092 struct Definition< ::pr2_msgs::AccelerometerState_<ContainerAllocator> > {
00093   static const char* value() 
00094   {
00095     return "#This captures acceleration measurements from the 3-dof accelerometer in the hand of the PR2\n\
00096 #Units are meters / second / second\n\
00097 #Vectors should be <X, Y, Z> in the frame of the gripper\n\
00098 \n\
00099 #The communication with the accelerometer is at approximately 3khz, but there is only good timestamping every 1ms\n\
00100 #This means the samples should be interpreted as all having come from the 1 ms before the time in the header\n\
00101 \n\
00102 Header header\n\
00103 geometry_msgs/Vector3[] samples\n\
00104 \n\
00105 ================================================================================\n\
00106 MSG: std_msgs/Header\n\
00107 # Standard metadata for higher-level stamped data types.\n\
00108 # This is generally used to communicate timestamped data \n\
00109 # in a particular coordinate frame.\n\
00110 # \n\
00111 # sequence ID: consecutively increasing ID \n\
00112 uint32 seq\n\
00113 #Two-integer timestamp that is expressed as:\n\
00114 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00115 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00116 # time-handling sugar is provided by the client library\n\
00117 time stamp\n\
00118 #Frame this data is associated with\n\
00119 # 0: no frame\n\
00120 # 1: global frame\n\
00121 string frame_id\n\
00122 \n\
00123 ================================================================================\n\
00124 MSG: geometry_msgs/Vector3\n\
00125 # This represents a vector in free space. \n\
00126 \n\
00127 float64 x\n\
00128 float64 y\n\
00129 float64 z\n\
00130 ";
00131   }
00132 
00133   static const char* value(const  ::pr2_msgs::AccelerometerState_<ContainerAllocator> &) { return value(); } 
00134 };
00135 
00136 template<class ContainerAllocator> struct HasHeader< ::pr2_msgs::AccelerometerState_<ContainerAllocator> > : public TrueType {};
00137 template<class ContainerAllocator> struct HasHeader< const ::pr2_msgs::AccelerometerState_<ContainerAllocator> > : public TrueType {};
00138 } // namespace message_traits
00139 } // namespace ros
00140 
00141 namespace ros
00142 {
00143 namespace serialization
00144 {
00145 
00146 template<class ContainerAllocator> struct Serializer< ::pr2_msgs::AccelerometerState_<ContainerAllocator> >
00147 {
00148   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00149   {
00150     stream.next(m.header);
00151     stream.next(m.samples);
00152   }
00153 
00154   ROS_DECLARE_ALLINONE_SERIALIZER;
00155 }; // struct AccelerometerState_
00156 } // namespace serialization
00157 } // namespace ros
00158 
00159 namespace ros
00160 {
00161 namespace message_operations
00162 {
00163 
00164 template<class ContainerAllocator>
00165 struct Printer< ::pr2_msgs::AccelerometerState_<ContainerAllocator> >
00166 {
00167   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::pr2_msgs::AccelerometerState_<ContainerAllocator> & v) 
00168   {
00169     s << indent << "header: ";
00170 s << std::endl;
00171     Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + "  ", v.header);
00172     s << indent << "samples[]" << std::endl;
00173     for (size_t i = 0; i < v.samples.size(); ++i)
00174     {
00175       s << indent << "  samples[" << i << "]: ";
00176       s << std::endl;
00177       s << indent;
00178       Printer< ::geometry_msgs::Vector3_<ContainerAllocator> >::stream(s, indent + "    ", v.samples[i]);
00179     }
00180   }
00181 };
00182 
00183 
00184 } // namespace message_operations
00185 } // namespace ros
00186 
00187 #endif // PR2_MSGS_MESSAGE_ACCELEROMETERSTATE_H
00188 


pr2_msgs
Author(s): Eric Berger and many others
autogenerated on Mon Oct 6 2014 03:30:41