Skip to content

Commit 8af6092

Browse files
committed
update warn msgs
1 parent e9e2b1e commit 8af6092

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

realsense2_camera/src/pointcloud_filter.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,14 @@ void PointcloudFilter::Publish(rs2::points pc, const rclcpp::Time& t, const rs2:
119119
}
120120
else {
121121
warn_count++;
122-
std::string texture_source_name = _filter->get_option_value_description(rs2_option::RS2_OPTION_STREAM_FILTER, static_cast<float>(texture_source_id));
122+
std::string texture_source_name = _filter->get_option_value_description(
123+
rs2_option::RS2_OPTION_STREAM_FILTER,
124+
static_cast<float>(texture_source_id)
125+
);
123126
ROS_WARN_STREAM_COND(
124127
warn_count == DISPLAY_WARN_NUMBER,
125-
"No stream match for pointcloud chosen texture: " << texture_source_name
126-
<< ". The 'pointcloud.stream_profile' parameter is set to 'any'"
128+
"No matching stream for texture '" << texture_source_name
129+
<< "'. Set 'pointcloud.stream_profile' to 'depth(1)', 'color(2)', or 'infrared(3)' to enable textured pointclouds."
127130
);
128131
}
129132

0 commit comments

Comments
 (0)