YARP
Yet Another Robot Platform
PointCloudNetworkHeader.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006-2020 Istituto Italiano di Tecnologia (IIT)
3  * All rights reserved.
4  *
5  * This software may be modified and distributed under the terms of the
6  * BSD-3-Clause license. See the accompanying LICENSE file for details.
7  */
8 
9 #ifndef YARP_SIG_POINTCLOUDNETWORKHEADER_H
10 #define YARP_SIG_POINTCLOUDNETWORKHEADER_H
11 
12 #include <yarp/sig/api.h>
13 
14 #include <yarp/os/NetInt32.h>
15 
17 
18 namespace yarp {
19 namespace sig {
20 
26 {
27 public:
29  height(0),
30  pointType(0),
31  isDense(1)
32  {}
33 
34  // PCL like fields
37  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
38  std::int8_t isDense; // the point cloud is dense if not contains NaN or Inf values
39 
40 };
42 
43 } // namespace sig
44 } // namespace yarp
45 
46 
47 #endif // YARP_SIG_POINTCLOUDNETWORKHEADER_H
The yarp::sig::PointCloudNetworkHeader class.
std::int32_t NetInt32
Definition of the NetInt32 type.
Definition: NetInt32.h:33
The main, catch-all namespace for YARP.
Definition: environment.h:18
#define YARP_END_PACK
Ends 1 byte packing for structs/classes.
Definition: system.h:194
#define YARP_BEGIN_PACK
Starts 1 byte packing for structs/classes.
Definition: system.h:193
#define YARP_sig_API
Definition: api.h:19