|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
9 #ifndef YARP_SIG_POINTCLOUDBASE_H
10 #define YARP_SIG_POINTCLOUDBASE_H
51 virtual size_t size()
const = 0;
68 virtual size_t height()
const;
73 virtual size_t width()
const;
78 virtual int getPointType()
const;
85 virtual bool isOrganized()
const;
92 return header.isDense != 0;
98 virtual void copyFromRawData(
const char* dst,
const char* source, std::vector<int>& recipe);
100 virtual std::vector<int> getComposition(
int type_composite)
const;
102 virtual size_t pointType2Size(
int type)
const;
104 virtual size_t getOffset(
int type_composite,
int type_basic)
const;
This is a base class for objects that can be both read from and be written to the YARP network.
virtual bool isDense() const
virtual ~PointCloudBase()=default
bool read(yarp::os::ConnectionReader &connection) override=0
Read this object from a network connection.
virtual size_t size() const =0
virtual const char * getRawData() const =0
Get the pointer to the data.
The PointCloudBase class.
An interface for writing to a network connection.
yarp::sig::PointCloudNetworkHeader header
An interface for reading from a network connection.
The main, catch-all namespace for YARP.
virtual size_t dataSizeBytes() const =0
Get the size of the data in terms of number of bytes.
virtual size_t wireSizeBytes() const =0
Get the size of the data + the header in terms of number of bytes.
virtual int getBottleTag() const =0
bool write(yarp::os::ConnectionWriter &writer) const override=0
Write this object to a network connection.