We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44b4be8 commit 7184305Copy full SHA for 7184305
RGLServerPlugin/src/Lidar.cc
@@ -288,6 +288,7 @@ gz::msgs::PointCloudPacked RGLServerPluginInstance::CreatePointCloudMsg(std::chr
288
*outMsg.mutable_header()->mutable_stamp() = gz::msgs::Convert(simTime);
289
outMsg.set_height(1);
290
outMsg.set_width(resultPointCloud.hitPointCount);
291
+ outMsg.set_row_step(resultPointCloud.hitPointCount * outMsg.point_step());
292
293
gz::msgs::PointCloudPackedIterator<float> xIter(outMsg, "x");
294
memcpy(&(*xIter), resultPointCloud.data.data(), resultPointCloud.hitPointCount * resultPointCloud.pointSize);
0 commit comments