ColorRGBA.h
Go to the documentation of this file.
1 // Generated by gencpp from file std_msgs/ColorRGBA.msg
2 // DO NOT EDIT!
3 
4 
5 #ifndef STD_MSGS_MESSAGE_COLORRGBA_H
6 #define STD_MSGS_MESSAGE_COLORRGBA_H
7 
8 
9 #include <string>
10 #include <vector>
11 #include <map>
12 
13 #include <ros/types.h>
14 #include <ros/serialization.h>
16 #include <ros/message_operations.h>
17 
18 
19 namespace std_msgs
20 {
21 template <class ContainerAllocator>
22 struct ColorRGBA_
23 {
25 
27  : r(0.0)
28  , g(0.0)
29  , b(0.0)
30  , a(0.0) {
31  }
32  ColorRGBA_(const ContainerAllocator& _alloc)
33  : r(0.0)
34  , g(0.0)
35  , b(0.0)
36  , a(0.0) {
37  (void)_alloc;
38  }
39 
40 
41 
42  typedef float _r_type;
43  _r_type r;
44 
45  typedef float _g_type;
46  _g_type g;
47 
48  typedef float _b_type;
49  _b_type b;
50 
51  typedef float _a_type;
52  _a_type a;
53 
54 
55 
56 
59 
60 }; // struct ColorRGBA_
61 
62 typedef ::std_msgs::ColorRGBA_<std::allocator<void> > ColorRGBA;
63 
66 
67 // constants requiring out of line definition
68 
69 
70 
71 template<typename ContainerAllocator>
72 std::ostream& operator<<(std::ostream& s, const ::std_msgs::ColorRGBA_<ContainerAllocator> & v)
73 {
75 return s;
76 }
77 
78 } // namespace std_msgs
79 
80 namespace rs2rosinternal
81 {
82 namespace message_traits
83 {
84 
85 
86 
87 // BOOLTRAITS {'IsFixedSize': True, 'IsMessage': True, 'HasHeader': False}
88 // {'std_msgs': ['/tmp/binarydeb/ros-kinetic-std-msgs-0.5.10/msg']}
89 
90 // !!!!!!!!!!! ['__class__', '__delattr__', '__dict__', '__doc__', '__eq__', '__format__', '__getattribute__', '__hash__', '__init__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_parsed_fields', 'constants', 'fields', 'full_name', 'has_header', 'header_present', 'names', 'package', 'parsed_fields', 'short_name', 'text', 'types']
91 
92 
93 
94 
95 template <class ContainerAllocator>
96 struct IsFixedSize< ::std_msgs::ColorRGBA_<ContainerAllocator> >
97  : TrueType
98  { };
99 
100 template <class ContainerAllocator>
101 struct IsFixedSize< ::std_msgs::ColorRGBA_<ContainerAllocator> const>
102  : TrueType
103  { };
104 
105 template <class ContainerAllocator>
106 struct IsMessage< ::std_msgs::ColorRGBA_<ContainerAllocator> >
107  : TrueType
108  { };
109 
110 template <class ContainerAllocator>
111 struct IsMessage< ::std_msgs::ColorRGBA_<ContainerAllocator> const>
112  : TrueType
113  { };
114 
115 template <class ContainerAllocator>
116 struct HasHeader< ::std_msgs::ColorRGBA_<ContainerAllocator> >
117  : FalseType
118  { };
119 
120 template <class ContainerAllocator>
121 struct HasHeader< ::std_msgs::ColorRGBA_<ContainerAllocator> const>
122  : FalseType
123  { };
124 
125 
126 template<class ContainerAllocator>
127 struct MD5Sum< ::std_msgs::ColorRGBA_<ContainerAllocator> >
128 {
129  static const char* value()
130  {
131  return "a29a96539573343b1310c73607334b00";
132  }
133 
134  static const char* value(const ::std_msgs::ColorRGBA_<ContainerAllocator>&) { return value(); }
135  static const uint64_t static_value1 = 0xa29a96539573343bULL;
136  static const uint64_t static_value2 = 0x1310c73607334b00ULL;
137 };
138 
139 template<class ContainerAllocator>
140 struct DataType< ::std_msgs::ColorRGBA_<ContainerAllocator> >
141 {
142  static const char* value()
143  {
144  return "std_msgs/ColorRGBA";
145  }
146 
147  static const char* value(const ::std_msgs::ColorRGBA_<ContainerAllocator>&) { return value(); }
148 };
149 
150 template<class ContainerAllocator>
151 struct Definition< ::std_msgs::ColorRGBA_<ContainerAllocator> >
152 {
153  static const char* value()
154  {
155  return "float32 r\n\
156 float32 g\n\
157 float32 b\n\
158 float32 a\n\
159 ";
160  }
161 
162  static const char* value(const ::std_msgs::ColorRGBA_<ContainerAllocator>&) { return value(); }
163 };
164 
165 } // namespace message_traits
166 } // namespace rs2rosinternal
167 
168 namespace rs2rosinternal
169 {
170 namespace serialization
171 {
172 
173  template<class ContainerAllocator> struct Serializer< ::std_msgs::ColorRGBA_<ContainerAllocator> >
174  {
175  template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
176  {
177  stream.next(m.r);
178  stream.next(m.g);
179  stream.next(m.b);
180  stream.next(m.a);
181  }
182 
184  }; // struct ColorRGBA_
185 
186 } // namespace serialization
187 } // namespace rs2rosinternal
188 
189 namespace rs2rosinternal
190 {
191 namespace message_operations
192 {
193 
194 template<class ContainerAllocator>
195 struct Printer< ::std_msgs::ColorRGBA_<ContainerAllocator> >
196 {
197  template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::std_msgs::ColorRGBA_<ContainerAllocator>& v)
198  {
199  s << indent << "r: ";
200  Printer<float>::stream(s, indent + " ", v.r);
201  s << indent << "g: ";
202  Printer<float>::stream(s, indent + " ", v.g);
203  s << indent << "b: ";
204  Printer<float>::stream(s, indent + " ", v.b);
205  s << indent << "a: ";
206  Printer<float>::stream(s, indent + " ", v.a);
207  }
208 };
209 
210 } // namespace message_operations
211 } // namespace rs2rosinternal
212 
213 #endif // STD_MSGS_MESSAGE_COLORRGBA_H
GLboolean GLboolean GLboolean b
GLboolean GLboolean g
typedef void(APIENTRY *GLDEBUGPROC)(GLenum source
Base type for compile-type true/false tests. Compatible with Boost.MPL. classes inheriting from this ...
GLdouble s
const GLfloat * m
Definition: glext.h:6814
Specialize to provide the md5sum for a message.
::std_msgs::ColorRGBA_< std::allocator< void > > ColorRGBA
Definition: ColorRGBA.h:62
Base type for compile-type true/false tests. Compatible with Boost.MPL. classes inheriting from this ...
GLsizei const GLchar *const * string
Specialize to provide the datatype for a message.
HasHeader informs whether or not there is a header that gets serialized as the first thing in the mes...
GLuint GLuint stream
Definition: glext.h:1790
ColorRGBA_< ContainerAllocator > Type
Definition: ColorRGBA.h:24
boost::shared_ptr< ::std_msgs::ColorRGBA const > ColorRGBAConstPtr
Definition: ColorRGBA.h:65
A fixed-size datatype is one whose size is constant, i.e. it has no variable-length arrays or strings...
GLboolean GLboolean GLboolean GLboolean a
Stream base-class, provides common functionality for IStream and OStream.
GLdouble GLdouble r
static const char * value(const ::std_msgs::ColorRGBA_< ContainerAllocator > &)
Definition: ColorRGBA.h:162
#define ROS_DECLARE_ALLINONE_SERIALIZER
Declare your serializer to use an allInOne member instead of requiring 3 different serialization func...
Definition: Bool.h:19
unsigned __int64 uint64_t
Definition: stdint.h:90
Specialize to provide the definition for a message.
static void stream(Stream &s, const std::string &indent, const ::std_msgs::ColorRGBA_< ContainerAllocator > &v)
Definition: ColorRGBA.h:197
boost::shared_ptr< ::std_msgs::ColorRGBA_< ContainerAllocator > const > ConstPtr
Definition: ColorRGBA.h:58
static const char * value(const ::std_msgs::ColorRGBA_< ContainerAllocator > &)
Definition: ColorRGBA.h:134
boost::shared_ptr< ::std_msgs::ColorRGBA > ColorRGBAPtr
Definition: ColorRGBA.h:64
boost::shared_ptr< ::std_msgs::ColorRGBA_< ContainerAllocator > > Ptr
Definition: ColorRGBA.h:57
Templated serialization class. Default implementation provides backwards compatibility with old messa...
ColorRGBA_(const ContainerAllocator &_alloc)
Definition: ColorRGBA.h:32
static const char * value(const ::std_msgs::ColorRGBA_< ContainerAllocator > &)
Definition: ColorRGBA.h:147
GLdouble v


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:47:11