Skip to content

Commit 6d3822f

Browse files
Merge branch 'gz-sensors7' into cleanup
2 parents f14d1a4 + 32576a8 commit 6d3822f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DepthCameraSensor.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ bool DepthCameraSensor::Load(const sdf::Sensor &_sdf)
304304
// the xyz and rgb fields to be aligned to memory boundaries. This is need
305305
// by ROS1: https://github.com/ros/common_msgs/pull/77. Ideally, memory
306306
// alignment should be configured.
307-
msgs::InitPointCloudPacked(this->dataPtr->pointMsg, this->Name(), true,
307+
msgs::InitPointCloudPacked(this->dataPtr->pointMsg, this->FrameId(), true,
308308
{{"xyz", msgs::PointCloudPacked::Field::FLOAT32},
309309
{"rgb", msgs::PointCloudPacked::Field::FLOAT32}});
310310

0 commit comments

Comments
 (0)