JoyFeedback.h
Go to the documentation of this file.
1 // Generated by gencpp from file sensor_msgs/JoyFeedback.msg
2 // DO NOT EDIT!
3 
4 
5 #ifndef SENSOR_MSGS_MESSAGE_JOYFEEDBACK_H
6 #define SENSOR_MSGS_MESSAGE_JOYFEEDBACK_H
7 
8 
9 #include <string>
10 #include <vector>
11 #include <map>
12 
13 #include <ros/types.h>
14 #include <ros/serialization.h>
16 #include <ros/message_operations.h>
17 
18 
19 namespace sensor_msgs
20 {
21 template <class ContainerAllocator>
23 {
25 
27  : type(0)
28  , id(0)
29  , intensity(0.0) {
30  }
31  JoyFeedback_(const ContainerAllocator& _alloc)
32  : type(0)
33  , id(0)
34  , intensity(0.0) {
35  (void)_alloc;
36  }
37 
38 
39 
41  _type_type type;
42 
43  typedef uint8_t _id_type;
44  _id_type id;
45 
46  typedef float _intensity_type;
47  _intensity_type intensity;
48 
49 
50  enum { TYPE_LED = 0u };
51  enum { TYPE_RUMBLE = 1u };
52  enum { TYPE_BUZZER = 2u };
53 
54 
57 
58 }; // struct JoyFeedback_
59 
60 typedef ::sensor_msgs::JoyFeedback_<std::allocator<void> > JoyFeedback;
61 
64 
65 // constants requiring out of line definition
66 
67 
68 
69 
70 
71 
72 
73 
74 
75 template<typename ContainerAllocator>
76 std::ostream& operator<<(std::ostream& s, const ::sensor_msgs::JoyFeedback_<ContainerAllocator> & v)
77 {
79 return s;
80 }
81 
82 } // namespace sensor_msgs
83 
84 namespace rs2rosinternal
85 {
86 namespace message_traits
87 {
88 
89 
90 
91 // BOOLTRAITS {'IsFixedSize': True, 'IsMessage': True, 'HasHeader': False}
92 // {'std_msgs': ['/opt/ros/kinetic/share/std_msgs/cmake/../msg'], 'geometry_msgs': ['/opt/ros/kinetic/share/geometry_msgs/cmake/../msg'], 'sensor_msgs': ['/tmp/binarydeb/ros-kinetic-sensor-msgs-1.12.5/msg']}
93 
94 // !!!!!!!!!!! ['__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']
95 
96 
97 
98 
99 template <class ContainerAllocator>
100 struct IsFixedSize< ::sensor_msgs::JoyFeedback_<ContainerAllocator> >
101  : TrueType
102  { };
103 
104 template <class ContainerAllocator>
105 struct IsFixedSize< ::sensor_msgs::JoyFeedback_<ContainerAllocator> const>
106  : TrueType
107  { };
108 
109 template <class ContainerAllocator>
110 struct IsMessage< ::sensor_msgs::JoyFeedback_<ContainerAllocator> >
111  : TrueType
112  { };
113 
114 template <class ContainerAllocator>
115 struct IsMessage< ::sensor_msgs::JoyFeedback_<ContainerAllocator> const>
116  : TrueType
117  { };
118 
119 template <class ContainerAllocator>
120 struct HasHeader< ::sensor_msgs::JoyFeedback_<ContainerAllocator> >
121  : FalseType
122  { };
123 
124 template <class ContainerAllocator>
125 struct HasHeader< ::sensor_msgs::JoyFeedback_<ContainerAllocator> const>
126  : FalseType
127  { };
128 
129 
130 template<class ContainerAllocator>
131 struct MD5Sum< ::sensor_msgs::JoyFeedback_<ContainerAllocator> >
132 {
133  static const char* value()
134  {
135  return "f4dcd73460360d98f36e55ee7f2e46f1";
136  }
137 
138  static const char* value(const ::sensor_msgs::JoyFeedback_<ContainerAllocator>&) { return value(); }
139  static const uint64_t static_value1 = 0xf4dcd73460360d98ULL;
140  static const uint64_t static_value2 = 0xf36e55ee7f2e46f1ULL;
141 };
142 
143 template<class ContainerAllocator>
144 struct DataType< ::sensor_msgs::JoyFeedback_<ContainerAllocator> >
145 {
146  static const char* value()
147  {
148  return "sensor_msgs/JoyFeedback";
149  }
150 
151  static const char* value(const ::sensor_msgs::JoyFeedback_<ContainerAllocator>&) { return value(); }
152 };
153 
154 template<class ContainerAllocator>
155 struct Definition< ::sensor_msgs::JoyFeedback_<ContainerAllocator> >
156 {
157  static const char* value()
158  {
159  return "# Declare of the type of feedback\n\
160 uint8 TYPE_LED = 0\n\
161 uint8 TYPE_RUMBLE = 1\n\
162 uint8 TYPE_BUZZER = 2\n\
163 \n\
164 uint8 type\n\
165 \n\
166 # This will hold an id number for each type of each feedback.\n\
167 # Example, the first led would be id=0, the second would be id=1\n\
168 uint8 id\n\
169 \n\
170 # Intensity of the feedback, from 0.0 to 1.0, inclusive. If device is\n\
171 # actually binary, driver should treat 0<=x<0.5 as off, 0.5<=x<=1 as on.\n\
172 float32 intensity\n\
173 \n\
174 ";
175  }
176 
177  static const char* value(const ::sensor_msgs::JoyFeedback_<ContainerAllocator>&) { return value(); }
178 };
179 
180 } // namespace message_traits
181 } // namespace rs2rosinternal
182 
183 namespace rs2rosinternal
184 {
185 namespace serialization
186 {
187 
188  template<class ContainerAllocator> struct Serializer< ::sensor_msgs::JoyFeedback_<ContainerAllocator> >
189  {
190  template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
191  {
192  stream.next(m.type);
193  stream.next(m.id);
194  stream.next(m.intensity);
195  }
196 
198  }; // struct JoyFeedback_
199 
200 } // namespace serialization
201 } // namespace rs2rosinternal
202 
203 namespace rs2rosinternal
204 {
205 namespace message_operations
206 {
207 
208 template<class ContainerAllocator>
209 struct Printer< ::sensor_msgs::JoyFeedback_<ContainerAllocator> >
210 {
211  template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::sensor_msgs::JoyFeedback_<ContainerAllocator>& v)
212  {
213  s << indent << "type: ";
214  Printer<uint8_t>::stream(s, indent + " ", v.type);
215  s << indent << "id: ";
216  Printer<uint8_t>::stream(s, indent + " ", v.id);
217  s << indent << "intensity: ";
218  Printer<float>::stream(s, indent + " ", v.intensity);
219  }
220 };
221 
222 } // namespace message_operations
223 } // namespace rs2rosinternal
224 
225 #endif // SENSOR_MSGS_MESSAGE_JOYFEEDBACK_H
boost::shared_ptr< ::sensor_msgs::JoyFeedback_< ContainerAllocator > > Ptr
Definition: JoyFeedback.h:55
typedef void(APIENTRY *GLDEBUGPROC)(GLenum source
Base type for compile-type true/false tests. Compatible with Boost.MPL. classes inheriting from this ...
JoyFeedback_(const ContainerAllocator &_alloc)
Definition: JoyFeedback.h:31
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
GLenum GLuint id
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.
JoyFeedback_< ContainerAllocator > Type
Definition: JoyFeedback.h:24
Tools for manipulating sensor_msgs.
Definition: BatteryState.h:20
static void stream(Stream &s, const std::string &indent, const ::sensor_msgs::JoyFeedback_< ContainerAllocator > &v)
Definition: JoyFeedback.h:211
#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.
::sensor_msgs::JoyFeedback_< std::allocator< void > > JoyFeedback
Definition: JoyFeedback.h:60
static const char * value(const ::sensor_msgs::JoyFeedback_< ContainerAllocator > &)
Definition: JoyFeedback.h:138
boost::shared_ptr< ::sensor_msgs::JoyFeedback_< ContainerAllocator > const > ConstPtr
Definition: JoyFeedback.h:56
boost::shared_ptr< ::sensor_msgs::JoyFeedback const > JoyFeedbackConstPtr
Definition: JoyFeedback.h:63
_intensity_type intensity
Definition: JoyFeedback.h:47
GLenum type
static const char * value(const ::sensor_msgs::JoyFeedback_< ContainerAllocator > &)
Definition: JoyFeedback.h:151
Templated serialization class. Default implementation provides backwards compatibility with old messa...
GLdouble v
boost::shared_ptr< ::sensor_msgs::JoyFeedback > JoyFeedbackPtr
Definition: JoyFeedback.h:62
static const char * value(const ::sensor_msgs::JoyFeedback_< ContainerAllocator > &)
Definition: JoyFeedback.h:177


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