OccupancyGrid.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 nav_msgs/OccupancyGrid.msg
3 // DO NOT EDIT!
4 
5 
6 #ifndef NAV_MSGS_MESSAGE_OCCUPANCYGRID_H
7 #define NAV_MSGS_MESSAGE_OCCUPANCYGRID_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 #include <nav_msgs/MapMetaData.h>
21 
22 namespace nav_msgs
23 {
24 template <class ContainerAllocator>
26 {
28 
30  : header()
31  , info()
32  , data() {
33  }
34  OccupancyGrid_(const ContainerAllocator& _alloc)
35  : header(_alloc)
36  , info(_alloc)
37  , data(_alloc) {
38  (void)_alloc;
39  }
40 
41 
42 
43  typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
45 
46  typedef ::nav_msgs::MapMetaData_<ContainerAllocator> _info_type;
48 
49  typedef std::vector<int8_t, typename ContainerAllocator::template rebind<int8_t>::other > _data_type;
51 
52 
53 
54 
55 
56  typedef std::shared_ptr< ::nav_msgs::OccupancyGrid_<ContainerAllocator> > Ptr;
57  typedef std::shared_ptr< ::nav_msgs::OccupancyGrid_<ContainerAllocator> const> ConstPtr;
58 
59 }; // struct OccupancyGrid_
60 
61 typedef ::nav_msgs::OccupancyGrid_<std::allocator<void> > OccupancyGrid;
62 
63 typedef std::shared_ptr< ::nav_msgs::OccupancyGrid > OccupancyGridPtr;
64 typedef std::shared_ptr< ::nav_msgs::OccupancyGrid const> OccupancyGridConstPtr;
65 
66 // constants requiring out of line definition
67 
68 
69 
70 template<typename ContainerAllocator>
71 std::ostream& operator<<(std::ostream& s, const ::nav_msgs::OccupancyGrid_<ContainerAllocator> & v)
72 {
74 return s;
75 }
76 
77 
78 template<typename ContainerAllocator1, typename ContainerAllocator2>
79 bool operator==(const ::nav_msgs::OccupancyGrid_<ContainerAllocator1> & lhs, const ::nav_msgs::OccupancyGrid_<ContainerAllocator2> & rhs)
80 {
81  return lhs.header == rhs.header &&
82  lhs.info == rhs.info &&
83  lhs.data == rhs.data;
84 }
85 
86 template<typename ContainerAllocator1, typename ContainerAllocator2>
87 bool operator!=(const ::nav_msgs::OccupancyGrid_<ContainerAllocator1> & lhs, const ::nav_msgs::OccupancyGrid_<ContainerAllocator2> & rhs)
88 {
89  return !(lhs == rhs);
90 }
91 
92 
93 } // namespace nav_msgs
94 
95 namespace roswrap
96 {
97 namespace message_traits
98 {
99 
100 
101 
102 
103 
104 template <class ContainerAllocator>
105 struct IsFixedSize< ::nav_msgs::OccupancyGrid_<ContainerAllocator> >
106  : FalseType
107  { };
108 
109 template <class ContainerAllocator>
110 struct IsFixedSize< ::nav_msgs::OccupancyGrid_<ContainerAllocator> const>
111  : FalseType
112  { };
113 
114 template <class ContainerAllocator>
115 struct IsMessage< ::nav_msgs::OccupancyGrid_<ContainerAllocator> >
116  : TrueType
117  { };
118 
119 template <class ContainerAllocator>
120 struct IsMessage< ::nav_msgs::OccupancyGrid_<ContainerAllocator> const>
121  : TrueType
122  { };
123 
124 template <class ContainerAllocator>
125 struct HasHeader< ::nav_msgs::OccupancyGrid_<ContainerAllocator> >
126  : TrueType
127  { };
128 
129 template <class ContainerAllocator>
130 struct HasHeader< ::nav_msgs::OccupancyGrid_<ContainerAllocator> const>
131  : TrueType
132  { };
133 
134 
135 template<class ContainerAllocator>
136 struct MD5Sum< ::nav_msgs::OccupancyGrid_<ContainerAllocator> >
137 {
138  static const char* value()
139  {
140  return "3381f2d731d4076ec5c71b0759edbe4e";
141  }
142 
143  static const char* value(const ::nav_msgs::OccupancyGrid_<ContainerAllocator>&) { return value(); }
144  static const uint64_t static_value1 = 0x3381f2d731d4076eULL;
145  static const uint64_t static_value2 = 0xc5c71b0759edbe4eULL;
146 };
147 
148 template<class ContainerAllocator>
149 struct DataType< ::nav_msgs::OccupancyGrid_<ContainerAllocator> >
150 {
151  static const char* value()
152  {
153  return "nav_msgs/OccupancyGrid";
154  }
155 
156  static const char* value(const ::nav_msgs::OccupancyGrid_<ContainerAllocator>&) { return value(); }
157 };
158 
159 template<class ContainerAllocator>
160 struct Definition< ::nav_msgs::OccupancyGrid_<ContainerAllocator> >
161 {
162  static const char* value()
163  {
164  return "# This represents a 2-D grid map, in which each cell represents the probability of\n"
165 "# occupancy.\n"
166 "\n"
167 "Header header \n"
168 "\n"
169 "#MetaData for the map\n"
170 "MapMetaData info\n"
171 "\n"
172 "# The map data, in row-major order, starting with (0,0). Occupancy\n"
173 "# probabilities are in the range [0,100]. Unknown is -1.\n"
174 "int8[] data\n"
175 "\n"
176 "================================================================================\n"
177 "MSG: std_msgs/Header\n"
178 "# Standard metadata for higher-level stamped data types.\n"
179 "# This is generally used to communicate timestamped data \n"
180 "# in a particular coordinate frame.\n"
181 "# \n"
182 "# sequence ID: consecutively increasing ID \n"
183 "uint32 seq\n"
184 "#Two-integer timestamp that is expressed as:\n"
185 "# * stamp.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs')\n"
186 "# * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs')\n"
187 "# time-handling sugar is provided by the client library\n"
188 "time stamp\n"
189 "#Frame this data is associated with\n"
190 "string frame_id\n"
191 "\n"
192 "================================================================================\n"
193 "MSG: nav_msgs/MapMetaData\n"
194 "# This hold basic information about the characterists of the OccupancyGrid\n"
195 "\n"
196 "# The time at which the map was loaded\n"
197 "time map_load_time\n"
198 "# The map resolution [m/cell]\n"
199 "float32 resolution\n"
200 "# Map width [cells]\n"
201 "uint32 width\n"
202 "# Map height [cells]\n"
203 "uint32 height\n"
204 "# The origin of the map [m, m, rad]. This is the real-world pose of the\n"
205 "# cell (0,0) in the map.\n"
206 "geometry_msgs/Pose origin\n"
207 "================================================================================\n"
208 "MSG: geometry_msgs/Pose\n"
209 "# A representation of pose in free space, composed of position and orientation. \n"
210 "Point position\n"
211 "Quaternion orientation\n"
212 "\n"
213 "================================================================================\n"
214 "MSG: geometry_msgs/Point\n"
215 "# This contains the position of a point in free space\n"
216 "float64 x\n"
217 "float64 y\n"
218 "float64 z\n"
219 "\n"
220 "================================================================================\n"
221 "MSG: geometry_msgs/Quaternion\n"
222 "# This represents an orientation in free space in quaternion form.\n"
223 "\n"
224 "float64 x\n"
225 "float64 y\n"
226 "float64 z\n"
227 "float64 w\n"
228 ;
229  }
230 
231  static const char* value(const ::nav_msgs::OccupancyGrid_<ContainerAllocator>&) { return value(); }
232 };
233 
234 } // namespace message_traits
235 } // namespace roswrap
236 
237 namespace roswrap
238 {
239 namespace serialization
240 {
241 
242  template<class ContainerAllocator> struct Serializer< ::nav_msgs::OccupancyGrid_<ContainerAllocator> >
243  {
244  template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
245  {
246  stream.next(m.header);
247  stream.next(m.info);
248  stream.next(m.data);
249  }
250 
252  }; // struct OccupancyGrid_
253 
254 } // namespace serialization
255 } // namespace roswrap
256 
257 namespace roswrap
258 {
259 namespace message_operations
260 {
261 
262 template<class ContainerAllocator>
263 struct Printer< ::nav_msgs::OccupancyGrid_<ContainerAllocator> >
264 {
265  template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::nav_msgs::OccupancyGrid_<ContainerAllocator>& v)
266  {
267  s << indent << "header: ";
268  s << std::endl;
270  s << indent << "info: ";
271  s << std::endl;
273  s << indent << "data[]" << std::endl;
274  for (size_t i = 0; i < v.data.size(); ++i)
275  {
276  s << indent << " data[" << i << "]: ";
277  Printer<int8_t>::stream(s, indent + " ", v.data[i]);
278  }
279  }
280 };
281 
282 } // namespace message_operations
283 } // namespace roswrap
284 
285 #endif // NAV_MSGS_MESSAGE_OCCUPANCYGRID_H
MapMetaData.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
roswrap::message_traits::Definition< ::nav_msgs::OccupancyGrid_< ContainerAllocator > >::value
static const char * value(const ::nav_msgs::OccupancyGrid_< ContainerAllocator > &)
Definition: OccupancyGrid.h:231
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
nav_msgs::MapMetaData_< std::allocator< void > >
roswrap::message_traits::DataType< ::nav_msgs::OccupancyGrid_< ContainerAllocator > >::value
static const char * value()
Definition: OccupancyGrid.h:151
const
#define const
Definition: getopt.c:38
nav_msgs::OccupancyGrid_::info
_info_type info
Definition: OccupancyGrid.h:47
s
XmlRpcServer s
roswrap::message_operations::Printer::stream
static void stream(Stream &s, const std::string &indent, const M &value)
Definition: message_operations.h:43
nav_msgs::OccupancyGrid_::header
_header_type header
Definition: OccupancyGrid.h:44
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::DataType< ::nav_msgs::OccupancyGrid_< ContainerAllocator > >::value
static const char * value(const ::nav_msgs::OccupancyGrid_< ContainerAllocator > &)
Definition: OccupancyGrid.h:156
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
nav_msgs::operator<<
std::ostream & operator<<(std::ostream &s, const ::nav_msgs::GetMapAction_< ContainerAllocator > &v)
Definition: GetMapAction.h:72
nav_msgs::OccupancyGrid_::data
_data_type data
Definition: OccupancyGrid.h:50
roswrap::message_operations::Printer< ::nav_msgs::OccupancyGrid_< ContainerAllocator > >::stream
static void stream(Stream &s, const std::string &indent, const ::nav_msgs::OccupancyGrid_< ContainerAllocator > &v)
Definition: OccupancyGrid.h:265
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
nav_msgs::OccupancyGridPtr
std::shared_ptr< ::nav_msgs::OccupancyGrid > OccupancyGridPtr
Definition: OccupancyGrid.h:63
nav_msgs::OccupancyGridConstPtr
std::shared_ptr< ::nav_msgs::OccupancyGrid const > OccupancyGridConstPtr
Definition: OccupancyGrid.h:64
nav_msgs::OccupancyGrid_::_data_type
std::vector< int8_t, typename ContainerAllocator::template rebind< int8_t >::other > _data_type
Definition: OccupancyGrid.h:49
nav_msgs::OccupancyGrid_::OccupancyGrid_
OccupancyGrid_(const ContainerAllocator &_alloc)
Definition: OccupancyGrid.h:34
nav_msgs::OccupancyGrid_::Ptr
std::shared_ptr< ::nav_msgs::OccupancyGrid_< ContainerAllocator > > Ptr
Definition: OccupancyGrid.h:56
roswrap
Definition: param_modi.cpp:41
nav_msgs::OccupancyGrid_::Type
OccupancyGrid_< ContainerAllocator > Type
Definition: OccupancyGrid.h:27
roswrap::message_operations::Printer
Definition: message_operations.h:40
std_msgs::Header_< std::allocator< void > >
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
nav_msgs
Definition: GetMap.h:16
nav_msgs::OccupancyGrid_::ConstPtr
std::shared_ptr< ::nav_msgs::OccupancyGrid_< ContainerAllocator > const > ConstPtr
Definition: OccupancyGrid.h:57
roswrap::message_traits::IsMessage
Am I message or not.
Definition: message_traits.h:112
nav_msgs::OccupancyGrid_::_header_type
::std_msgs::Header_< ContainerAllocator > _header_type
Definition: OccupancyGrid.h:43
nav_msgs::OccupancyGrid_
Definition: OccupancyGrid.h:25
nav_msgs::operator==
bool operator==(const ::nav_msgs::GetMapAction_< ContainerAllocator1 > &lhs, const ::nav_msgs::GetMapAction_< ContainerAllocator2 > &rhs)
Definition: GetMapAction.h:80
sick_scan_base.h
roswrap::serialization::Stream
Stream base-class, provides common functionality for IStream and OStream.
Definition: serialization.h:705
roswrap::serialization::Serializer< ::nav_msgs::OccupancyGrid_< ContainerAllocator > >::allInOne
static void allInOne(Stream &stream, T m)
Definition: OccupancyGrid.h:244
nav_msgs::OccupancyGrid_::_info_type
::nav_msgs::MapMetaData_< ContainerAllocator > _info_type
Definition: OccupancyGrid.h:46
Header.h
nav_msgs::operator!=
bool operator!=(const ::nav_msgs::GetMapAction_< ContainerAllocator1 > &lhs, const ::nav_msgs::GetMapAction_< ContainerAllocator2 > &rhs)
Definition: GetMapAction.h:88
roswrap::message_traits::Definition< ::nav_msgs::OccupancyGrid_< ContainerAllocator > >::value
static const char * value()
Definition: OccupancyGrid.h:162
roswrap::message_traits::MD5Sum< ::nav_msgs::OccupancyGrid_< ContainerAllocator > >::value
static const char * value()
Definition: OccupancyGrid.h:138
nav_msgs::OccupancyGrid_::OccupancyGrid_
OccupancyGrid_()
Definition: OccupancyGrid.h:29
roswrap::message_traits::MD5Sum< ::nav_msgs::OccupancyGrid_< ContainerAllocator > >::value
static const char * value(const ::nav_msgs::OccupancyGrid_< ContainerAllocator > &)
Definition: OccupancyGrid.h:143
nav_msgs::OccupancyGrid
::nav_msgs::OccupancyGrid_< std::allocator< void > > OccupancyGrid
Definition: OccupancyGrid.h:61


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