controller_command.h
Go to the documentation of this file.
1 // Generated by gencpp from file realsense_legacy_msgs/controller_command.msg
2 // DO NOT EDIT!
3 
4 
5 #ifndef realsense_legacy_msgs_MESSAGE_CONTROLLER_COMMAND_H
6 #define realsense_legacy_msgs_MESSAGE_CONTROLLER_COMMAND_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  mac_address.fill(0);
32  }
33  controller_command_(const ContainerAllocator& _alloc)
34  : controller_id(0)
35  , type(0)
36  , mac_address() {
37  (void)_alloc;
38  mac_address.fill(0);
39  }
40 
41 
42 
44  _controller_id_type controller_id;
45 
47  _type_type type;
48 
49  typedef std::array<uint8_t, 6> _mac_address_type;
50  _mac_address_type mac_address;
51 
52 
53 
54 
55  typedef std::shared_ptr< ::realsense_legacy_msgs::controller_command_<ContainerAllocator> > Ptr;
56  typedef std::shared_ptr< ::realsense_legacy_msgs::controller_command_<ContainerAllocator> const> ConstPtr;
57 
58 }; // struct controller_command_
59 
60 typedef ::realsense_legacy_msgs::controller_command_<std::allocator<void> > controller_command;
61 
62 typedef std::shared_ptr< ::realsense_legacy_msgs::controller_command > controller_commandPtr;
63 typedef std::shared_ptr< ::realsense_legacy_msgs::controller_command const> controller_commandConstPtr;
64 
65 // constants requiring out of line definition
66 
67 
68 
69 template<typename ContainerAllocator>
70 std::ostream& operator<<(std::ostream& s, const ::realsense_legacy_msgs::controller_command_<ContainerAllocator> & v)
71 {
73 return s;
74 }
75 
76 } // namespace realsense_legacy_msgs
77 
78 namespace rs2rosinternal
79 {
80 namespace message_traits
81 {
82 
83 
84 
85 // BOOLTRAITS {'IsFixedSize': True, 'IsMessage': True, 'HasHeader': False}
86 // {'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']}
87 
88 // !!!!!!!!!!! ['__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']
89 
90 
91 
92 
93 template <class ContainerAllocator>
95  : TrueType
96  { };
97 
98 template <class ContainerAllocator>
99 struct IsFixedSize< ::realsense_legacy_msgs::controller_command_<ContainerAllocator> const>
100  : TrueType
101  { };
102 
103 template <class ContainerAllocator>
105  : TrueType
106  { };
107 
108 template <class ContainerAllocator>
109 struct IsMessage< ::realsense_legacy_msgs::controller_command_<ContainerAllocator> const>
110  : TrueType
111  { };
112 
113 template <class ContainerAllocator>
115  : FalseType
116  { };
117 
118 template <class ContainerAllocator>
119 struct HasHeader< ::realsense_legacy_msgs::controller_command_<ContainerAllocator> const>
120  : FalseType
121  { };
122 
123 
124 template<class ContainerAllocator>
125 struct MD5Sum< ::realsense_legacy_msgs::controller_command_<ContainerAllocator> >
126 {
127  static const char* value()
128  {
129  return "7cd9256962dc017524266dabdc1bad8d";
130  }
131 
132  static const char* value(const ::realsense_legacy_msgs::controller_command_<ContainerAllocator>&) { return value(); }
133  static const uint64_t static_value1 = 0x7cd9256962dc0175ULL;
134  static const uint64_t static_value2 = 0x24266dabdc1bad8dULL;
135 };
136 
137 template<class ContainerAllocator>
139 {
140  static const char* value()
141  {
142  return "realsense_legacy_msgs/controller_command";
143  }
144 
145  static const char* value(const ::realsense_legacy_msgs::controller_command_<ContainerAllocator>&) { return value(); }
146 };
147 
148 template<class ContainerAllocator>
150 {
151  static const char* value()
152  {
153  return "uint8 controller_id\n\
154 uint32 type\n\
155 uint8[6] mac_address\n\
156 ";
157  }
158 
159  static const char* value(const ::realsense_legacy_msgs::controller_command_<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_legacy_msgs::controller_command_<ContainerAllocator> >
171  {
172  template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
173  {
174  stream.next(m.controller_id);
175  stream.next(m.type);
176  stream.next(m.mac_address);
177  }
178 
180  }; // struct controller_command_
181 
182 } // namespace serialization
183 } // namespace rs2rosinternal
184 
185 namespace rs2rosinternal
186 {
187 namespace message_operations
188 {
189 
190 template<class ContainerAllocator>
192 {
193  template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::realsense_legacy_msgs::controller_command_<ContainerAllocator>& v)
194  {
195  s << indent << "controller_id: ";
196  Printer<uint8_t>::stream(s, indent + " ", v.controller_id);
197  s << indent << "type: ";
198  Printer<uint32_t>::stream(s, indent + " ", v.type);
199  s << indent << "mac_address[]" << std::endl;
200  for (size_t i = 0; i < v.mac_address.size(); ++i)
201  {
202  s << indent << " mac_address[" << i << "]: ";
203  Printer<uint8_t>::stream(s, indent + " ", v.mac_address[i]);
204  }
205  }
206 };
207 
208 } // namespace message_operations
209 } // namespace rs2rosinternal
210 
211 #endif // realsense_legacy_msgs_MESSAGE_CONTROLLER_COMMAND_H
static const char * value(const ::realsense_legacy_msgs::controller_command_< ContainerAllocator > &)
std::shared_ptr< ::realsense_legacy_msgs::controller_command_< ContainerAllocator > > Ptr
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.
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
std::shared_ptr< ::realsense_legacy_msgs::controller_command const > controller_commandConstPtr
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.
unsigned int uint32_t
Definition: stdint.h:80
#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
static const char * value(const ::realsense_legacy_msgs::controller_command_< ContainerAllocator > &)
Specialize to provide the definition for a message.
std::shared_ptr< ::realsense_legacy_msgs::controller_command > controller_commandPtr
static const char * value(const ::realsense_legacy_msgs::controller_command_< ContainerAllocator > &)
static void stream(Stream &s, const std::string &indent, const ::realsense_legacy_msgs::controller_command_< ContainerAllocator > &v)
controller_command_< ContainerAllocator > Type
GLenum type
int i
Templated serialization class. Default implementation provides backwards compatibility with old messa...
std::shared_ptr< ::realsense_legacy_msgs::controller_command_< ContainerAllocator > const > ConstPtr
GLdouble v
controller_command_(const ContainerAllocator &_alloc)
::realsense_legacy_msgs::controller_command_< std::allocator< void > > controller_command


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