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 
45 
48 
49  typedef std::array<uint8_t, 6> _mac_address_type;
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  : std::true_type
96  { };
97 
98 template <class ContainerAllocator>
99 struct IsFixedSize< ::realsense_legacy_msgs::controller_command_<ContainerAllocator> const>
100  : std::true_type
101  { };
102 
103 template <class ContainerAllocator>
105  : std::true_type
106  { };
107 
108 template <class ContainerAllocator>
109 struct IsMessage< ::realsense_legacy_msgs::controller_command_<ContainerAllocator> const>
110  : std::true_type
111  { };
112 
113 template <class ContainerAllocator>
115  : std::false_type
116  { };
117 
118 template <class ContainerAllocator>
119 struct HasHeader< ::realsense_legacy_msgs::controller_command_<ContainerAllocator> const>
120  : std::false_type
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
rs2rosinternal::message_traits::Definition< ::realsense_legacy_msgs::controller_command_< ContainerAllocator > >::value
static const char * value(const ::realsense_legacy_msgs::controller_command_< ContainerAllocator > &)
Definition: controller_command.h:159
uint8_t
unsigned char uint8_t
Definition: stdint.h:78
rs2rosinternal::message_traits::MD5Sum< ::realsense_legacy_msgs::controller_command_< ContainerAllocator > >::value
static const char * value(const ::realsense_legacy_msgs::controller_command_< ContainerAllocator > &)
Definition: controller_command.h:132
realsense_legacy_msgs::controller_command_::_controller_id_type
uint8_t _controller_id_type
Definition: controller_command.h:43
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_command_::type
_type_type type
Definition: controller_command.h:47
rs2rosinternal::message_traits::DataType< ::realsense_legacy_msgs::controller_command_< ContainerAllocator > >::value
static const char * value()
Definition: controller_command.h:140
v
GLdouble v
Definition: glad/glad/glad.h:2144
string
GLsizei const GLchar *const * string
Definition: glad/glad/glad.h:2861
realsense_legacy_msgs::controller_command_::_type_type
uint32_t _type_type
Definition: controller_command.h:46
void
typedef void(APIENTRY *GLDEBUGPROC)(GLenum source
realsense_legacy_msgs::controller_command_::_mac_address_type
std::array< uint8_t, 6 > _mac_address_type
Definition: controller_command.h:49
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:81
rs2rosinternal
Definition: datatypes.h:39
type
GLenum type
Definition: glad/glad/glad.h:135
serialization.h
realsense_legacy_msgs::controller_command_::mac_address
_mac_address_type mac_address
Definition: controller_command.h:50
rs2rosinternal::message_traits::IsMessage
Am I message or not.
Definition: message_traits.h:90
m
std::mutex m
Definition: test-waiting-on.cpp:126
realsense_legacy_msgs::controller_command
::realsense_legacy_msgs::controller_command_< std::allocator< void > > controller_command
Definition: controller_command.h:60
builtin_message_traits.h
uint32_t
unsigned int uint32_t
Definition: stdint.h:80
uint64_t
unsigned __int64 uint64_t
Definition: stdint.h:90
i
int i
Definition: rs-pcl-color.cpp:54
rs2rosinternal::message_traits::MD5Sum< ::realsense_legacy_msgs::controller_command_< ContainerAllocator > >::value
static const char * value()
Definition: controller_command.h:127
realsense_legacy_msgs::controller_command_::Ptr
std::shared_ptr< ::realsense_legacy_msgs::controller_command_< ContainerAllocator > > Ptr
Definition: controller_command.h:55
test-device-discovery.stream
stream
Definition: test-device-discovery.py:295
rspy.log.indent
def indent(str, line_prefix=' ')
Definition: log.py:122
rs2rosinternal::message_traits::DataType< ::realsense_legacy_msgs::controller_command_< ContainerAllocator > >::value
static const char * value(const ::realsense_legacy_msgs::controller_command_< ContainerAllocator > &)
Definition: controller_command.h:145
rs2rosinternal::message_traits::Definition
Specialize to provide the definition for a message.
Definition: message_traits.h:130
realsense_legacy_msgs::controller_command_
Definition: controller_command.h:23
rs2rosinternal::message_traits::MD5Sum
Specialize to provide the md5sum for a message.
Definition: message_traits.h:96
rs2rosinternal::message_operations::Printer< ::realsense_legacy_msgs::controller_command_< ContainerAllocator > >::stream
static void stream(Stream &s, const std::string &indent, const ::realsense_legacy_msgs::controller_command_< ContainerAllocator > &v)
Definition: controller_command.h:193
realsense_legacy_msgs::controller_command_::controller_id
_controller_id_type controller_id
Definition: controller_command.h:44
realsense_legacy_msgs::controller_command_::controller_command_
controller_command_(const ContainerAllocator &_alloc)
Definition: controller_command.h:33
realsense_legacy_msgs::controller_commandPtr
std::shared_ptr< ::realsense_legacy_msgs::controller_command > controller_commandPtr
Definition: controller_command.h:62
realsense_legacy_msgs::controller_command_::controller_command_
controller_command_()
Definition: controller_command.h:27
rs2rosinternal::serialization::Serializer< ::realsense_legacy_msgs::controller_command_< ContainerAllocator > >::allInOne
static void allInOne(Stream &stream, T m)
Definition: controller_command.h:172
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:111
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:85
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:66
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
realsense_legacy_msgs::controller_command_::Type
controller_command_< ContainerAllocator > Type
Definition: controller_command.h:25
rs2rosinternal::message_traits::DataType
Specialize to provide the datatype for a message.
Definition: message_traits.h:113
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:694
realsense_legacy_msgs::controller_command_::ConstPtr
std::shared_ptr< ::realsense_legacy_msgs::controller_command_< ContainerAllocator > const > ConstPtr
Definition: controller_command.h:56
realsense_legacy_msgs::controller_commandConstPtr
std::shared_ptr< ::realsense_legacy_msgs::controller_command const > controller_commandConstPtr
Definition: controller_command.h:63
realsense_legacy_msgs
Definition: compressed_frame_info.h:20
s
GLdouble s
Definition: glad/glad/glad.h:2441
rs2rosinternal::message_traits::Definition< ::realsense_legacy_msgs::controller_command_< ContainerAllocator > >::value
static const char * value()
Definition: controller_command.h:151
types.h
message_operations.h


librealsense2
Author(s): LibRealSense ROS Team
autogenerated on Fri Aug 2 2024 08:30:01