YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
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
15namespace yarp::sig {
16
22{
23public:
25 height(0),
26 pointType(0),
27 isDense(1)
28 {}
29
30 // PCL like fields
33 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
34 std::int8_t isDense; // the point cloud is dense if not contains NaN or Inf values
35
36};
38
39} // namespace yarp::sig
40
41
42#endif // YARP_SIG_POINTCLOUDNETWORKHEADER_H
The yarp::sig::PointCloudNetworkHeader class.
std::int32_t NetInt32
Definition of the NetInt32 type.
Definition NetInt32.h:29
#define YARP_END_PACK
Ends 1 byte packing for structs/classes.
Definition system.h:193
#define YARP_BEGIN_PACK
Starts 1 byte packing for structs/classes.
Definition system.h:192
#define YARP_sig_API
Definition api.h:18