Extract point cloud from ROS PointCloud2 message
ROS Toolbox / ROS
The Read Point Cloud block extracts a point cloud from a ROS PointCloud2
message. You can select the ROS message parameters of a topic active on a live ROS
network or specify the message parameters separately. The ROS messages are specified as
a nonvirtual bus. Use the Subscribe block to receive a message from a ROS
network and input the message to the Read Point Cloud block.
When reading ROS point cloud messages from the network, the
Data
property of the message can exceed the maximum array
length set in Simulink®. To increase the maximum array length, click Tools > Manage Array Lengths > Robot Operating System , select the Data array, and increase the size
based on the number of points in the point cloud.