$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-humanoid_walk/doc_stacks/2013-03-01_15-40-38.607083/humanoid_walk/halfsteps_pattern_generator/msg/Footprint.msg */ 00002 #ifndef HALFSTEPS_PATTERN_GENERATOR_MESSAGE_FOOTPRINT_H 00003 #define HALFSTEPS_PATTERN_GENERATOR_MESSAGE_FOOTPRINT_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 "walk_msgs/Footprint2d.h" 00018 00019 namespace halfsteps_pattern_generator 00020 { 00021 template <class ContainerAllocator> 00022 struct Footprint_ { 00023 typedef Footprint_<ContainerAllocator> Type; 00024 00025 Footprint_() 00026 : footprint() 00027 , slideUp(0.0) 00028 , slideDown(0.0) 00029 , horizontalDistance(0.0) 00030 , stepHeight(0.0) 00031 { 00032 } 00033 00034 Footprint_(const ContainerAllocator& _alloc) 00035 : footprint(_alloc) 00036 , slideUp(0.0) 00037 , slideDown(0.0) 00038 , horizontalDistance(0.0) 00039 , stepHeight(0.0) 00040 { 00041 } 00042 00043 typedef ::walk_msgs::Footprint2d_<ContainerAllocator> _footprint_type; 00044 ::walk_msgs::Footprint2d_<ContainerAllocator> footprint; 00045 00046 typedef double _slideUp_type; 00047 double slideUp; 00048 00049 typedef double _slideDown_type; 00050 double slideDown; 00051 00052 typedef double _horizontalDistance_type; 00053 double horizontalDistance; 00054 00055 typedef double _stepHeight_type; 00056 double stepHeight; 00057 00058 00059 private: 00060 static const char* __s_getDataType_() { return "halfsteps_pattern_generator/Footprint"; } 00061 public: 00062 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00063 00064 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00065 00066 private: 00067 static const char* __s_getMD5Sum_() { return "c0e358fe89a17f434cfecaf36056143a"; } 00068 public: 00069 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00070 00071 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00072 00073 private: 00074 static const char* __s_getMessageDefinition_() { return "walk_msgs/Footprint2d footprint\n\ 00075 float64 slideUp\n\ 00076 float64 slideDown\n\ 00077 float64 horizontalDistance\n\ 00078 float64 stepHeight\n\ 00079 \n\ 00080 ================================================================================\n\ 00081 MSG: walk_msgs/Footprint2d\n\ 00082 time beginTime\n\ 00083 duration duration\n\ 00084 float64 x\n\ 00085 float64 y\n\ 00086 float64 theta\n\ 00087 \n\ 00088 "; } 00089 public: 00090 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00091 00092 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00093 00094 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00095 { 00096 ros::serialization::OStream stream(write_ptr, 1000000000); 00097 ros::serialization::serialize(stream, footprint); 00098 ros::serialization::serialize(stream, slideUp); 00099 ros::serialization::serialize(stream, slideDown); 00100 ros::serialization::serialize(stream, horizontalDistance); 00101 ros::serialization::serialize(stream, stepHeight); 00102 return stream.getData(); 00103 } 00104 00105 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00106 { 00107 ros::serialization::IStream stream(read_ptr, 1000000000); 00108 ros::serialization::deserialize(stream, footprint); 00109 ros::serialization::deserialize(stream, slideUp); 00110 ros::serialization::deserialize(stream, slideDown); 00111 ros::serialization::deserialize(stream, horizontalDistance); 00112 ros::serialization::deserialize(stream, stepHeight); 00113 return stream.getData(); 00114 } 00115 00116 ROS_DEPRECATED virtual uint32_t serializationLength() const 00117 { 00118 uint32_t size = 0; 00119 size += ros::serialization::serializationLength(footprint); 00120 size += ros::serialization::serializationLength(slideUp); 00121 size += ros::serialization::serializationLength(slideDown); 00122 size += ros::serialization::serializationLength(horizontalDistance); 00123 size += ros::serialization::serializationLength(stepHeight); 00124 return size; 00125 } 00126 00127 typedef boost::shared_ptr< ::halfsteps_pattern_generator::Footprint_<ContainerAllocator> > Ptr; 00128 typedef boost::shared_ptr< ::halfsteps_pattern_generator::Footprint_<ContainerAllocator> const> ConstPtr; 00129 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00130 }; // struct Footprint 00131 typedef ::halfsteps_pattern_generator::Footprint_<std::allocator<void> > Footprint; 00132 00133 typedef boost::shared_ptr< ::halfsteps_pattern_generator::Footprint> FootprintPtr; 00134 typedef boost::shared_ptr< ::halfsteps_pattern_generator::Footprint const> FootprintConstPtr; 00135 00136 00137 template<typename ContainerAllocator> 00138 std::ostream& operator<<(std::ostream& s, const ::halfsteps_pattern_generator::Footprint_<ContainerAllocator> & v) 00139 { 00140 ros::message_operations::Printer< ::halfsteps_pattern_generator::Footprint_<ContainerAllocator> >::stream(s, "", v); 00141 return s;} 00142 00143 } // namespace halfsteps_pattern_generator 00144 00145 namespace ros 00146 { 00147 namespace message_traits 00148 { 00149 template<class ContainerAllocator> struct IsMessage< ::halfsteps_pattern_generator::Footprint_<ContainerAllocator> > : public TrueType {}; 00150 template<class ContainerAllocator> struct IsMessage< ::halfsteps_pattern_generator::Footprint_<ContainerAllocator> const> : public TrueType {}; 00151 template<class ContainerAllocator> 00152 struct MD5Sum< ::halfsteps_pattern_generator::Footprint_<ContainerAllocator> > { 00153 static const char* value() 00154 { 00155 return "c0e358fe89a17f434cfecaf36056143a"; 00156 } 00157 00158 static const char* value(const ::halfsteps_pattern_generator::Footprint_<ContainerAllocator> &) { return value(); } 00159 static const uint64_t static_value1 = 0xc0e358fe89a17f43ULL; 00160 static const uint64_t static_value2 = 0x4cfecaf36056143aULL; 00161 }; 00162 00163 template<class ContainerAllocator> 00164 struct DataType< ::halfsteps_pattern_generator::Footprint_<ContainerAllocator> > { 00165 static const char* value() 00166 { 00167 return "halfsteps_pattern_generator/Footprint"; 00168 } 00169 00170 static const char* value(const ::halfsteps_pattern_generator::Footprint_<ContainerAllocator> &) { return value(); } 00171 }; 00172 00173 template<class ContainerAllocator> 00174 struct Definition< ::halfsteps_pattern_generator::Footprint_<ContainerAllocator> > { 00175 static const char* value() 00176 { 00177 return "walk_msgs/Footprint2d footprint\n\ 00178 float64 slideUp\n\ 00179 float64 slideDown\n\ 00180 float64 horizontalDistance\n\ 00181 float64 stepHeight\n\ 00182 \n\ 00183 ================================================================================\n\ 00184 MSG: walk_msgs/Footprint2d\n\ 00185 time beginTime\n\ 00186 duration duration\n\ 00187 float64 x\n\ 00188 float64 y\n\ 00189 float64 theta\n\ 00190 \n\ 00191 "; 00192 } 00193 00194 static const char* value(const ::halfsteps_pattern_generator::Footprint_<ContainerAllocator> &) { return value(); } 00195 }; 00196 00197 template<class ContainerAllocator> struct IsFixedSize< ::halfsteps_pattern_generator::Footprint_<ContainerAllocator> > : public TrueType {}; 00198 } // namespace message_traits 00199 } // namespace ros 00200 00201 namespace ros 00202 { 00203 namespace serialization 00204 { 00205 00206 template<class ContainerAllocator> struct Serializer< ::halfsteps_pattern_generator::Footprint_<ContainerAllocator> > 00207 { 00208 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00209 { 00210 stream.next(m.footprint); 00211 stream.next(m.slideUp); 00212 stream.next(m.slideDown); 00213 stream.next(m.horizontalDistance); 00214 stream.next(m.stepHeight); 00215 } 00216 00217 ROS_DECLARE_ALLINONE_SERIALIZER; 00218 }; // struct Footprint_ 00219 } // namespace serialization 00220 } // namespace ros 00221 00222 namespace ros 00223 { 00224 namespace message_operations 00225 { 00226 00227 template<class ContainerAllocator> 00228 struct Printer< ::halfsteps_pattern_generator::Footprint_<ContainerAllocator> > 00229 { 00230 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::halfsteps_pattern_generator::Footprint_<ContainerAllocator> & v) 00231 { 00232 s << indent << "footprint: "; 00233 s << std::endl; 00234 Printer< ::walk_msgs::Footprint2d_<ContainerAllocator> >::stream(s, indent + " ", v.footprint); 00235 s << indent << "slideUp: "; 00236 Printer<double>::stream(s, indent + " ", v.slideUp); 00237 s << indent << "slideDown: "; 00238 Printer<double>::stream(s, indent + " ", v.slideDown); 00239 s << indent << "horizontalDistance: "; 00240 Printer<double>::stream(s, indent + " ", v.horizontalDistance); 00241 s << indent << "stepHeight: "; 00242 Printer<double>::stream(s, indent + " ", v.stepHeight); 00243 } 00244 }; 00245 00246 00247 } // namespace message_operations 00248 } // namespace ros 00249 00250 #endif // HALFSTEPS_PATTERN_GENERATOR_MESSAGE_FOOTPRINT_H 00251