YARP
Yet Another Robot Platform
PointCloudNetworkHeader.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3  * SPDX-License-Identifier: BSD-3-Clause
4  */
5 
6 #ifndef YARP_SIG_POINTCLOUDNETWORKHEADER_H
7 #define YARP_SIG_POINTCLOUDNETWORKHEADER_H
8 
9 #include <yarp/sig/api.h>
10 
11 #include <yarp/os/NetInt32.h>
12 
14 
15 namespace yarp {
16 namespace sig {
17 
23 {
24 public:
26  height(0),
27  pointType(0),
28  isDense(1)
29  {}
30 
31  // PCL like fields
34  yarp::os::NetInt32 pointType; // bitwise of all possible information -> could also be int64 or just an enum, but I thin bitwise gives more freedom about all possible combinations
35  std::int8_t isDense; // the point cloud is dense if not contains NaN or Inf values
36 
37 };
39 
40 } // namespace sig
41 } // namespace yarp
42 
43 
44 #endif // YARP_SIG_POINTCLOUDNETWORKHEADER_H
The yarp::sig::PointCloudNetworkHeader class.
std::int32_t NetInt32
Definition of the NetInt32 type.
Definition: NetInt32.h:30
The main, catch-all namespace for YARP.
Definition: dirs.h:16
#define YARP_END_PACK
Ends 1 byte packing for structs/classes.
Definition: system.h:191
#define YARP_BEGIN_PACK
Starts 1 byte packing for structs/classes.
Definition: system.h:190
#define YARP_sig_API
Definition: api.h:18