$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-humanoid_msgs/doc_stacks/2013-03-05_11-57-21.881989/humanoid_msgs/humanoid_nav_msgs/msg/StepTarget.msg */ 00002 #ifndef HUMANOID_NAV_MSGS_MESSAGE_STEPTARGET_H 00003 #define HUMANOID_NAV_MSGS_MESSAGE_STEPTARGET_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 "geometry_msgs/Pose2D.h" 00018 00019 namespace humanoid_nav_msgs 00020 { 00021 template <class ContainerAllocator> 00022 struct StepTarget_ { 00023 typedef StepTarget_<ContainerAllocator> Type; 00024 00025 StepTarget_() 00026 : pose() 00027 , leg(0) 00028 { 00029 } 00030 00031 StepTarget_(const ContainerAllocator& _alloc) 00032 : pose(_alloc) 00033 , leg(0) 00034 { 00035 } 00036 00037 typedef ::geometry_msgs::Pose2D_<ContainerAllocator> _pose_type; 00038 ::geometry_msgs::Pose2D_<ContainerAllocator> pose; 00039 00040 typedef uint8_t _leg_type; 00041 uint8_t leg; 00042 00043 enum { right = 0 }; 00044 enum { left = 1 }; 00045 00046 private: 00047 static const char* __s_getDataType_() { return "humanoid_nav_msgs/StepTarget"; } 00048 public: 00049 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00050 00051 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00052 00053 private: 00054 static const char* __s_getMD5Sum_() { return "8ccf34ddb67039fbda0d9b2515ebb1ea"; } 00055 public: 00056 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00057 00058 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00059 00060 private: 00061 static const char* __s_getMessageDefinition_() { return "# Target for a single stepping motion of a humanoid's leg\n\ 00062 \n\ 00063 geometry_msgs/Pose2D pose # step pose as relative offset to last leg\n\ 00064 uint8 leg # which leg to use (left/right, see below)\n\ 00065 \n\ 00066 uint8 right=0 # right leg constant\n\ 00067 uint8 left=1 # left leg constant\n\ 00068 \n\ 00069 ================================================================================\n\ 00070 MSG: geometry_msgs/Pose2D\n\ 00071 # This expresses a position and orientation on a 2D manifold.\n\ 00072 \n\ 00073 float64 x\n\ 00074 float64 y\n\ 00075 float64 theta\n\ 00076 "; } 00077 public: 00078 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00079 00080 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00081 00082 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00083 { 00084 ros::serialization::OStream stream(write_ptr, 1000000000); 00085 ros::serialization::serialize(stream, pose); 00086 ros::serialization::serialize(stream, leg); 00087 return stream.getData(); 00088 } 00089 00090 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00091 { 00092 ros::serialization::IStream stream(read_ptr, 1000000000); 00093 ros::serialization::deserialize(stream, pose); 00094 ros::serialization::deserialize(stream, leg); 00095 return stream.getData(); 00096 } 00097 00098 ROS_DEPRECATED virtual uint32_t serializationLength() const 00099 { 00100 uint32_t size = 0; 00101 size += ros::serialization::serializationLength(pose); 00102 size += ros::serialization::serializationLength(leg); 00103 return size; 00104 } 00105 00106 typedef boost::shared_ptr< ::humanoid_nav_msgs::StepTarget_<ContainerAllocator> > Ptr; 00107 typedef boost::shared_ptr< ::humanoid_nav_msgs::StepTarget_<ContainerAllocator> const> ConstPtr; 00108 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00109 }; // struct StepTarget 00110 typedef ::humanoid_nav_msgs::StepTarget_<std::allocator<void> > StepTarget; 00111 00112 typedef boost::shared_ptr< ::humanoid_nav_msgs::StepTarget> StepTargetPtr; 00113 typedef boost::shared_ptr< ::humanoid_nav_msgs::StepTarget const> StepTargetConstPtr; 00114 00115 00116 template<typename ContainerAllocator> 00117 std::ostream& operator<<(std::ostream& s, const ::humanoid_nav_msgs::StepTarget_<ContainerAllocator> & v) 00118 { 00119 ros::message_operations::Printer< ::humanoid_nav_msgs::StepTarget_<ContainerAllocator> >::stream(s, "", v); 00120 return s;} 00121 00122 } // namespace humanoid_nav_msgs 00123 00124 namespace ros 00125 { 00126 namespace message_traits 00127 { 00128 template<class ContainerAllocator> struct IsMessage< ::humanoid_nav_msgs::StepTarget_<ContainerAllocator> > : public TrueType {}; 00129 template<class ContainerAllocator> struct IsMessage< ::humanoid_nav_msgs::StepTarget_<ContainerAllocator> const> : public TrueType {}; 00130 template<class ContainerAllocator> 00131 struct MD5Sum< ::humanoid_nav_msgs::StepTarget_<ContainerAllocator> > { 00132 static const char* value() 00133 { 00134 return "8ccf34ddb67039fbda0d9b2515ebb1ea"; 00135 } 00136 00137 static const char* value(const ::humanoid_nav_msgs::StepTarget_<ContainerAllocator> &) { return value(); } 00138 static const uint64_t static_value1 = 0x8ccf34ddb67039fbULL; 00139 static const uint64_t static_value2 = 0xda0d9b2515ebb1eaULL; 00140 }; 00141 00142 template<class ContainerAllocator> 00143 struct DataType< ::humanoid_nav_msgs::StepTarget_<ContainerAllocator> > { 00144 static const char* value() 00145 { 00146 return "humanoid_nav_msgs/StepTarget"; 00147 } 00148 00149 static const char* value(const ::humanoid_nav_msgs::StepTarget_<ContainerAllocator> &) { return value(); } 00150 }; 00151 00152 template<class ContainerAllocator> 00153 struct Definition< ::humanoid_nav_msgs::StepTarget_<ContainerAllocator> > { 00154 static const char* value() 00155 { 00156 return "# Target for a single stepping motion of a humanoid's leg\n\ 00157 \n\ 00158 geometry_msgs/Pose2D pose # step pose as relative offset to last leg\n\ 00159 uint8 leg # which leg to use (left/right, see below)\n\ 00160 \n\ 00161 uint8 right=0 # right leg constant\n\ 00162 uint8 left=1 # left leg constant\n\ 00163 \n\ 00164 ================================================================================\n\ 00165 MSG: geometry_msgs/Pose2D\n\ 00166 # This expresses a position and orientation on a 2D manifold.\n\ 00167 \n\ 00168 float64 x\n\ 00169 float64 y\n\ 00170 float64 theta\n\ 00171 "; 00172 } 00173 00174 static const char* value(const ::humanoid_nav_msgs::StepTarget_<ContainerAllocator> &) { return value(); } 00175 }; 00176 00177 template<class ContainerAllocator> struct IsFixedSize< ::humanoid_nav_msgs::StepTarget_<ContainerAllocator> > : public TrueType {}; 00178 } // namespace message_traits 00179 } // namespace ros 00180 00181 namespace ros 00182 { 00183 namespace serialization 00184 { 00185 00186 template<class ContainerAllocator> struct Serializer< ::humanoid_nav_msgs::StepTarget_<ContainerAllocator> > 00187 { 00188 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00189 { 00190 stream.next(m.pose); 00191 stream.next(m.leg); 00192 } 00193 00194 ROS_DECLARE_ALLINONE_SERIALIZER; 00195 }; // struct StepTarget_ 00196 } // namespace serialization 00197 } // namespace ros 00198 00199 namespace ros 00200 { 00201 namespace message_operations 00202 { 00203 00204 template<class ContainerAllocator> 00205 struct Printer< ::humanoid_nav_msgs::StepTarget_<ContainerAllocator> > 00206 { 00207 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::humanoid_nav_msgs::StepTarget_<ContainerAllocator> & v) 00208 { 00209 s << indent << "pose: "; 00210 s << std::endl; 00211 Printer< ::geometry_msgs::Pose2D_<ContainerAllocator> >::stream(s, indent + " ", v.pose); 00212 s << indent << "leg: "; 00213 Printer<uint8_t>::stream(s, indent + " ", v.leg); 00214 } 00215 }; 00216 00217 00218 } // namespace message_operations 00219 } // namespace ros 00220 00221 #endif // HUMANOID_NAV_MSGS_MESSAGE_STEPTARGET_H 00222