00001
00002 #ifndef TEST_ROS_MESSAGE_COMPOSITE_H
00003 #define TEST_ROS_MESSAGE_COMPOSITE_H
00004 #include <string>
00005 #include <vector>
00006 #include <ostream>
00007 #include "ros/serialization.h"
00008 #include "ros/builtin_message_traits.h"
00009 #include "ros/message_operations.h"
00010 #include "ros/message.h"
00011 #include "ros/time.h"
00012
00013 #include "test_ros/CompositeA.h"
00014 #include "test_ros/CompositeB.h"
00015
00016 namespace test_ros
00017 {
00018 template <class ContainerAllocator>
00019 struct Composite_ : public ros::Message
00020 {
00021 typedef Composite_<ContainerAllocator> Type;
00022
00023 Composite_()
00024 : a()
00025 , b()
00026 {
00027 }
00028
00029 Composite_(const ContainerAllocator& _alloc)
00030 : a(_alloc)
00031 , b(_alloc)
00032 {
00033 }
00034
00035 typedef ::test_ros::CompositeA_<ContainerAllocator> _a_type;
00036 ::test_ros::CompositeA_<ContainerAllocator> a;
00037
00038 typedef ::test_ros::CompositeB_<ContainerAllocator> _b_type;
00039 ::test_ros::CompositeB_<ContainerAllocator> b;
00040
00041
00042 private:
00043 static const char* __s_getDataType_() { return "test_ros/Composite"; }
00044 public:
00045 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00046
00047 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00048
00049 private:
00050 static const char* __s_getMD5Sum_() { return "d8fb6eb869ad3956b50e8737d96dc9fa"; }
00051 public:
00052 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00053
00054 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00055
00056 private:
00057 static const char* __s_getMessageDefinition_() { return "# composite message. required for testing import calculation in generators\n\
00058 CompositeA a\n\
00059 CompositeB b\n\
00060 \n\
00061 ================================================================================\n\
00062 MSG: test_ros/CompositeA\n\
00063 # This represents an orientation in free space in quaternion form.\n\
00064 \n\
00065 float64 x\n\
00066 float64 y\n\
00067 float64 z\n\
00068 float64 w\n\
00069 \n\
00070 ================================================================================\n\
00071 MSG: test_ros/CompositeB\n\
00072 # copy of geometry_msgs/Point for testing\n\
00073 float64 x\n\
00074 float64 y\n\
00075 float64 z\n\
00076 \n\
00077 "; }
00078 public:
00079 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00080
00081 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00082
00083 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00084 {
00085 ros::serialization::OStream stream(write_ptr, 1000000000);
00086 ros::serialization::serialize(stream, a);
00087 ros::serialization::serialize(stream, b);
00088 return stream.getData();
00089 }
00090
00091 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00092 {
00093 ros::serialization::IStream stream(read_ptr, 1000000000);
00094 ros::serialization::deserialize(stream, a);
00095 ros::serialization::deserialize(stream, b);
00096 return stream.getData();
00097 }
00098
00099 ROS_DEPRECATED virtual uint32_t serializationLength() const
00100 {
00101 uint32_t size = 0;
00102 size += ros::serialization::serializationLength(a);
00103 size += ros::serialization::serializationLength(b);
00104 return size;
00105 }
00106
00107 typedef boost::shared_ptr< ::test_ros::Composite_<ContainerAllocator> > Ptr;
00108 typedef boost::shared_ptr< ::test_ros::Composite_<ContainerAllocator> const> ConstPtr;
00109 };
00110 typedef ::test_ros::Composite_<std::allocator<void> > Composite;
00111
00112 typedef boost::shared_ptr< ::test_ros::Composite> CompositePtr;
00113 typedef boost::shared_ptr< ::test_ros::Composite const> CompositeConstPtr;
00114
00115
00116 template<typename ContainerAllocator>
00117 std::ostream& operator<<(std::ostream& s, const ::test_ros::Composite_<ContainerAllocator> & v)
00118 {
00119 ros::message_operations::Printer< ::test_ros::Composite_<ContainerAllocator> >::stream(s, "", v);
00120 return s;}
00121
00122 }
00123
00124 namespace ros
00125 {
00126 namespace message_traits
00127 {
00128 template<class ContainerAllocator>
00129 struct MD5Sum< ::test_ros::Composite_<ContainerAllocator> > {
00130 static const char* value()
00131 {
00132 return "d8fb6eb869ad3956b50e8737d96dc9fa";
00133 }
00134
00135 static const char* value(const ::test_ros::Composite_<ContainerAllocator> &) { return value(); }
00136 static const uint64_t static_value1 = 0xd8fb6eb869ad3956ULL;
00137 static const uint64_t static_value2 = 0xb50e8737d96dc9faULL;
00138 };
00139
00140 template<class ContainerAllocator>
00141 struct DataType< ::test_ros::Composite_<ContainerAllocator> > {
00142 static const char* value()
00143 {
00144 return "test_ros/Composite";
00145 }
00146
00147 static const char* value(const ::test_ros::Composite_<ContainerAllocator> &) { return value(); }
00148 };
00149
00150 template<class ContainerAllocator>
00151 struct Definition< ::test_ros::Composite_<ContainerAllocator> > {
00152 static const char* value()
00153 {
00154 return "# composite message. required for testing import calculation in generators\n\
00155 CompositeA a\n\
00156 CompositeB b\n\
00157 \n\
00158 ================================================================================\n\
00159 MSG: test_ros/CompositeA\n\
00160 # This represents an orientation in free space in quaternion form.\n\
00161 \n\
00162 float64 x\n\
00163 float64 y\n\
00164 float64 z\n\
00165 float64 w\n\
00166 \n\
00167 ================================================================================\n\
00168 MSG: test_ros/CompositeB\n\
00169 # copy of geometry_msgs/Point for testing\n\
00170 float64 x\n\
00171 float64 y\n\
00172 float64 z\n\
00173 \n\
00174 ";
00175 }
00176
00177 static const char* value(const ::test_ros::Composite_<ContainerAllocator> &) { return value(); }
00178 };
00179
00180 template<class ContainerAllocator> struct IsFixedSize< ::test_ros::Composite_<ContainerAllocator> > : public TrueType {};
00181 }
00182 }
00183
00184 namespace ros
00185 {
00186 namespace serialization
00187 {
00188
00189 template<class ContainerAllocator> struct Serializer< ::test_ros::Composite_<ContainerAllocator> >
00190 {
00191 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00192 {
00193 stream.next(m.a);
00194 stream.next(m.b);
00195 }
00196
00197 ROS_DECLARE_ALLINONE_SERIALIZER;
00198 };
00199 }
00200 }
00201
00202 namespace ros
00203 {
00204 namespace message_operations
00205 {
00206
00207 template<class ContainerAllocator>
00208 struct Printer< ::test_ros::Composite_<ContainerAllocator> >
00209 {
00210 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::test_ros::Composite_<ContainerAllocator> & v)
00211 {
00212 s << indent << "a: ";
00213 s << std::endl;
00214 Printer< ::test_ros::CompositeA_<ContainerAllocator> >::stream(s, indent + " ", v.a);
00215 s << indent << "b: ";
00216 s << std::endl;
00217 Printer< ::test_ros::CompositeB_<ContainerAllocator> >::stream(s, indent + " ", v.b);
00218 }
00219 };
00220
00221
00222 }
00223 }
00224
00225 #endif // TEST_ROS_MESSAGE_COMPOSITE_H
00226