controller_vendor_data.h
Go to the documentation of this file.
1 // Generated by gencpp from file realsense_legacy_msgs/controller_vendor_data.msg
2 // DO NOT EDIT!
3 
4 
5 #ifndef realsense_legacy_msgs_MESSAGE_CONTROLLER_VENDOR_DATA_H
6 #define realsense_legacy_msgs_MESSAGE_CONTROLLER_VENDOR_DATA_H
7 
8 
9 #include <string>
10 #include <vector>
11 #include <array>
12 #include <map>
13 
14 #include <ros/types.h>
15 #include <ros/serialization.h>
17 #include <ros/message_operations.h>
18 
19 
20 namespace realsense_legacy_msgs
21 {
22 template <class ContainerAllocator>
24 {
26 
28  : controller_id(0)
31  , data()
32  , timestamp() {
33  data.fill(0);
34  }
35  controller_vendor_data_(const ContainerAllocator& _alloc)
36  : controller_id(0)
39  , data()
40  , timestamp() {
41  (void)_alloc;
42  data.fill(0);
43  }
44 
45 
46 
48  _controller_id_type controller_id;
49 
51  _vendor_data_source_type_type vendor_data_source_type;
52 
54  _vendor_data_source_index_type vendor_data_source_index;
55 
56  typedef std::array<uint8_t, 6> _data_type;
57  _data_type data;
58 
60  _timestamp_type timestamp;
61 
62 
63 
64 
65  typedef std::shared_ptr< ::realsense_legacy_msgs::controller_vendor_data_<ContainerAllocator> > Ptr;
66  typedef std::shared_ptr< ::realsense_legacy_msgs::controller_vendor_data_<ContainerAllocator> const> ConstPtr;
67 
68 }; // struct controller_vendor_data_
69 
70 typedef ::realsense_legacy_msgs::controller_vendor_data_<std::allocator<void> > controller_vendor_data;
71 
72 typedef std::shared_ptr< ::realsense_legacy_msgs::controller_vendor_data > controller_vendor_dataPtr;
73 typedef std::shared_ptr< ::realsense_legacy_msgs::controller_vendor_data const> controller_vendor_dataConstPtr;
74 
75 // constants requiring out of line definition
76 
77 
78 
79 template<typename ContainerAllocator>
80 std::ostream& operator<<(std::ostream& s, const ::realsense_legacy_msgs::controller_vendor_data_<ContainerAllocator> & v)
81 {
83 return s;
84 }
85 
86 } // namespace realsense_legacy_msgs
87 
88 namespace rs2rosinternal
89 {
90 namespace message_traits
91 {
92 
93 
94 
95 // BOOLTRAITS {'IsFixedSize': True, 'IsMessage': True, 'HasHeader': False}
96 // {'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_legacy_msgs': ['/home/administrator/intelrealsense/realsense_sdk_internal/sdk_internal/tools/realsense_legacy_msgs_generator/msg']}
97 
98 // !!!!!!!!!!! ['__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']
99 
100 
101 
102 
103 template <class ContainerAllocator>
105  : TrueType
106  { };
107 
108 template <class ContainerAllocator>
110  : TrueType
111  { };
112 
113 template <class ContainerAllocator>
115  : TrueType
116  { };
117 
118 template <class ContainerAllocator>
119 struct IsMessage< ::realsense_legacy_msgs::controller_vendor_data_<ContainerAllocator> const>
120  : TrueType
121  { };
122 
123 template <class ContainerAllocator>
125  : FalseType
126  { };
127 
128 template <class ContainerAllocator>
129 struct HasHeader< ::realsense_legacy_msgs::controller_vendor_data_<ContainerAllocator> const>
130  : FalseType
131  { };
132 
133 
134 template<class ContainerAllocator>
136 {
137  static const char* value()
138  {
139  return "fdbc8d91ea453b9330369b2123cc9304";
140  }
141 
142  static const char* value(const ::realsense_legacy_msgs::controller_vendor_data_<ContainerAllocator>&) { return value(); }
143  static const uint64_t static_value1 = 0xfdbc8d91ea453b93ULL;
144  static const uint64_t static_value2 = 0x30369b2123cc9304ULL;
145 };
146 
147 template<class ContainerAllocator>
149 {
150  static const char* value()
151  {
152  return "realsense_legacy_msgs/controller_vendor_data";
153  }
154 
155  static const char* value(const ::realsense_legacy_msgs::controller_vendor_data_<ContainerAllocator>&) { return value(); }
156 };
157 
158 template<class ContainerAllocator>
160 {
161  static const char* value()
162  {
163  return "uint8 controller_id\n\
164 uint8 vendor_data_source_type\n\
165 uint8 vendor_data_source_index\n\
166 uint8[6] data\n\
167 time timestamp\n\
168 ";
169  }
170 
171  static const char* value(const ::realsense_legacy_msgs::controller_vendor_data_<ContainerAllocator>&) { return value(); }
172 };
173 
174 } // namespace message_traits
175 } // namespace rs2rosinternal
176 
177 namespace rs2rosinternal
178 {
179 namespace serialization
180 {
181 
182  template<class ContainerAllocator> struct Serializer< ::realsense_legacy_msgs::controller_vendor_data_<ContainerAllocator> >
183  {
184  template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
185  {
186  stream.next(m.controller_id);
187  stream.next(m.vendor_data_source_type);
188  stream.next(m.vendor_data_source_index);
189  stream.next(m.data);
190  stream.next(m.timestamp);
191  }
192 
194  }; // struct controller_vendor_data_
195 
196 } // namespace serialization
197 } // namespace rs2rosinternal
198 
199 namespace rs2rosinternal
200 {
201 namespace message_operations
202 {
203 
204 template<class ContainerAllocator>
206 {
207  template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::realsense_legacy_msgs::controller_vendor_data_<ContainerAllocator>& v)
208  {
209  s << indent << "controller_id: ";
210  Printer<uint8_t>::stream(s, indent + " ", v.controller_id);
211  s << indent << "vendor_data_source_type: ";
212  Printer<uint8_t>::stream(s, indent + " ", v.vendor_data_source_type);
213  s << indent << "vendor_data_source_index: ";
214  Printer<uint8_t>::stream(s, indent + " ", v.vendor_data_source_index);
215  s << indent << "data[]" << std::endl;
216  for (size_t i = 0; i < v.data.size(); ++i)
217  {
218  s << indent << " data[" << i << "]: ";
219  Printer<uint8_t>::stream(s, indent + " ", v.data[i]);
220  }
221  s << indent << "timestamp: ";
222  Printer<rs2rosinternal::Time>::stream(s, indent + " ", v.timestamp);
223  }
224 };
225 
226 } // namespace message_operations
227 } // namespace rs2rosinternal
228 
229 #endif // realsense_legacy_msgs_MESSAGE_CONTROLLER_VENDOR_DATA_H
::realsense_legacy_msgs::controller_vendor_data_< std::allocator< void > > controller_vendor_data
static const char * value(const ::realsense_legacy_msgs::controller_vendor_data_< ContainerAllocator > &)
controller_vendor_data_(const ContainerAllocator &_alloc)
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::shared_ptr< ::realsense_legacy_msgs::controller_vendor_data_< ContainerAllocator > const > ConstPtr
_vendor_data_source_index_type vendor_data_source_index
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...
std::shared_ptr< ::realsense_legacy_msgs::controller_vendor_data_< ContainerAllocator > > Ptr
std::shared_ptr< ::realsense_legacy_msgs::controller_vendor_data > controller_vendor_dataPtr
Stream base-class, provides common functionality for IStream and OStream.
std::shared_ptr< ::realsense_legacy_msgs::controller_vendor_data const > controller_vendor_dataConstPtr
Time representation. May either represent wall clock time or ROS clock time.
Definition: time.h:177
#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.
controller_vendor_data_< ContainerAllocator > Type
static const char * value(const ::realsense_legacy_msgs::controller_vendor_data_< ContainerAllocator > &)
static const char * value(const ::realsense_legacy_msgs::controller_vendor_data_< ContainerAllocator > &)
int i
Templated serialization class. Default implementation provides backwards compatibility with old messa...
GLdouble v
static void stream(Stream &s, const std::string &indent, const ::realsense_legacy_msgs::controller_vendor_data_< ContainerAllocator > &v)
Definition: parser.hpp:150


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