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


sick_scan_xd
Author(s): Michael Lehning , Jochen Sprickerhof , Martin Günther
autogenerated on Fri Oct 25 2024 02:47:08