JoyFeedback.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/JoyFeedback.msg
3 // DO NOT EDIT!
4 
5 
6 #ifndef SENSOR_MSGS_MESSAGE_JOYFEEDBACK_H
7 #define SENSOR_MSGS_MESSAGE_JOYFEEDBACK_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 
20 namespace sensor_msgs
21 {
22 template <class ContainerAllocator>
24 {
26 
28  : type(0)
29  , id(0)
30  , intensity(0.0) {
31  }
32  JoyFeedback_(const ContainerAllocator& _alloc)
33  : type(0)
34  , id(0)
35  , intensity(0.0) {
36  (void)_alloc;
37  }
38 
39 
40 
41  typedef uint8_t _type_type;
43 
44  typedef uint8_t _id_type;
46 
47  typedef float _intensity_type;
49 
50 
51  enum { TYPE_LED = 0u };
52  enum { TYPE_RUMBLE = 1u };
53  enum { TYPE_BUZZER = 2u };
54 
55 
56  typedef std::shared_ptr< ::sensor_msgs::JoyFeedback_<ContainerAllocator> > Ptr;
57  typedef std::shared_ptr< ::sensor_msgs::JoyFeedback_<ContainerAllocator> const> ConstPtr;
58 
59 }; // struct JoyFeedback_
60 
61 typedef ::sensor_msgs::JoyFeedback_<std::allocator<void> > JoyFeedback;
62 
63 typedef std::shared_ptr< ::sensor_msgs::JoyFeedback > JoyFeedbackPtr;
64 typedef std::shared_ptr< ::sensor_msgs::JoyFeedback const> JoyFeedbackConstPtr;
65 
66 // constants requiring out of line definition
67 
68 
69 
70 
71 
72 
73 
74 
75 
76 template<typename ContainerAllocator>
77 std::ostream& operator<<(std::ostream& s, const ::sensor_msgs::JoyFeedback_<ContainerAllocator> & v)
78 {
80 return s;
81 }
82 
83 } // namespace sensor_msgs
84 
85 namespace roswrap
86 {
87 namespace message_traits
88 {
89 
90 
91 
92 // BOOLTRAITS {'IsFixedSize': True, 'IsMessage': True, 'HasHeader': False}
93 // {'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']}
94 
95 // !!!!!!!!!!! ['__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']
96 
97 
98 
99 
100 template <class ContainerAllocator>
101 struct IsFixedSize< ::sensor_msgs::JoyFeedback_<ContainerAllocator> >
102  : TrueType
103  { };
104 
105 template <class ContainerAllocator>
106 struct IsFixedSize< ::sensor_msgs::JoyFeedback_<ContainerAllocator> const>
107  : TrueType
108  { };
109 
110 template <class ContainerAllocator>
111 struct IsMessage< ::sensor_msgs::JoyFeedback_<ContainerAllocator> >
112  : TrueType
113  { };
114 
115 template <class ContainerAllocator>
116 struct IsMessage< ::sensor_msgs::JoyFeedback_<ContainerAllocator> const>
117  : TrueType
118  { };
119 
120 template <class ContainerAllocator>
121 struct HasHeader< ::sensor_msgs::JoyFeedback_<ContainerAllocator> >
122  : FalseType
123  { };
124 
125 template <class ContainerAllocator>
126 struct HasHeader< ::sensor_msgs::JoyFeedback_<ContainerAllocator> const>
127  : FalseType
128  { };
129 
130 
131 template<class ContainerAllocator>
132 struct MD5Sum< ::sensor_msgs::JoyFeedback_<ContainerAllocator> >
133 {
134  static const char* value()
135  {
136  return "f4dcd73460360d98f36e55ee7f2e46f1";
137  }
138 
139  static const char* value(const ::sensor_msgs::JoyFeedback_<ContainerAllocator>&) { return value(); }
140  static const uint64_t static_value1 = 0xf4dcd73460360d98ULL;
141  static const uint64_t static_value2 = 0xf36e55ee7f2e46f1ULL;
142 };
143 
144 template<class ContainerAllocator>
145 struct DataType< ::sensor_msgs::JoyFeedback_<ContainerAllocator> >
146 {
147  static const char* value()
148  {
149  return "sensor_msgs/JoyFeedback";
150  }
151 
152  static const char* value(const ::sensor_msgs::JoyFeedback_<ContainerAllocator>&) { return value(); }
153 };
154 
155 template<class ContainerAllocator>
156 struct Definition< ::sensor_msgs::JoyFeedback_<ContainerAllocator> >
157 {
158  static const char* value()
159  {
160  return "# Declare of the type of feedback\n\
161 uint8 TYPE_LED = 0\n\
162 uint8 TYPE_RUMBLE = 1\n\
163 uint8 TYPE_BUZZER = 2\n\
164 \n\
165 uint8 type\n\
166 \n\
167 # This will hold an id number for each type of each feedback.\n\
168 # Example, the first led would be id=0, the second would be id=1\n\
169 uint8 id\n\
170 \n\
171 # Intensity of the feedback, from 0.0 to 1.0, inclusive. If device is\n\
172 # actually binary, driver should treat 0<=x<0.5 as off, 0.5<=x<=1 as on.\n\
173 float32 intensity\n\
174 \n\
175 ";
176  }
177 
178  static const char* value(const ::sensor_msgs::JoyFeedback_<ContainerAllocator>&) { return value(); }
179 };
180 
181 } // namespace message_traits
182 } // namespace roswrap
183 
184 namespace roswrap
185 {
186 namespace serialization
187 {
188 
189  template<class ContainerAllocator> struct Serializer< ::sensor_msgs::JoyFeedback_<ContainerAllocator> >
190  {
191  template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
192  {
193  stream.next(m.type);
194  stream.next(m.id);
195  stream.next(m.intensity);
196  }
197 
199  }; // struct JoyFeedback_
200 
201 } // namespace serialization
202 } // namespace roswrap
203 
204 namespace roswrap
205 {
206 namespace message_operations
207 {
208 
209 template<class ContainerAllocator>
210 struct Printer< ::sensor_msgs::JoyFeedback_<ContainerAllocator> >
211 {
212  template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::sensor_msgs::JoyFeedback_<ContainerAllocator>& v)
213  {
214  s << indent << "type: ";
215  Printer<uint8_t>::stream(s, indent + " ", v.type);
216  s << indent << "id: ";
217  Printer<uint8_t>::stream(s, indent + " ", v.id);
218  s << indent << "intensity: ";
219  Printer<float>::stream(s, indent + " ", v.intensity);
220  }
221 };
222 
223 } // namespace message_operations
224 } // namespace roswrap
225 
226 #endif // SENSOR_MSGS_MESSAGE_JOYFEEDBACK_H
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::JoyFeedback_::_type_type
uint8_t _type_type
Definition: JoyFeedback.h:41
sensor_msgs::JoyFeedback_::id
_id_type id
Definition: JoyFeedback.h:45
sensor_msgs::JoyFeedback_::Type
JoyFeedback_< ContainerAllocator > Type
Definition: JoyFeedback.h:25
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::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
roswrap::message_traits::DataType< ::sensor_msgs::JoyFeedback_< ContainerAllocator > >::value
static const char * value()
Definition: JoyFeedback.h:147
const
#define const
Definition: getopt.c:38
roswrap::message_traits::Definition< ::sensor_msgs::JoyFeedback_< ContainerAllocator > >::value
static const char * value()
Definition: JoyFeedback.h:158
sensor_msgs::JoyFeedback_::JoyFeedback_
JoyFeedback_(const ContainerAllocator &_alloc)
Definition: JoyFeedback.h:32
s
XmlRpcServer s
sensor_msgs::JoyFeedback_::intensity
_intensity_type intensity
Definition: JoyFeedback.h:48
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
sensor_msgs::JoyFeedback_::TYPE_LED
@ TYPE_LED
Definition: JoyFeedback.h:51
roswrap::message_traits::MD5Sum< ::sensor_msgs::JoyFeedback_< ContainerAllocator > >::value
static const char * value(const ::sensor_msgs::JoyFeedback_< ContainerAllocator > &)
Definition: JoyFeedback.h:139
sensor_msgs::JoyFeedback_::Ptr
std::shared_ptr< ::sensor_msgs::JoyFeedback_< ContainerAllocator > > Ptr
Definition: JoyFeedback.h:56
sensor_msgs::JoyFeedback_::_id_type
uint8_t _id_type
Definition: JoyFeedback.h:44
ros::message_operations::Printer
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< ::sensor_msgs::JoyFeedback_< ContainerAllocator > >::value
static const char * value(const ::sensor_msgs::JoyFeedback_< ContainerAllocator > &)
Definition: JoyFeedback.h:178
roswrap::message_traits::Definition
Specialize to provide the definition for a message.
Definition: message_traits.h:152
sensor_msgs::JoyFeedbackPtr
std::shared_ptr< ::sensor_msgs::JoyFeedback > JoyFeedbackPtr
Definition: JoyFeedback.h:63
roswrap::message_operations::Printer< ::sensor_msgs::JoyFeedback_< ContainerAllocator > >::stream
static void stream(Stream &s, const std::string &indent, const ::sensor_msgs::JoyFeedback_< ContainerAllocator > &v)
Definition: JoyFeedback.h:212
sensor_msgs::operator<<
std::ostream & operator<<(std::ostream &s, const ::sensor_msgs::BatteryState_< ContainerAllocator > &v)
Definition: BatteryState.h:187
sensor_msgs::JoyFeedbackConstPtr
std::shared_ptr< ::sensor_msgs::JoyFeedback const > JoyFeedbackConstPtr
Definition: JoyFeedback.h:64
sensor_msgs::JoyFeedback_::ConstPtr
std::shared_ptr< ::sensor_msgs::JoyFeedback_< ContainerAllocator > const > ConstPtr
Definition: JoyFeedback.h:57
sensor_msgs::JoyFeedback_
Definition: JoyFeedback.h:23
sensor_msgs::JoyFeedback
::sensor_msgs::JoyFeedback_< std::allocator< void > > JoyFeedback
Definition: JoyFeedback.h:61
roswrap
Definition: param_modi.cpp:41
roswrap::message_operations::Printer
Definition: message_operations.h:40
sensor_msgs::JoyFeedback_::type
_type_type type
Definition: JoyFeedback.h:42
sensor_msgs::JoyFeedback_::TYPE_BUZZER
@ TYPE_BUZZER
Definition: JoyFeedback.h:53
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
sensor_msgs::JoyFeedback_::TYPE_RUMBLE
@ TYPE_RUMBLE
Definition: JoyFeedback.h:52
roswrap::message_traits::IsMessage
Am I message or not.
Definition: message_traits.h:112
roswrap::message_traits::MD5Sum< ::sensor_msgs::JoyFeedback_< ContainerAllocator > >::value
static const char * value()
Definition: JoyFeedback.h:134
sick_scan_base.h
roswrap::serialization::Stream
Stream base-class, provides common functionality for IStream and OStream.
Definition: serialization.h:705
sensor_msgs::JoyFeedback_::JoyFeedback_
JoyFeedback_()
Definition: JoyFeedback.h:27
sensor_msgs
Tools for manipulating sensor_msgs.
roswrap::message_traits::DataType< ::sensor_msgs::JoyFeedback_< ContainerAllocator > >::value
static const char * value(const ::sensor_msgs::JoyFeedback_< ContainerAllocator > &)
Definition: JoyFeedback.h:152
roswrap::serialization::Serializer< ::sensor_msgs::JoyFeedback_< ContainerAllocator > >::allInOne
static void allInOne(Stream &stream, T m)
Definition: JoyFeedback.h:191
sensor_msgs::JoyFeedback_::_intensity_type
float _intensity_type
Definition: JoyFeedback.h:47


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