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
yarp::sig::PointCloudNetworkHeader::isDense
std::int8_t isDense
Definition: PointCloudNetworkHeader.h:38
api.h
YARP_END_PACK
#define YARP_END_PACK
Ends 1 byte packing for structs/classes.
Definition: system.h:194
NetInt32.h
YARP_BEGIN_PACK
#define YARP_BEGIN_PACK
Starts 1 byte packing for structs/classes.
Definition: system.h:193
yarp::sig::PointCloudNetworkHeader::pointType
yarp::os::NetInt32 pointType
Definition: PointCloudNetworkHeader.h:37
PointCloudTypes.h
yarp::sig::PointCloudNetworkHeader::PointCloudNetworkHeader
PointCloudNetworkHeader()
Definition: PointCloudNetworkHeader.h:28
yarp::sig::PointCloudNetworkHeader::height
yarp::os::NetInt32 height
Definition: PointCloudNetworkHeader.h:36
yarp::sig::PointCloudNetworkHeader
The yarp::sig::PointCloudNetworkHeader class.
Definition: PointCloudNetworkHeader.h:26
YARP_sig_API
#define YARP_sig_API
Definition: api.h:19
yarp::sig::PointCloudNetworkHeader::width
yarp::os::NetInt32 width
Definition: PointCloudNetworkHeader.h:35
yarp
The main, catch-all namespace for YARP.
Definition: environment.h:18
yarp::os::NetInt32
std::int32_t NetInt32
Definition of the NetInt32 type.
Definition: NetInt32.h:33