We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46f55e9 commit a7f454dCopy full SHA for a7f454d
src/ros_compressed_streamer.cpp
@@ -102,6 +102,9 @@ void RosCompressedStreamer::convertGrayscale16toGrayscaleAlpha(const sensor_msgs
102
}
103
104
void RosCompressedStreamer::imageCallback(const sensor_msgs::CompressedImageConstPtr &msg) {
105
+ if (inactive_)
106
+ return;
107
+
108
boost::mutex::scoped_lock lock(send_mutex_); // protects last_msg and last_frame
109
last_msg = msg;
110
last_frame = ros::Time(msg->header.stamp.sec, msg->header.stamp.nsec);
0 commit comments