Skip to content

Commit

Permalink
Fix: Pointcloud topic's frame_id
Browse files Browse the repository at this point in the history
  • Loading branch information
Arun-Prasad-V committed Sep 6, 2023
1 parent ce710eb commit ee244ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion realsense2_camera/src/base_realsense_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@ void BaseRealSenseNode::SetBaseStream()

void BaseRealSenseNode::publishPointCloud(rs2::points pc, const rclcpp::Time& t, const rs2::frameset& frameset)
{
std::string frame_id = (_align_depth_filter->is_enabled() ? OPTICAL_FRAME_ID(COLOR) : OPTICAL_FRAME_ID(DEPTH));
std::string frame_id = OPTICAL_FRAME_ID(DEPTH);
_pc_filter->Publish(pc, t, frameset, frame_id);
}

Expand Down

0 comments on commit ee244ef

Please sign in to comment.