PointCloud2 not organized
I'm reading PointCloud2 sensor messages from a robot in Gazebo. However, the point cloud given by the message is always unorganized (width=307200, height=1). In the urdf file, the size of the image is set to 640x480. Is there some way to guarantee organization?
At the moment, my code does the "reorganization" of the cloud manually (using a for loop).