Encoder.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 sick_scan/Encoder.msg
3 // DO NOT EDIT!
4 
5 
6 #ifndef SICK_SCAN_MESSAGE_ENCODER_H
7 #define SICK_SCAN_MESSAGE_ENCODER_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 sick_scan_xd
22 {
23 template <class ContainerAllocator>
24 struct Encoder_
25 {
27 
29  : header()
30  , enc_position(0)
31  , enc_speed(0) {
32  }
33  Encoder_(const ContainerAllocator& _alloc)
34  : header(_alloc)
35  , enc_position(0)
36  , enc_speed(0) {
37  (void)_alloc;
38  }
39 
40 
41 
42  typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
44 
45  typedef int32_t _enc_position_type;
47 
48  typedef int16_t _enc_speed_type;
50 
51 
52 
53 
54 
55  typedef std::shared_ptr< ::sick_scan_xd::Encoder_<ContainerAllocator> > Ptr;
56  typedef std::shared_ptr< ::sick_scan_xd::Encoder_<ContainerAllocator> const> ConstPtr;
57 
58 }; // struct Encoder_
59 
60 typedef ::sick_scan_xd::Encoder_<std::allocator<void> > Encoder;
61 
62 typedef std::shared_ptr< ::sick_scan_xd::Encoder > EncoderPtr;
63 typedef std::shared_ptr< ::sick_scan_xd::Encoder const> EncoderConstPtr;
64 
65 // constants requiring out of line definition
66 
67 
68 
69 template<typename ContainerAllocator>
70 std::ostream& operator<<(std::ostream& s, const ::sick_scan_xd::Encoder_<ContainerAllocator> & v)
71 {
73 return s;
74 }
75 
76 } // namespace sick_scan_xd
77 
78 namespace roswrap
79 {
80 namespace message_traits
81 {
82 
83 
84 
85 // BOOLTRAITS {'IsFixedSize': False, 'IsMessage': True, 'HasHeader': True}
86 // {'sensor_msgs': ['/opt/ros/melodic/share/sensor_msgs/cmake/../msg'], 'geometry_msgs': ['/opt/ros/melodic/share/geometry_msgs/cmake/../msg'], 'std_msgs': ['/opt/ros/melodic/share/std_msgs/cmake/../msg'], 'sick_scan': ['/home/rosuser/catkin_sick_scan/src/sick_scan/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>
94 struct IsFixedSize< ::sick_scan_xd::Encoder_<ContainerAllocator> >
95  : FalseType
96  { };
97 
98 template <class ContainerAllocator>
99 struct IsFixedSize< ::sick_scan_xd::Encoder_<ContainerAllocator> const>
100  : FalseType
101  { };
102 
103 template <class ContainerAllocator>
104 struct IsMessage< ::sick_scan_xd::Encoder_<ContainerAllocator> >
105  : TrueType
106  { };
107 
108 template <class ContainerAllocator>
109 struct IsMessage< ::sick_scan_xd::Encoder_<ContainerAllocator> const>
110  : TrueType
111  { };
112 
113 template <class ContainerAllocator>
114 struct HasHeader< ::sick_scan_xd::Encoder_<ContainerAllocator> >
115  : TrueType
116  { };
117 
118 template <class ContainerAllocator>
119 struct HasHeader< ::sick_scan_xd::Encoder_<ContainerAllocator> const>
120  : TrueType
121  { };
122 
123 
124 template<class ContainerAllocator>
125 struct MD5Sum< ::sick_scan_xd::Encoder_<ContainerAllocator> >
126 {
127  static const char* value()
128  {
129  return "54930fcfc2dd947b1ad5f398b208008f";
130  }
131 
132  static const char* value(const ::sick_scan_xd::Encoder_<ContainerAllocator>&) { return value(); }
133  static const uint64_t static_value1 = 0x54930fcfc2dd947bULL;
134  static const uint64_t static_value2 = 0x1ad5f398b208008fULL;
135 };
136 
137 template<class ContainerAllocator>
138 struct DataType< ::sick_scan_xd::Encoder_<ContainerAllocator> >
139 {
140  static const char* value()
141  {
142  return "sick_scan/Encoder";
143  }
144 
145  static const char* value(const ::sick_scan_xd::Encoder_<ContainerAllocator>&) { return value(); }
146 };
147 
148 template<class ContainerAllocator>
149 struct Definition< ::sick_scan_xd::Encoder_<ContainerAllocator> >
150 {
151  static const char* value()
152  {
153  return "#This message contains the counter reading of the encoder at the datagram time (timestamp in header).\n"
154 "\n"
155 "Header header # same information as in laserscan and Pointcloud2 message\n"
156 "\n"
157 "int32 enc_position # number of ticks\n"
158 "int16 enc_speed # number of ticks per millimeter\n"
159 "\n"
160 "================================================================================\n"
161 "MSG: std_msgs/Header\n"
162 "# Standard metadata for higher-level stamped data types.\n"
163 "# This is generally used to communicate timestamped data \n"
164 "# in a particular coordinate frame.\n"
165 "# \n"
166 "# sequence ID: consecutively increasing ID \n"
167 "uint32 seq\n"
168 "#Two-integer timestamp that is expressed as:\n"
169 "# * stamp.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs')\n"
170 "# * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs')\n"
171 "# time-handling sugar is provided by the client library\n"
172 "time stamp\n"
173 "#Frame this data is associated with\n"
174 "string frame_id\n"
175 ;
176  }
177 
178  static const char* value(const ::sick_scan_xd::Encoder_<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< ::sick_scan_xd::Encoder_<ContainerAllocator> >
190  {
191  template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
192  {
193  stream.next(m.header);
194  stream.next(m.enc_position);
195  stream.next(m.enc_speed);
196  }
197 
199  }; // struct Encoder_
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< ::sick_scan_xd::Encoder_<ContainerAllocator> >
211 {
212  template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::sick_scan_xd::Encoder_<ContainerAllocator>& v)
213  {
214  s << indent << "header: ";
215  s << std::endl;
217  s << indent << "enc_position: ";
218  Printer<int32_t>::stream(s, indent + " ", v.enc_position);
219  s << indent << "enc_speed: ";
220  Printer<int16_t>::stream(s, indent + " ", v.enc_speed);
221  }
222 };
223 
224 } // namespace message_operations
225 } // namespace roswrap
226 
227 #endif // SICK_SCAN_MESSAGE_ENCODER_H
sick_scan_xd::Encoder
::sick_scan_xd::Encoder_< std::allocator< void > > Encoder
Definition: Encoder.h:60
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
sick_scan_xd::operator<<
std::ostream & operator<<(std::ostream &s, const ::sick_scan_xd::ColaMsgSrvRequest_< ContainerAllocator > &v)
Definition: ColaMsgSrvRequest.h:59
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::MD5Sum< ::sick_scan_xd::Encoder_< ContainerAllocator > >::value
static const char * value(const ::sick_scan_xd::Encoder_< ContainerAllocator > &)
Definition: Encoder.h:132
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_operations::Printer< ::sick_scan_xd::Encoder_< ContainerAllocator > >::stream
static void stream(Stream &s, const std::string &indent, const ::sick_scan_xd::Encoder_< ContainerAllocator > &v)
Definition: Encoder.h:212
roswrap::serialization::Serializer< ::sick_scan_xd::Encoder_< ContainerAllocator > >::allInOne
static void allInOne(Stream &stream, T m)
Definition: Encoder.h:191
const
#define const
Definition: getopt.c:38
s
XmlRpcServer s
sick_scan_xd::Encoder_::Encoder_
Encoder_()
Definition: Encoder.h:28
sick_scan_xd::Encoder_::_enc_speed_type
int16_t _enc_speed_type
Definition: Encoder.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
sick_scan_xd::Encoder_::Encoder_
Encoder_(const ContainerAllocator &_alloc)
Definition: Encoder.h:33
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
sick_scan_xd::Encoder_::ConstPtr
std::shared_ptr< ::sick_scan_xd::Encoder_< ContainerAllocator > const > ConstPtr
Definition: Encoder.h:56
roswrap::message_traits::Definition< ::sick_scan_xd::Encoder_< ContainerAllocator > >::value
static const char * value(const ::sick_scan_xd::Encoder_< ContainerAllocator > &)
Definition: Encoder.h:178
sick_scan_xd::Encoder_::Ptr
std::shared_ptr< ::sick_scan_xd::Encoder_< ContainerAllocator > > Ptr
Definition: Encoder.h:55
sick_scan_xd
Definition: abstract_parser.cpp:65
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
sick_scan_xd::Encoder_::_enc_position_type
int32_t _enc_position_type
Definition: Encoder.h:45
sick_scan_xd::Encoder_::enc_speed
_enc_speed_type enc_speed
Definition: Encoder.h:49
roswrap::message_traits::DataType< ::sick_scan_xd::Encoder_< ContainerAllocator > >::value
static const char * value(const ::sick_scan_xd::Encoder_< ContainerAllocator > &)
Definition: Encoder.h:145
sick_scan_xd::Encoder_::enc_position
_enc_position_type enc_position
Definition: Encoder.h:46
roswrap
Definition: param_modi.cpp:41
roswrap::message_operations::Printer
Definition: message_operations.h:40
std_msgs::Header_
Definition: Header.h:23
roswrap::message_traits::Definition< ::sick_scan_xd::Encoder_< ContainerAllocator > >::value
static const char * value()
Definition: Encoder.h:151
sick_scan_xd::Encoder_
Definition: Encoder.h:24
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
sick_scan_xd::EncoderConstPtr
std::shared_ptr< ::sick_scan_xd::Encoder const > EncoderConstPtr
Definition: Encoder.h:63
sick_scan_xd::Encoder_::Type
Encoder_< ContainerAllocator > Type
Definition: Encoder.h:26
roswrap::message_traits::IsMessage
Am I message or not.
Definition: message_traits.h:112
sick_scan_xd::Encoder_::_header_type
::std_msgs::Header_< ContainerAllocator > _header_type
Definition: Encoder.h:42
roswrap::message_traits::MD5Sum< ::sick_scan_xd::Encoder_< ContainerAllocator > >::value
static const char * value()
Definition: Encoder.h:127
sick_scan_base.h
roswrap::serialization::Stream
Stream base-class, provides common functionality for IStream and OStream.
Definition: serialization.h:705
sick_scan_xd::Encoder_::header
_header_type header
Definition: Encoder.h:43
Header.h
sick_scan_xd::EncoderPtr
std::shared_ptr< ::sick_scan_xd::Encoder > EncoderPtr
Definition: Encoder.h:62
roswrap::message_traits::DataType< ::sick_scan_xd::Encoder_< ContainerAllocator > >::value
static const char * value()
Definition: Encoder.h:140


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