diff --git a/darknet_ros/src/YoloObjectDetector.cpp b/darknet_ros/src/YoloObjectDetector.cpp index aee442503..4181e71a4 100644 --- a/darknet_ros/src/YoloObjectDetector.cpp +++ b/darknet_ros/src/YoloObjectDetector.cpp @@ -195,7 +195,6 @@ void YoloObjectDetector::cameraCallback(const sensor_msgs::ImageConstPtr& msg) if (cam_image) { { boost::unique_lock lockImageCallback(mutexImageCallback_); - int index = buffIndex_; imageHeader_ = msg->header; camImageCopy_ = cam_image->image.clone(); }