Joy.h
Go to the documentation of this file.
1 // Generated by gencpp from file sensor_msgs/Joy.msg
2 // DO NOT EDIT!
3 
4 
5 #ifndef SENSOR_MSGS_MESSAGE_JOY_H
6 #define SENSOR_MSGS_MESSAGE_JOY_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 #include <std_msgs/Header.h>
19 
20 namespace sensor_msgs
21 {
22 template <class ContainerAllocator>
23 struct Joy_
24 {
26 
27  Joy_()
28  : header()
29  , axes()
30  , buttons() {
31  }
32  Joy_(const ContainerAllocator& _alloc)
33  : header(_alloc)
34  , axes(_alloc)
35  , buttons(_alloc) {
36  (void)_alloc;
37  }
38 
39 
40 
41  typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
42  _header_type header;
43 
44  typedef std::vector<float, typename ContainerAllocator::template rebind<float>::other > _axes_type;
45  _axes_type axes;
46 
47  typedef std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > _buttons_type;
48  _buttons_type buttons;
49 
50 
51 
52 
55 
56 }; // struct Joy_
57 
58 typedef ::sensor_msgs::Joy_<std::allocator<void> > Joy;
59 
62 
63 // constants requiring out of line definition
64 
65 
66 
67 template<typename ContainerAllocator>
68 std::ostream& operator<<(std::ostream& s, const ::sensor_msgs::Joy_<ContainerAllocator> & v)
69 {
71 return s;
72 }
73 
74 } // namespace sensor_msgs
75 
76 namespace rs2rosinternal
77 {
78 namespace message_traits
79 {
80 
81 
82 
83 // BOOLTRAITS {'IsFixedSize': False, 'IsMessage': True, 'HasHeader': True}
84 // {'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']}
85 
86 // !!!!!!!!!!! ['__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']
87 
88 
89 
90 
91 template <class ContainerAllocator>
92 struct IsFixedSize< ::sensor_msgs::Joy_<ContainerAllocator> >
93  : FalseType
94  { };
95 
96 template <class ContainerAllocator>
97 struct IsFixedSize< ::sensor_msgs::Joy_<ContainerAllocator> const>
98  : FalseType
99  { };
100 
101 template <class ContainerAllocator>
102 struct IsMessage< ::sensor_msgs::Joy_<ContainerAllocator> >
103  : TrueType
104  { };
105 
106 template <class ContainerAllocator>
107 struct IsMessage< ::sensor_msgs::Joy_<ContainerAllocator> const>
108  : TrueType
109  { };
110 
111 template <class ContainerAllocator>
112 struct HasHeader< ::sensor_msgs::Joy_<ContainerAllocator> >
113  : TrueType
114  { };
115 
116 template <class ContainerAllocator>
117 struct HasHeader< ::sensor_msgs::Joy_<ContainerAllocator> const>
118  : TrueType
119  { };
120 
121 
122 template<class ContainerAllocator>
123 struct MD5Sum< ::sensor_msgs::Joy_<ContainerAllocator> >
124 {
125  static const char* value()
126  {
127  return "5a9ea5f83505693b71e785041e67a8bb";
128  }
129 
130  static const char* value(const ::sensor_msgs::Joy_<ContainerAllocator>&) { return value(); }
131  static const uint64_t static_value1 = 0x5a9ea5f83505693bULL;
132  static const uint64_t static_value2 = 0x71e785041e67a8bbULL;
133 };
134 
135 template<class ContainerAllocator>
136 struct DataType< ::sensor_msgs::Joy_<ContainerAllocator> >
137 {
138  static const char* value()
139  {
140  return "sensor_msgs/Joy";
141  }
142 
143  static const char* value(const ::sensor_msgs::Joy_<ContainerAllocator>&) { return value(); }
144 };
145 
146 template<class ContainerAllocator>
147 struct Definition< ::sensor_msgs::Joy_<ContainerAllocator> >
148 {
149  static const char* value()
150  {
151  return "# Reports the state of a joysticks axes and buttons.\n\
152 Header header # timestamp in the header is the time the data is received from the joystick\n\
153 float32[] axes # the axes measurements from a joystick\n\
154 int32[] buttons # the buttons measurements from a joystick \n\
155 \n\
156 ================================================================================\n\
157 MSG: std_msgs/Header\n\
158 # Standard metadata for higher-level stamped data types.\n\
159 # This is generally used to communicate timestamped data \n\
160 # in a particular coordinate frame.\n\
161 # \n\
162 # sequence ID: consecutively increasing ID \n\
163 uint32 seq\n\
164 #Two-integer timestamp that is expressed as:\n\
165 # * stamp.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs')\n\
166 # * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs')\n\
167 # time-handling sugar is provided by the client library\n\
168 time stamp\n\
169 #Frame this data is associated with\n\
170 # 0: no frame\n\
171 # 1: global frame\n\
172 string frame_id\n\
173 ";
174  }
175 
176  static const char* value(const ::sensor_msgs::Joy_<ContainerAllocator>&) { return value(); }
177 };
178 
179 } // namespace message_traits
180 } // namespace rs2rosinternal
181 
182 namespace rs2rosinternal
183 {
184 namespace serialization
185 {
186 
187  template<class ContainerAllocator> struct Serializer< ::sensor_msgs::Joy_<ContainerAllocator> >
188  {
189  template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
190  {
191  stream.next(m.header);
192  stream.next(m.axes);
193  stream.next(m.buttons);
194  }
195 
197  }; // struct Joy_
198 
199 } // namespace serialization
200 } // namespace rs2rosinternal
201 
202 namespace rs2rosinternal
203 {
204 namespace message_operations
205 {
206 
207 template<class ContainerAllocator>
208 struct Printer< ::sensor_msgs::Joy_<ContainerAllocator> >
209 {
210  template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::sensor_msgs::Joy_<ContainerAllocator>& v)
211  {
212  s << indent << "header: ";
213  s << std::endl;
215  s << indent << "axes[]" << std::endl;
216  for (size_t i = 0; i < v.axes.size(); ++i)
217  {
218  s << indent << " axes[" << i << "]: ";
219  Printer<float>::stream(s, indent + " ", v.axes[i]);
220  }
221  s << indent << "buttons[]" << std::endl;
222  for (size_t i = 0; i < v.buttons.size(); ++i)
223  {
224  s << indent << " buttons[" << i << "]: ";
225  Printer<int32_t>::stream(s, indent + " ", v.buttons[i]);
226  }
227  }
228 };
229 
230 } // namespace message_operations
231 } // namespace rs2rosinternal
232 
233 #endif // SENSOR_MSGS_MESSAGE_JOY_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
const GLfloat * m
Definition: glext.h:6814
Specialize to provide the md5sum for a message.
::sensor_msgs::Joy_< std::allocator< void > > Joy
Definition: Joy.h:58
std::vector< int32_t, typename ContainerAllocator::template rebind< int32_t >::other > _buttons_type
Definition: Joy.h:47
static const char * value(const ::sensor_msgs::Joy_< ContainerAllocator > &)
Definition: Joy.h:143
_axes_type axes
Definition: Joy.h:45
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
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.
static void stream(Stream &s, const std::string &indent, const ::sensor_msgs::Joy_< ContainerAllocator > &v)
Definition: Joy.h:210
Tools for manipulating sensor_msgs.
Definition: BatteryState.h:20
std::vector< float, typename ContainerAllocator::template rebind< float >::other > _axes_type
Definition: Joy.h:44
#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
boost::shared_ptr< ::sensor_msgs::Joy_< ContainerAllocator > const > ConstPtr
Definition: Joy.h:54
Specialize to provide the definition for a message.
::std_msgs::Header_< ContainerAllocator > _header_type
Definition: Joy.h:41
boost::shared_ptr< ::sensor_msgs::Joy > JoyPtr
Definition: Joy.h:60
boost::shared_ptr< ::sensor_msgs::Joy const > JoyConstPtr
Definition: Joy.h:61
_buttons_type buttons
Definition: Joy.h:48
boost::shared_ptr< ::sensor_msgs::Joy_< ContainerAllocator > > Ptr
Definition: Joy.h:53
Joy_< ContainerAllocator > Type
Definition: Joy.h:25
_header_type header
Definition: Joy.h:42
int i
static const char * value(const ::sensor_msgs::Joy_< ContainerAllocator > &)
Definition: Joy.h:130
Templated serialization class. Default implementation provides backwards compatibility with old messa...
GLdouble v
Joy_(const ContainerAllocator &_alloc)
Definition: Joy.h:32
static const char * value(const ::sensor_msgs::Joy_< ContainerAllocator > &)
Definition: Joy.h:176


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