$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-cn-alica-ros-pkg/doc_stacks/2013-03-01_14-33-35.230881/cn-alica-ros-pkg/alica_turtle/msg/SharedWorld.msg */ 00002 #ifndef ALICA_TURTLE_MESSAGE_SHAREDWORLD_H 00003 #define ALICA_TURTLE_MESSAGE_SHAREDWORLD_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 "turtlesim/Pose.h" 00018 00019 namespace alica_turtle 00020 { 00021 template <class ContainerAllocator> 00022 struct SharedWorld_ { 00023 typedef SharedWorld_<ContainerAllocator> Type; 00024 00025 SharedWorld_() 00026 : senderID(0) 00027 , position() 00028 { 00029 } 00030 00031 SharedWorld_(const ContainerAllocator& _alloc) 00032 : senderID(0) 00033 , position(_alloc) 00034 { 00035 } 00036 00037 typedef int32_t _senderID_type; 00038 int32_t senderID; 00039 00040 typedef ::turtlesim::Pose_<ContainerAllocator> _position_type; 00041 ::turtlesim::Pose_<ContainerAllocator> position; 00042 00043 00044 private: 00045 static const char* __s_getDataType_() { return "alica_turtle/SharedWorld"; } 00046 public: 00047 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00048 00049 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00050 00051 private: 00052 static const char* __s_getMD5Sum_() { return "c51b9f82d5bf693de203628949b63080"; } 00053 public: 00054 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00055 00056 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00057 00058 private: 00059 static const char* __s_getMessageDefinition_() { return "int32 senderID\n\ 00060 turtlesim/Pose position\n\ 00061 \n\ 00062 ================================================================================\n\ 00063 MSG: turtlesim/Pose\n\ 00064 float32 x\n\ 00065 float32 y\n\ 00066 float32 theta\n\ 00067 \n\ 00068 float32 linear_velocity\n\ 00069 float32 angular_velocity\n\ 00070 "; } 00071 public: 00072 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00073 00074 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00075 00076 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00077 { 00078 ros::serialization::OStream stream(write_ptr, 1000000000); 00079 ros::serialization::serialize(stream, senderID); 00080 ros::serialization::serialize(stream, position); 00081 return stream.getData(); 00082 } 00083 00084 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00085 { 00086 ros::serialization::IStream stream(read_ptr, 1000000000); 00087 ros::serialization::deserialize(stream, senderID); 00088 ros::serialization::deserialize(stream, position); 00089 return stream.getData(); 00090 } 00091 00092 ROS_DEPRECATED virtual uint32_t serializationLength() const 00093 { 00094 uint32_t size = 0; 00095 size += ros::serialization::serializationLength(senderID); 00096 size += ros::serialization::serializationLength(position); 00097 return size; 00098 } 00099 00100 typedef boost::shared_ptr< ::alica_turtle::SharedWorld_<ContainerAllocator> > Ptr; 00101 typedef boost::shared_ptr< ::alica_turtle::SharedWorld_<ContainerAllocator> const> ConstPtr; 00102 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00103 }; // struct SharedWorld 00104 typedef ::alica_turtle::SharedWorld_<std::allocator<void> > SharedWorld; 00105 00106 typedef boost::shared_ptr< ::alica_turtle::SharedWorld> SharedWorldPtr; 00107 typedef boost::shared_ptr< ::alica_turtle::SharedWorld const> SharedWorldConstPtr; 00108 00109 00110 template<typename ContainerAllocator> 00111 std::ostream& operator<<(std::ostream& s, const ::alica_turtle::SharedWorld_<ContainerAllocator> & v) 00112 { 00113 ros::message_operations::Printer< ::alica_turtle::SharedWorld_<ContainerAllocator> >::stream(s, "", v); 00114 return s;} 00115 00116 } // namespace alica_turtle 00117 00118 namespace ros 00119 { 00120 namespace message_traits 00121 { 00122 template<class ContainerAllocator> struct IsMessage< ::alica_turtle::SharedWorld_<ContainerAllocator> > : public TrueType {}; 00123 template<class ContainerAllocator> struct IsMessage< ::alica_turtle::SharedWorld_<ContainerAllocator> const> : public TrueType {}; 00124 template<class ContainerAllocator> 00125 struct MD5Sum< ::alica_turtle::SharedWorld_<ContainerAllocator> > { 00126 static const char* value() 00127 { 00128 return "c51b9f82d5bf693de203628949b63080"; 00129 } 00130 00131 static const char* value(const ::alica_turtle::SharedWorld_<ContainerAllocator> &) { return value(); } 00132 static const uint64_t static_value1 = 0xc51b9f82d5bf693dULL; 00133 static const uint64_t static_value2 = 0xe203628949b63080ULL; 00134 }; 00135 00136 template<class ContainerAllocator> 00137 struct DataType< ::alica_turtle::SharedWorld_<ContainerAllocator> > { 00138 static const char* value() 00139 { 00140 return "alica_turtle/SharedWorld"; 00141 } 00142 00143 static const char* value(const ::alica_turtle::SharedWorld_<ContainerAllocator> &) { return value(); } 00144 }; 00145 00146 template<class ContainerAllocator> 00147 struct Definition< ::alica_turtle::SharedWorld_<ContainerAllocator> > { 00148 static const char* value() 00149 { 00150 return "int32 senderID\n\ 00151 turtlesim/Pose position\n\ 00152 \n\ 00153 ================================================================================\n\ 00154 MSG: turtlesim/Pose\n\ 00155 float32 x\n\ 00156 float32 y\n\ 00157 float32 theta\n\ 00158 \n\ 00159 float32 linear_velocity\n\ 00160 float32 angular_velocity\n\ 00161 "; 00162 } 00163 00164 static const char* value(const ::alica_turtle::SharedWorld_<ContainerAllocator> &) { return value(); } 00165 }; 00166 00167 template<class ContainerAllocator> struct IsFixedSize< ::alica_turtle::SharedWorld_<ContainerAllocator> > : public TrueType {}; 00168 } // namespace message_traits 00169 } // namespace ros 00170 00171 namespace ros 00172 { 00173 namespace serialization 00174 { 00175 00176 template<class ContainerAllocator> struct Serializer< ::alica_turtle::SharedWorld_<ContainerAllocator> > 00177 { 00178 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00179 { 00180 stream.next(m.senderID); 00181 stream.next(m.position); 00182 } 00183 00184 ROS_DECLARE_ALLINONE_SERIALIZER; 00185 }; // struct SharedWorld_ 00186 } // namespace serialization 00187 } // namespace ros 00188 00189 namespace ros 00190 { 00191 namespace message_operations 00192 { 00193 00194 template<class ContainerAllocator> 00195 struct Printer< ::alica_turtle::SharedWorld_<ContainerAllocator> > 00196 { 00197 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::alica_turtle::SharedWorld_<ContainerAllocator> & v) 00198 { 00199 s << indent << "senderID: "; 00200 Printer<int32_t>::stream(s, indent + " ", v.senderID); 00201 s << indent << "position: "; 00202 s << std::endl; 00203 Printer< ::turtlesim::Pose_<ContainerAllocator> >::stream(s, indent + " ", v.position); 00204 } 00205 }; 00206 00207 00208 } // namespace message_operations 00209 } // namespace ros 00210 00211 #endif // ALICA_TURTLE_MESSAGE_SHAREDWORLD_H 00212