Skip to content

Commit 32576a8

Browse files
authored
Fix frame_id for depth camera point cloud (#350)
Signed-off-by: kvkpraneeth <[email protected]>
1 parent 60dac3d commit 32576a8

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)