StreamInfo.h
Go to the documentation of this file.
1 // Generated by gencpp from file realsense_msgs/StreamInfo.msg
2 // DO NOT EDIT!
3 
4 
5 #ifndef REALSENSE_MSGS_MESSAGE_STREAMINFO_H
6 #define REALSENSE_MSGS_MESSAGE_STREAMINFO_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 realsense_msgs
20 {
21 template <class ContainerAllocator>
23 {
25 
27  : fps(0)
28  , encoding()
29  , is_recommended(false) {
30  }
31  StreamInfo_(const ContainerAllocator& _alloc)
32  : fps(0)
33  , encoding(_alloc)
34  , is_recommended(false) {
35  (void)_alloc;
36  }
37 
38 
39 
41  _fps_type fps;
42 
43  typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _encoding_type;
44  _encoding_type encoding;
45 
47  _is_recommended_type is_recommended;
48 
49 
50 
51 
52  typedef std::shared_ptr< ::realsense_msgs::StreamInfo_<ContainerAllocator> > Ptr;
53  typedef std::shared_ptr< ::realsense_msgs::StreamInfo_<ContainerAllocator> const> ConstPtr;
54 
55 }; // struct StreamInfo_
56 
57 typedef ::realsense_msgs::StreamInfo_<std::allocator<void> > StreamInfo;
58 
59 typedef std::shared_ptr< ::realsense_msgs::StreamInfo > StreamInfoPtr;
60 typedef std::shared_ptr< ::realsense_msgs::StreamInfo const> StreamInfoConstPtr;
61 
62 // constants requiring out of line definition
63 
64 
65 
66 template<typename ContainerAllocator>
67 std::ostream& operator<<(std::ostream& s, const ::realsense_msgs::StreamInfo_<ContainerAllocator> & v)
68 {
70 return s;
71 }
72 
73 } // namespace realsense_msgs
74 
75 namespace rs2rosinternal
76 {
77 namespace message_traits
78 {
79 
80 
81 
82 // BOOLTRAITS {'IsFixedSize': False, 'IsMessage': True, 'HasHeader': False}
83 // {'sensor_msgs': ['/opt/ros/kinetic/share/sensor_msgs/cmake/../msg'], 'geometry_msgs': ['/opt/ros/kinetic/share/geometry_msgs/cmake/../msg'], 'std_msgs': ['/opt/ros/kinetic/share/std_msgs/cmake/../msg'], 'realsense_msgs': ['/home/zivs/dev/realsense_msg_generator/msg']}
84 
85 // !!!!!!!!!!! ['__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']
86 
87 
88 
89 
90 template <class ContainerAllocator>
91 struct IsFixedSize< ::realsense_msgs::StreamInfo_<ContainerAllocator> >
92  : FalseType
93  { };
94 
95 template <class ContainerAllocator>
96 struct IsFixedSize< ::realsense_msgs::StreamInfo_<ContainerAllocator> const>
97  : FalseType
98  { };
99 
100 template <class ContainerAllocator>
101 struct IsMessage< ::realsense_msgs::StreamInfo_<ContainerAllocator> >
102  : TrueType
103  { };
104 
105 template <class ContainerAllocator>
106 struct IsMessage< ::realsense_msgs::StreamInfo_<ContainerAllocator> const>
107  : TrueType
108  { };
109 
110 template <class ContainerAllocator>
111 struct HasHeader< ::realsense_msgs::StreamInfo_<ContainerAllocator> >
112  : FalseType
113  { };
114 
115 template <class ContainerAllocator>
116 struct HasHeader< ::realsense_msgs::StreamInfo_<ContainerAllocator> const>
117  : FalseType
118  { };
119 
120 
121 template<class ContainerAllocator>
122 struct MD5Sum< ::realsense_msgs::StreamInfo_<ContainerAllocator> >
123 {
124  static const char* value()
125  {
126  return "311d7e24eac31bb87271d041bf70ff7d";
127  }
128 
129  static const char* value(const ::realsense_msgs::StreamInfo_<ContainerAllocator>&) { return value(); }
130  static const uint64_t static_value1 = 0x311d7e24eac31bb8ULL;
131  static const uint64_t static_value2 = 0x7271d041bf70ff7dULL;
132 };
133 
134 template<class ContainerAllocator>
135 struct DataType< ::realsense_msgs::StreamInfo_<ContainerAllocator> >
136 {
137  static const char* value()
138  {
139  return "realsense_msgs/StreamInfo";
140  }
141 
142  static const char* value(const ::realsense_msgs::StreamInfo_<ContainerAllocator>&) { return value(); }
143 };
144 
145 template<class ContainerAllocator>
146 struct Definition< ::realsense_msgs::StreamInfo_<ContainerAllocator> >
147 {
148  static const char* value()
149  {
150  return "# This message defines meta information for a stream\n\
151 # The stream type is expressed in the topic name\n\
152 \n\
153 uint32 fps # The nominal streaming rate, defined in Hz\n\
154 string encoding # Stream's data format\n\
155 bool is_recommended # Is this stream recommended by RealSense SDK\n\
156 ";
157  }
158 
159  static const char* value(const ::realsense_msgs::StreamInfo_<ContainerAllocator>&) { return value(); }
160 };
161 
162 } // namespace message_traits
163 } // namespace rs2rosinternal
164 
165 namespace rs2rosinternal
166 {
167 namespace serialization
168 {
169 
170  template<class ContainerAllocator> struct Serializer< ::realsense_msgs::StreamInfo_<ContainerAllocator> >
171  {
172  template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
173  {
174  stream.next(m.fps);
175  stream.next(m.encoding);
176  stream.next(m.is_recommended);
177  }
178 
180  }; // struct StreamInfo_
181 
182 } // namespace serialization
183 } // namespace rs2rosinternal
184 
185 namespace rs2rosinternal
186 {
187 namespace message_operations
188 {
189 
190 template<class ContainerAllocator>
191 struct Printer< ::realsense_msgs::StreamInfo_<ContainerAllocator> >
192 {
193  template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::realsense_msgs::StreamInfo_<ContainerAllocator>& v)
194  {
195  s << indent << "fps: ";
196  Printer<uint32_t>::stream(s, indent + " ", v.fps);
197  s << indent << "encoding: ";
198  Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.encoding);
199  s << indent << "is_recommended: ";
200  Printer<uint8_t>::stream(s, indent + " ", v.is_recommended);
201  }
202 };
203 
204 } // namespace message_operations
205 } // namespace rs2rosinternal
206 
207 #endif // REALSENSE_MSGS_MESSAGE_STREAMINFO_H
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
std::shared_ptr< ::realsense_msgs::StreamInfo const > StreamInfoConstPtr
Definition: StreamInfo.h:60
Specialize to provide the md5sum for a message.
StreamInfo_< ContainerAllocator > Type
Definition: StreamInfo.h:24
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
unsigned char uint8_t
Definition: stdint.h:78
A fixed-size datatype is one whose size is constant, i.e. it has no variable-length arrays or strings...
Stream base-class, provides common functionality for IStream and OStream.
static const char * value(const ::realsense_msgs::StreamInfo_< ContainerAllocator > &)
Definition: StreamInfo.h:142
StreamInfo_(const ContainerAllocator &_alloc)
Definition: StreamInfo.h:31
std::shared_ptr< ::realsense_msgs::StreamInfo > StreamInfoPtr
Definition: StreamInfo.h:59
unsigned int uint32_t
Definition: stdint.h:80
static const char * value(const ::realsense_msgs::StreamInfo_< ContainerAllocator > &)
Definition: StreamInfo.h:129
#define ROS_DECLARE_ALLINONE_SERIALIZER
Declare your serializer to use an allInOne member instead of requiring 3 different serialization func...
unsigned __int64 uint64_t
Definition: stdint.h:90
Specialize to provide the definition for a message.
std::basic_string< char, std::char_traits< char >, typename ContainerAllocator::template rebind< char >::other > _encoding_type
Definition: StreamInfo.h:43
std::shared_ptr< ::realsense_msgs::StreamInfo_< ContainerAllocator > const > ConstPtr
Definition: StreamInfo.h:53
static const char * value(const ::realsense_msgs::StreamInfo_< ContainerAllocator > &)
Definition: StreamInfo.h:159
_is_recommended_type is_recommended
Definition: StreamInfo.h:47
_encoding_type encoding
Definition: StreamInfo.h:44
Templated serialization class. Default implementation provides backwards compatibility with old messa...
static void stream(Stream &s, const std::string &indent, const ::realsense_msgs::StreamInfo_< ContainerAllocator > &v)
Definition: StreamInfo.h:193
GLdouble v
std::shared_ptr< ::realsense_msgs::StreamInfo_< ContainerAllocator > > Ptr
Definition: StreamInfo.h:52
::realsense_msgs::StreamInfo_< std::allocator< void > > StreamInfo
Definition: StreamInfo.h:57


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