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 
47 
50 
51  typedef std::array<uint8_t, 6> _mac_address_type;
53 
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
realsense_legacy_msgs::controller_eventConstPtr
std::shared_ptr< ::realsense_legacy_msgs::controller_event const > controller_eventConstPtr
Definition: controller_event.h:68
uint8_t
unsigned char uint8_t
Definition: stdint.h:78
rs2rosinternal::Time
Time representation. May either represent wall clock time or ROS clock time.
Definition: time.h:215
rs2rosinternal::message_traits::TrueType
Base type for compile-type true/false tests. Compatible with Boost.MPL. classes inheriting from this ...
Definition: message_traits.h:79
realsense_legacy_msgs::operator<<
std::ostream & operator<<(std::ostream &s, const ::realsense_legacy_msgs::compressed_frame_info_< ContainerAllocator > &v)
Definition: compressed_frame_info.h:88
realsense_legacy_msgs::controller_event_::controller_event_
controller_event_(const ContainerAllocator &_alloc)
Definition: controller_event.h:34
v
GLdouble v
Definition: glad/glad/glad.h:2144
realsense_legacy_msgs::controller_event
::realsense_legacy_msgs::controller_event_< std::allocator< void > > controller_event
Definition: controller_event.h:65
void
typedef void(APIENTRY *GLDEBUGPROC)(GLenum source
rs2rosinternal::message_traits::Definition< ::realsense_legacy_msgs::controller_event_< ContainerAllocator > >::value
static const char * value()
Definition: controller_event.h:156
rs2rosinternal::message_traits::IsFixedSize
A fixed-size datatype is one whose size is constant, i.e. it has no variable-length arrays or strings...
Definition: message_traits.h:103
realsense_legacy_msgs::controller_event_::_controller_id_type
uint8_t _controller_id_type
Definition: controller_event.h:45
realsense_legacy_msgs::controller_event_::_mac_address_type
std::array< uint8_t, 6 > _mac_address_type
Definition: controller_event.h:51
rs2rosinternal
Definition: datatypes.h:40
rs2rosinternal::message_traits::DataType< ::realsense_legacy_msgs::controller_event_< ContainerAllocator > >::value
static const char * value(const ::realsense_legacy_msgs::controller_event_< ContainerAllocator > &)
Definition: controller_event.h:150
rs2rosinternal::message_operations::Printer< ::realsense_legacy_msgs::controller_event_< ContainerAllocator > >::stream
static void stream(Stream &s, const std::string &indent, const ::realsense_legacy_msgs::controller_event_< ContainerAllocator > &v)
Definition: controller_event.h:200
type
GLenum type
Definition: glad/glad/glad.h:135
serialization.h
rs2rosinternal::message_traits::IsMessage
Am I message or not.
Definition: message_traits.h:112
m
std::mutex m
Definition: test-waiting-on.cpp:124
realsense_legacy_msgs::controller_event_::type
_type_type type
Definition: controller_event.h:49
builtin_message_traits.h
uint32_t
unsigned int uint32_t
Definition: stdint.h:80
realsense_legacy_msgs::controller_event_::Ptr
std::shared_ptr< ::realsense_legacy_msgs::controller_event_< ContainerAllocator > > Ptr
Definition: controller_event.h:60
rs2rosinternal::serialization::Serializer< ::realsense_legacy_msgs::controller_event_< ContainerAllocator > >::allInOne
static void allInOne(Stream &stream, T m)
Definition: controller_event.h:178
realsense_legacy_msgs::controller_event_::ConstPtr
std::shared_ptr< ::realsense_legacy_msgs::controller_event_< ContainerAllocator > const > ConstPtr
Definition: controller_event.h:61
uint64_t
unsigned __int64 uint64_t
Definition: stdint.h:90
i
int i
Definition: rs-pcl-color.cpp:54
rs2rosinternal::message_traits::DataType< ::realsense_legacy_msgs::controller_event_< ContainerAllocator > >::value
static const char * value()
Definition: controller_event.h:145
realsense_legacy_msgs::controller_event_::controller_event_
controller_event_()
Definition: controller_event.h:27
realsense_legacy_msgs::controller_eventPtr
std::shared_ptr< ::realsense_legacy_msgs::controller_event > controller_eventPtr
Definition: controller_event.h:67
t265_stereo.T
T
Definition: t265_stereo.py:157
rspy.log.indent
def indent(str, line_prefix=' ')
Definition: log.py:88
realsense_legacy_msgs::controller_event_::controller_id
_controller_id_type controller_id
Definition: controller_event.h:46
rs2rosinternal::message_traits::MD5Sum< ::realsense_legacy_msgs::controller_event_< ContainerAllocator > >::value
static const char * value()
Definition: controller_event.h:132
rs2rosinternal::message_traits::Definition
Specialize to provide the definition for a message.
Definition: message_traits.h:152
rs2rosinternal::message_traits::MD5Sum
Specialize to provide the md5sum for a message.
Definition: message_traits.h:118
realsense_legacy_msgs::controller_event_::Type
controller_event_< ContainerAllocator > Type
Definition: controller_event.h:25
realsense_legacy_msgs::controller_event_
Definition: controller_event.h:23
realsense_legacy_msgs::controller_event_::mac_address
_mac_address_type mac_address
Definition: controller_event.h:52
realsense_legacy_msgs::controller_event_::timestamp
_timestamp_type timestamp
Definition: controller_event.h:55
rs2rosinternal::serialization::Serializer
Templated serialization class. Default implementation provides backwards compatibility with old messa...
Definition: third-party/realsense-file/rosbag/roscpp_serialization/include/ros/serialization.h:118
rs2rosinternal::message_traits::HasHeader
HasHeader informs whether or not there is a header that gets serialized as the first thing in the mes...
Definition: message_traits.h:107
ROS_DECLARE_ALLINONE_SERIALIZER
#define ROS_DECLARE_ALLINONE_SERIALIZER
Declare your serializer to use an allInOne member instead of requiring 3 different serialization func...
Definition: third-party/realsense-file/rosbag/roscpp_serialization/include/ros/serialization.h:72
rs2rosinternal::message_operations::Printer::stream
static void stream(Stream &s, const std::string &indent, const M &value)
Definition: message_operations.h:42
rs2rosinternal::message_operations::Printer
Definition: message_operations.h:39
rs2rosinternal::message_traits::Definition< ::realsense_legacy_msgs::controller_event_< ContainerAllocator > >::value
static const char * value(const ::realsense_legacy_msgs::controller_event_< ContainerAllocator > &)
Definition: controller_event.h:165
rs2rosinternal::message_traits::DataType
Specialize to provide the datatype for a message.
Definition: message_traits.h:135
realsense_legacy_msgs::controller_event_::_type_type
uint32_t _type_type
Definition: controller_event.h:48
rs2rosinternal::serialization::Stream
Stream base-class, provides common functionality for IStream and OStream.
Definition: third-party/realsense-file/rosbag/roscpp_serialization/include/ros/serialization.h:701
realsense_legacy_msgs::controller_event_::_timestamp_type
rs2rosinternal::Time _timestamp_type
Definition: controller_event.h:54
realsense_legacy_msgs
Definition: compressed_frame_info.h:20
s
GLdouble s
Definition: glad/glad/glad.h:2441
rs2rosinternal::message_traits::MD5Sum< ::realsense_legacy_msgs::controller_event_< ContainerAllocator > >::value
static const char * value(const ::realsense_legacy_msgs::controller_event_< ContainerAllocator > &)
Definition: controller_event.h:137
types.h
rs2rosinternal::message_traits::FalseType
Base type for compile-type true/false tests. Compatible with Boost.MPL. classes inheriting from this ...
Definition: message_traits.h:89
message_operations.h


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