On this page

pointCloud2 QML Value Type

This message holds a collection of N-dimensional points, which may contain additional information such as normals, intensity, etc. The point data is stored as a binary blob, its layout described by the contents of the "fields" array. More...

Import Statement: import QtRos2.SensorMsgs
Status: Experimental Extension

Properties

Detailed Description

The point cloud data may be organized 2d (image-like) or 1d (unordered). Point clouds organized as 2d images may be produced by camera depth sensors such as stereo or time-of-flight.

pointCloud2 is a structured value type usable in QML. It maps directly to the sensor_msgs::msg::PointCloud2 ROS 2 message type.

Construct a pointCloud2 in QML by assigning a JavaScript object whose keys are its component properties, or by setting those properties individually.

See also PointCloud2Publisher and PointCloud2Subscriber.

Property Documentation

data : ArrayBuffer

fields : list<pointField>

Describes the channels and their layout in the binary data blob.

header : header

Time of sensor data acquisition, and the coordinate frame ID (for 3d points).

height : uint32_t

2D structure of the point cloud. If the cloud is unordered, height is

1 and width is the length of the point cloud.

isBigendian : bool

isDense : bool

pointStep : uint32_t

rowStep : uint32_t

width : uint32_t

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.