controller_event.h
Go to the documentation of this file.
1 // Generated by gencpp from file realsense_legacy_msgs/controller_event.msg
2 // DO NOT EDIT!
3 
4 
5 #ifndef realsense_legacy_msgs_MESSAGE_CONTROLLER_EVENT_H
6 #define realsense_legacy_msgs_MESSAGE_CONTROLLER_EVENT_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)
29  , type(0)
30  , mac_address()
31  , timestamp() {
32  mac_address.fill(0);
33  }
34  controller_event_(const ContainerAllocator& _alloc)
35  : controller_id(0)
36  , type(0)
37  , mac_address()
38  , timestamp() {
39  (void)_alloc;
40  mac_address.fill(0);
41  }
42 
43 
44 
46  _controller_id_type controller_id;
47 
49  _type_type type;
50 
51  typedef std::array<uint8_t, 6> _mac_address_type;
52  _mac_address_type mac_address;
53 
55  _timestamp_type timestamp;
56 
57 
58 
59 
60  typedef std::shared_ptr< ::realsense_legacy_msgs::controller_event_<ContainerAllocator> > Ptr;
61  typedef std::shared_ptr< ::realsense_legacy_msgs::controller_event_<ContainerAllocator> const> ConstPtr;
62 
63 }; // struct controller_event_
64 
65 typedef ::realsense_legacy_msgs::controller_event_<std::allocator<void> > controller_event;
66 
67 typedef std::shared_ptr< ::realsense_legacy_msgs::controller_event > controller_eventPtr;
68 typedef std::shared_ptr< ::realsense_legacy_msgs::controller_event const> controller_eventConstPtr;
69 
70 // constants requiring out of line definition
71 
72 
73 
74 template<typename ContainerAllocator>
75 std::ostream& operator<<(std::ostream& s, const ::realsense_legacy_msgs::controller_event_<ContainerAllocator> & v)
76 {
78 return s;
79 }
80 
81 } // namespace realsense_legacy_msgs
82 
83 namespace rs2rosinternal
84 {
85 namespace message_traits
86 {
87 
88 
89 
90 // BOOLTRAITS {'IsFixedSize': True, 'IsMessage': True, 'HasHeader': False}
91 // {'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']}
92 
93 // !!!!!!!!!!! ['__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']
94 
95 
96 
97 
98 template <class ContainerAllocator>
100  : TrueType
101  { };
102 
103 template <class ContainerAllocator>
104 struct IsFixedSize< ::realsense_legacy_msgs::controller_event_<ContainerAllocator> const>
105  : TrueType
106  { };
107 
108 template <class ContainerAllocator>
110  : TrueType
111  { };
112 
113 template <class ContainerAllocator>
114 struct IsMessage< ::realsense_legacy_msgs::controller_event_<ContainerAllocator> const>
115  : TrueType
116  { };
117 
118 template <class ContainerAllocator>
120  : FalseType
121  { };
122 
123 template <class ContainerAllocator>
124 struct HasHeader< ::realsense_legacy_msgs::controller_event_<ContainerAllocator> const>
125  : FalseType
126  { };
127 
128 
129 template<class ContainerAllocator>
130 struct MD5Sum< ::realsense_legacy_msgs::controller_event_<ContainerAllocator> >
131 {
132  static const char* value()
133  {
134  return "2cbcc2243504f0f4d13d886a9bafd85f";
135  }
136 
137  static const char* value(const ::realsense_legacy_msgs::controller_event_<ContainerAllocator>&) { return value(); }
138  static const uint64_t static_value1 = 0x2cbcc2243504f0f4ULL;
139  static const uint64_t static_value2 = 0xd13d886a9bafd85fULL;
140 };
141 
142 template<class ContainerAllocator>
143 struct DataType< ::realsense_legacy_msgs::controller_event_<ContainerAllocator> >
144 {
145  static const char* value()
146  {
147  return "realsense_legacy_msgs/controller_event";
148  }
149 
150  static const char* value(const ::realsense_legacy_msgs::controller_event_<ContainerAllocator>&) { return value(); }
151 };
152 
153 template<class ContainerAllocator>
155 {
156  static const char* value()
157  {
158  return "uint8 controller_id\n\
159 uint32 type\n\
160 uint8[6] mac_address\n\
161 time timestamp\n\
162 ";
163  }
164 
165  static const char* value(const ::realsense_legacy_msgs::controller_event_<ContainerAllocator>&) { return value(); }
166 };
167 
168 } // namespace message_traits
169 } // namespace rs2rosinternal
170 
171 namespace rs2rosinternal
172 {
173 namespace serialization
174 {
175 
176  template<class ContainerAllocator> struct Serializer< ::realsense_legacy_msgs::controller_event_<ContainerAllocator> >
177  {
178  template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
179  {
180  stream.next(m.controller_id);
181  stream.next(m.type);
182  stream.next(m.mac_address);
183  stream.next(m.timestamp);
184  }
185 
187  }; // struct controller_event_
188 
189 } // namespace serialization
190 } // namespace rs2rosinternal
191 
192 namespace rs2rosinternal
193 {
194 namespace message_operations
195 {
196 
197 template<class ContainerAllocator>
198 struct Printer< ::realsense_legacy_msgs::controller_event_<ContainerAllocator> >
199 {
200  template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::realsense_legacy_msgs::controller_event_<ContainerAllocator>& v)
201  {
202  s << indent << "controller_id: ";
203  Printer<uint8_t>::stream(s, indent + " ", v.controller_id);
204  s << indent << "type: ";
205  Printer<uint32_t>::stream(s, indent + " ", v.type);
206  s << indent << "mac_address[]" << std::endl;
207  for (size_t i = 0; i < v.mac_address.size(); ++i)
208  {
209  s << indent << " mac_address[" << i << "]: ";
210  Printer<uint8_t>::stream(s, indent + " ", v.mac_address[i]);
211  }
212  s << indent << "timestamp: ";
213  Printer<rs2rosinternal::Time>::stream(s, indent + " ", v.timestamp);
214  }
215 };
216 
217 } // namespace message_operations
218 } // namespace rs2rosinternal
219 
220 #endif // realsense_legacy_msgs_MESSAGE_CONTROLLER_EVENT_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
std::array< uint8_t, 6 > _mac_address_type
Specialize to provide the md5sum for a message.
std::mutex m
def indent(str, line_prefix=' ')
Definition: log.py:88
Base type for compile-type true/false tests. Compatible with Boost.MPL. classes inheriting from this ...
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...
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...
static void stream(Stream &s, const std::string &indent, const ::realsense_legacy_msgs::controller_event_< ContainerAllocator > &v)
Stream base-class, provides common functionality for IStream and OStream.
std::shared_ptr< ::realsense_legacy_msgs::controller_event const > controller_eventConstPtr
unsigned int uint32_t
Definition: stdint.h:80
std::shared_ptr< ::realsense_legacy_msgs::controller_event_< ContainerAllocator > const > ConstPtr
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.
GLenum type
controller_event_< ContainerAllocator > Type
::realsense_legacy_msgs::controller_event_< std::allocator< void > > controller_event
std::shared_ptr< ::realsense_legacy_msgs::controller_event_< ContainerAllocator > > Ptr
static const char * value(const ::realsense_legacy_msgs::controller_event_< ContainerAllocator > &)
int i
Templated serialization class. Default implementation provides backwards compatibility with old messa...
static const char * value(const ::realsense_legacy_msgs::controller_event_< ContainerAllocator > &)
GLdouble v
controller_event_(const ContainerAllocator &_alloc)
static const char * value(const ::realsense_legacy_msgs::controller_event_< ContainerAllocator > &)
std::shared_ptr< ::realsense_legacy_msgs::controller_event > controller_eventPtr


librealsense2
Author(s): LibRealSense ROS Team
autogenerated on Thu Dec 22 2022 03:43:16