$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-srs_public/doc_stacks/2013-03-05_12-22-34.333426/srs_public/srs_knowledge/msg/MoveAction.msg */ 00002 #ifndef SRS_KNOWLEDGE_MESSAGE_MOVEACTION_H 00003 #define SRS_KNOWLEDGE_MESSAGE_MOVEACTION_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 srs_knowledge 00020 { 00021 template <class ContainerAllocator> 00022 struct MoveAction_ { 00023 typedef MoveAction_<ContainerAllocator> Type; 00024 00025 MoveAction_() 00026 : dim(0) 00027 , targetPose2D() 00028 , ifWaitObjectTaken(false) 00029 { 00030 } 00031 00032 MoveAction_(const ContainerAllocator& _alloc) 00033 : dim(0) 00034 , targetPose2D(_alloc) 00035 , ifWaitObjectTaken(false) 00036 { 00037 } 00038 00039 typedef int32_t _dim_type; 00040 int32_t dim; 00041 00042 typedef ::geometry_msgs::Pose2D_<ContainerAllocator> _targetPose2D_type; 00043 ::geometry_msgs::Pose2D_<ContainerAllocator> targetPose2D; 00044 00045 typedef uint8_t _ifWaitObjectTaken_type; 00046 uint8_t ifWaitObjectTaken; 00047 00048 00049 private: 00050 static const char* __s_getDataType_() { return "srs_knowledge/MoveAction"; } 00051 public: 00052 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00053 00054 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00055 00056 private: 00057 static const char* __s_getMD5Sum_() { return "ff89e1acfb05cc083ae6d59fe1ff3ffd"; } 00058 public: 00059 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00060 00061 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00062 00063 private: 00064 static const char* __s_getMessageDefinition_() { return "# dim: dimension 2D or 3D or -1 (no move command.)\n\ 00065 int32 dim\n\ 00066 \n\ 00067 # Target Pose\n\ 00068 # geometry_msgs/Pose targetPose3D\n\ 00069 geometry_msgs/Pose2D targetPose2D\n\ 00070 \n\ 00071 # Wait for object taken from tray at target or not\n\ 00072 bool ifWaitObjectTaken\n\ 00073 \n\ 00074 \n\ 00075 ================================================================================\n\ 00076 MSG: geometry_msgs/Pose2D\n\ 00077 # This expresses a position and orientation on a 2D manifold.\n\ 00078 \n\ 00079 float64 x\n\ 00080 float64 y\n\ 00081 float64 theta\n\ 00082 "; } 00083 public: 00084 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00085 00086 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00087 00088 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00089 { 00090 ros::serialization::OStream stream(write_ptr, 1000000000); 00091 ros::serialization::serialize(stream, dim); 00092 ros::serialization::serialize(stream, targetPose2D); 00093 ros::serialization::serialize(stream, ifWaitObjectTaken); 00094 return stream.getData(); 00095 } 00096 00097 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00098 { 00099 ros::serialization::IStream stream(read_ptr, 1000000000); 00100 ros::serialization::deserialize(stream, dim); 00101 ros::serialization::deserialize(stream, targetPose2D); 00102 ros::serialization::deserialize(stream, ifWaitObjectTaken); 00103 return stream.getData(); 00104 } 00105 00106 ROS_DEPRECATED virtual uint32_t serializationLength() const 00107 { 00108 uint32_t size = 0; 00109 size += ros::serialization::serializationLength(dim); 00110 size += ros::serialization::serializationLength(targetPose2D); 00111 size += ros::serialization::serializationLength(ifWaitObjectTaken); 00112 return size; 00113 } 00114 00115 typedef boost::shared_ptr< ::srs_knowledge::MoveAction_<ContainerAllocator> > Ptr; 00116 typedef boost::shared_ptr< ::srs_knowledge::MoveAction_<ContainerAllocator> const> ConstPtr; 00117 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00118 }; // struct MoveAction 00119 typedef ::srs_knowledge::MoveAction_<std::allocator<void> > MoveAction; 00120 00121 typedef boost::shared_ptr< ::srs_knowledge::MoveAction> MoveActionPtr; 00122 typedef boost::shared_ptr< ::srs_knowledge::MoveAction const> MoveActionConstPtr; 00123 00124 00125 template<typename ContainerAllocator> 00126 std::ostream& operator<<(std::ostream& s, const ::srs_knowledge::MoveAction_<ContainerAllocator> & v) 00127 { 00128 ros::message_operations::Printer< ::srs_knowledge::MoveAction_<ContainerAllocator> >::stream(s, "", v); 00129 return s;} 00130 00131 } // namespace srs_knowledge 00132 00133 namespace ros 00134 { 00135 namespace message_traits 00136 { 00137 template<class ContainerAllocator> struct IsMessage< ::srs_knowledge::MoveAction_<ContainerAllocator> > : public TrueType {}; 00138 template<class ContainerAllocator> struct IsMessage< ::srs_knowledge::MoveAction_<ContainerAllocator> const> : public TrueType {}; 00139 template<class ContainerAllocator> 00140 struct MD5Sum< ::srs_knowledge::MoveAction_<ContainerAllocator> > { 00141 static const char* value() 00142 { 00143 return "ff89e1acfb05cc083ae6d59fe1ff3ffd"; 00144 } 00145 00146 static const char* value(const ::srs_knowledge::MoveAction_<ContainerAllocator> &) { return value(); } 00147 static const uint64_t static_value1 = 0xff89e1acfb05cc08ULL; 00148 static const uint64_t static_value2 = 0x3ae6d59fe1ff3ffdULL; 00149 }; 00150 00151 template<class ContainerAllocator> 00152 struct DataType< ::srs_knowledge::MoveAction_<ContainerAllocator> > { 00153 static const char* value() 00154 { 00155 return "srs_knowledge/MoveAction"; 00156 } 00157 00158 static const char* value(const ::srs_knowledge::MoveAction_<ContainerAllocator> &) { return value(); } 00159 }; 00160 00161 template<class ContainerAllocator> 00162 struct Definition< ::srs_knowledge::MoveAction_<ContainerAllocator> > { 00163 static const char* value() 00164 { 00165 return "# dim: dimension 2D or 3D or -1 (no move command.)\n\ 00166 int32 dim\n\ 00167 \n\ 00168 # Target Pose\n\ 00169 # geometry_msgs/Pose targetPose3D\n\ 00170 geometry_msgs/Pose2D targetPose2D\n\ 00171 \n\ 00172 # Wait for object taken from tray at target or not\n\ 00173 bool ifWaitObjectTaken\n\ 00174 \n\ 00175 \n\ 00176 ================================================================================\n\ 00177 MSG: geometry_msgs/Pose2D\n\ 00178 # This expresses a position and orientation on a 2D manifold.\n\ 00179 \n\ 00180 float64 x\n\ 00181 float64 y\n\ 00182 float64 theta\n\ 00183 "; 00184 } 00185 00186 static const char* value(const ::srs_knowledge::MoveAction_<ContainerAllocator> &) { return value(); } 00187 }; 00188 00189 template<class ContainerAllocator> struct IsFixedSize< ::srs_knowledge::MoveAction_<ContainerAllocator> > : public TrueType {}; 00190 } // namespace message_traits 00191 } // namespace ros 00192 00193 namespace ros 00194 { 00195 namespace serialization 00196 { 00197 00198 template<class ContainerAllocator> struct Serializer< ::srs_knowledge::MoveAction_<ContainerAllocator> > 00199 { 00200 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00201 { 00202 stream.next(m.dim); 00203 stream.next(m.targetPose2D); 00204 stream.next(m.ifWaitObjectTaken); 00205 } 00206 00207 ROS_DECLARE_ALLINONE_SERIALIZER; 00208 }; // struct MoveAction_ 00209 } // namespace serialization 00210 } // namespace ros 00211 00212 namespace ros 00213 { 00214 namespace message_operations 00215 { 00216 00217 template<class ContainerAllocator> 00218 struct Printer< ::srs_knowledge::MoveAction_<ContainerAllocator> > 00219 { 00220 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::srs_knowledge::MoveAction_<ContainerAllocator> & v) 00221 { 00222 s << indent << "dim: "; 00223 Printer<int32_t>::stream(s, indent + " ", v.dim); 00224 s << indent << "targetPose2D: "; 00225 s << std::endl; 00226 Printer< ::geometry_msgs::Pose2D_<ContainerAllocator> >::stream(s, indent + " ", v.targetPose2D); 00227 s << indent << "ifWaitObjectTaken: "; 00228 Printer<uint8_t>::stream(s, indent + " ", v.ifWaitObjectTaken); 00229 } 00230 }; 00231 00232 00233 } // namespace message_operations 00234 } // namespace ros 00235 00236 #endif // SRS_KNOWLEDGE_MESSAGE_MOVEACTION_H 00237