Skip to content

Commit 907f417

Browse files
committed
uncommented mistakenly removed guard block
1 parent cc89113 commit 907f417

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

‎opengl_ros/src/depth_image_projector_nodecore.cpp‎

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,11 @@ void DepthImageProjectorNode::depthCallback(const sensor_msgs::Image::ConstPtr&
101101
return;
102102
}
103103

104-
//TODO Remove entire color image process as color image is not used anymore
105-
//if (!latestColorImagePtr)
106-
//{
107-
// ROS_WARN_STREAM("color stream not ready");
108-
// return;
109-
//}
104+
if (!latestColorImagePtr)
105+
{
106+
ROS_WARN_STREAM("color stream not ready");
107+
return;
108+
}
110109

111110
//TODO Remove entire color image process as color image is not used anymore
112111
//// Update & check whether depthToColor is valid.
@@ -116,7 +115,7 @@ void DepthImageProjectorNode::depthCallback(const sensor_msgs::Image::ConstPtr&
116115
// ROS_WARN_STREAM("extrinsics parameter not arrivied yet");
117116
// return;
118117
//}
119-
//
118+
120119
std::array<float, 16> depthToMap;
121120
try
122121
{

0 commit comments

Comments
 (0)