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